Random Riddle

The riddles API returns a random riddle or brain-teaser. Riddles are a great way to exercise your brain and keep it sharp. The API supports brain-teasers in three difficulty levels: easy, medium, and hard. You can also get a random riddle without specifying a difficulty level.

GET
https://api.apileague.com/retrieve-random-riddle
Example Request and Response
GET
https://api.apileague.com/{{ examples.getRandomRiddle }}
{
    "riddle": "What has 13 hearts but no other organs?",
    "answer": "A deck of cards",
    "difficulty": "easy"
}
cURL
Java
Javascript
Python
Go
C#
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}