Docs/APIs/Riddles

Riddles

Random Riddles and Conundrums with Answers

OperationalCredits 2 per callp50 106msEntertainmentStar

Overview

With no parameters, returns one random riddle. `category` and `difficulty` narrow the pool and `matching` says how many riddles were in it; `count` (paid) returns up to 20 different riddles at once. `id` returns one specific riddle, so an app can show the question and reveal the answer on a later call. An empty pool returns 404.

The collection was curated by APIVerve from five public-domain books on Project Gutenberg (ebooks 52598, 32898, 36571, 69528 and 44099). Gutenberg's header and licence were stripped, question-and-answer passages extracted, and about 500 riddles kept by hand: offensive, dated or reference-dependent ones were dropped, spelling lightly modernised (to-day to today) and each riddle given a category and a difficulty.

Many classic conundrums are puns. Where the book printed the sound-alike in brackets, it is moved out of the answer into `explanation`, so `Tulips (two lips)` becomes answer `Tulips.` with explanation `two lips`; it is null when the answer stands alone. Difficulty is an editorial rating: easy riddles have a plain answer a child could find, hard ones turn on wordplay or a less common word.

Live Test Riddles API →

Endpoint

One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.

GEThttps://api.apiverve.com/v1/riddles
curl "https://api.apiverve.com/v1/riddles?category=animals&difficulty=easy&id=rdl-0042&count=5" \
  -H "x-api-key: your_api_key_here"

Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.

Authentication

Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.

401 is the only auth verdict

A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.

Parameters

Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.

ParameterTypeDescription
categoryOptionalstringRiddle category
animalsbodyclassicfoodhouseholdmusicnaturenumbers+5
difficultyOptionalstringRiddle difficulty
easymediumhard
idOptionalstringA riddle id from an earlier response, e.g. rdl-0042, to fetch that riddle again
length 0–12
countOptionalPremiumintegerNumber of different riddles to return, 1 to 20. Free plans get 1
range 1–20

Response

Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.

Sample response
{
  "status": "ok",
  "error": null,
  "data": {
    "matching": 1,
    "count": 1,
    "riddles": [
      {
        "id": "rdl-0002",
        "riddle": "What flowers can be found between the nose and chin?",
        "answer": "Tulips.",
        "explanation": "two lips",
        "category": "body",
        "difficulty": "easy",
        "source": {
          "title": "Conundrums, Riddles and Puzzles",
          "author": "Dean Rivers",
          "year": 1903
        }
      }
    ]
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
matchingnumber1Riddles in the collection that match the filters
countnumber1Riddles in this response
riddlesarray[1]The randomly chosen riddles
idstring"rdl-0002"Stable riddle id, e.g. rdl-0042
riddlestring"What flowers can be found between the nose and chin?"The riddle question
answerstring"Tulips."The answer
explanationPremiumstring"two lips"The sound-alike or hidden word a pun answer turns on, e.g. two lips for Tulips; null when the answer needs none
categorystring"body"Category: animals, body, classic, food, household, music, nature, numbers, people, places, time, travel or words
difficultystring"easy"easy, medium or hard
sourceobject{...}The public-domain book the riddle comes from
titlePremiumstring"Conundrums, Riddles and Puzzles"Book title
authorPremiumstring"Dean Rivers"Author or publisher
yearPremiumnumber1903Year of publication

Errors

Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.

StatusMeaningWhat to do
400Input was rejectedRead error; it names the parameter.
401Key missing or invalidCheck the header name and the key value.
403Key valid, but not permittedA key restriction or IP allow-list; see key scoping.
429Rate limited, or out of creditsRead error to tell them apart; see rate limits.

Use cases

Riddle of the Day Widgets
Show a new riddle each day on a site or app, then reveal the answer with the same id the next day.
Kids and Family Apps
Serve easy riddles about animals, food and household things for car rides, classrooms and bedtime.
Chat Bots and Voice Assistants
Answer 'tell me a riddle' with a random question, wait for a guess, then give the answer and the pun behind it.
Party Games and Newsletters
Pull a batch of riddles by category for a quiz round, an icebreaker or a newsletter puzzle corner.

Other ways to use Riddles

Set up Riddles on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.

Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContext →Reference →

More in Entertainment:

Was this page helpful?