Random Riddle API

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 }}

Frequently Asked Questions

What difficulty levels are available?

You can request riddles with "easy", "medium", or "hard" difficulty levels to suit your audience.

Do the riddles come with answers?

Yes, every riddle returned by the API includes the correct answer so you can verify the solution.

Can I get riddles for kids?

Yes, by selecting the "easy" difficulty, you can retrieve riddles that are generally more suitable for children.

How is the Random Riddle API different from the Random Trivia API?

The Random Riddle API provides brain-teasers and puzzles that require lateral thinking, whereas the Random Trivia API returns factual questions and interesting facts.

Questions? Need Help? Ask Away