
Riddles API
176 curated riddles with answers across 8 categories — classic, logic, wordplay, math, animals, nature, objects and food — each tagged easy, medium or hard. Pull random riddles (up to 20 at once), full-text search, filter by category or difficulty, page through everything, or fetch one by id. Built for quiz and game UIs: pass include_answer=false to serve questions without spoiling the solution, then reveal it via the by-id endpoint. Every riddle is family-friendly and every answer has been checked for correctness.
Available Endpoints
Request Parameters
API URL
Please subscribe to see the API URL
Headers
X-Api-Key
Path Parameters
id
Please subscribe to see the actual API URL
import axios from 'axios';
const url = '{API_URL}';
const { data } = await axios.get(url, {
headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});