API Docs

Get a random joke

Sample Api Call

                    
1GET https://api.irkfdb.in/facts/random

Sample Response Format

                
1{
2 "joke":{
3 "id":"01gxka07g2me847pe6k0zp27jf",
4 "text":"The only time Rajini needed a body double was crying scene !",
5 "link":"http://api.irkfdb.in.test/facts/01gxka07g2me847pe6k0zp27jf",
6 "categories":[]
7 }
8}

Get a random joke from a specific category/categories

You can pass the single category or multiple categories as comma separated values in categories query parameter.

Sample Api Call

                
1GET https://api.irkfdb.in/facts/random?categories=dev

Sample Response Format

            
1{
2 "joke":{
3 "id":"01gxn98qby452h66xrchsrzaht",
4 "text":"Once Rajinikanth bite an apple and threw it away, not its is known as Apple computers
5 logo","link":"http://api.irkfdb.in.test/facts/01gxn98qby452h66xrchsrzaht",
6 "categories":[
7 {
8 "id":"01gwmn4pfb33kfzrxkp2ey86x7",
9 "title":"dev"
10 }
11 ]
12 }
13}

Get a random joke by excluding specific category/categories

You can pass the single category or multiple categories as comma separated values in not_categories query parameter.

Sample Api Call

                
1GET https://api.irkfdb.in/facts/random?not_categories=explicit

Sample Response Format

            
1{
2 "joke":{
3 "id":"01gxn98qby452h66xrchsrzaht",
4 "text":"Once Rajinikanth bite an apple and threw it away, not its is known as Apple computers
5 logo","link":"http://api.irkfdb.in.test/facts/01gxn98qby452h66xrchsrzaht",
6 "categories":[
7 {
8 "id":"01gwmn4pfb33kfzrxkp2ey86x7",
9 "title":"dev"
10 }
11 ]
12 }
13}

You are a developer?

Thinking about integrating these in any apps. Head towards API documentation .