1GET https://api.irkfdb.in/facts/random
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}
You can pass the single category or multiple categories as comma separated values in
categories
query parameter.
1GET https://api.irkfdb.in/facts/random?categories=dev
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 can pass the single category or multiple categories as comma separated values in
not_categories
query parameter.
1GET https://api.irkfdb.in/facts/random?not_categories=explicit
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}
Thinking about integrating these in any apps. Head towards API documentation .