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.
Formula
One function covers the whole catalog: the first argument names the source, the next are its inputs, and the field after them says which single value lands in the cell. Formulas covers the grammar that applies to all of them.
=VERVE("riddles", "matching")=VERVE.CALL("riddles", "matching")Inputs
Required inputs are positional, in the order below, followed by the field. Everything else is passed as a "name", value pair after that — the same shape as SUMIFS. Premium inputs are accepted on every plan but only take effect on plans that include them.
| Input | Type | Where it goes | Description |
|---|---|---|---|
categoryOptional | string | "category", value | Riddle categoryanimalsbodyclassicfoodhouseholdmusicnaturenumbers+5 |
difficultyOptional | string | "difficulty", value | Riddle difficultyeasymediumhard |
idOptional | string | "id", value | A riddle id from an earlier response, e.g. rdl-0042, to fetch that riddle again length 0–12 |
countOptionalPremium | integer | "count", value | Number of different riddles to return, 1 to 20. Free plans get 1 range 1–20 |
Passing an option
=VERVE("riddles", "matching", "category", "animals")=VERVE.CALL("riddles", "matching", "category", "animals")What lands in your sheet
The field — the argument after the inputs — is what makes the formula resolve to one cell. Its value is a dot-path from the table below, so swapping it is how you pull a different value — one formula per column.
Seeing everything at once
Leave the field out and the formula returns the whole response instead: two columns, field name on the left and value on the right, spilling from the cell you typed in.
=VERVE("riddles")=VERVE.CALL("riddles")The second row's table would land on top of the first's, and every cell after the first reads #REF! (#SPILL! in Excel). Keep one per sheet, or name a field, and leave the cells below and to the right empty.
Response fields
Paths are relative to data. Each one is exactly what the field argument accepts, so swapping it is how you pull a different value into a cell. On a plan without a Premium field the cell reads #PREMIUM(field) rather than a value, so a locked field never looks like a real answer.
| Use as the field | Type | Example cell value | Description |
|---|---|---|---|
matching | number | 1 | Riddles in the collection that match the filters |
count | number | 1 | Riddles in this response |
riddles | array[1] | The randomly chosen riddles | |
riddles.0.id | string | rdl-0002 | Stable riddle id, e.g. rdl-0042 |
riddles.0.riddle | string | What flowers can be found between the nose and chin? | The riddle question |
riddles.0.answer | string | Tulips. | The answer |
riddles.0.explanationPremium | string | 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 |
riddles.0.category | string | body | Category: animals, body, classic, food, household, music, nature, numbers, people, places, time, travel or words |
riddles.0.difficulty | string | easy | easy, medium or hard |
riddles.0.source | object | {…} | The public-domain book the riddle comes from |
riddles.0.source.titlePremium | string | Conundrums, Riddles and Puzzles | Book title |
riddles.0.source.authorPremium | string | Dean Rivers | Author or publisher |
riddles.0.source.yearPremium | number | 1903 | Year of publication |
When a cell doesn't fill
A failed lookup returns readable text starting with #ERR rather than a spreadsheet error, because Excel cannot show a custom message on a real error — you would get a bare #VALUE! with no reason. The trade-off is that IFERROR() will not catch it; test with LEFT(cell, 4) = "#ERR" instead. Error handling covers the rest.
| Cell reads | What happened |
|---|---|
#ERR Not connected | No API key saved. Open the side panel and connect your account. |
#ERR Replace <name> with a cell or value | A preview formula was copied as-is. Swap the placeholder for a cell reference. |
#ERR No "x" in riddles | An option name this source does not take. The message lists the ones it does. |
#ERR No data point "…" | The field path is not in the response. Check it against the table above. |
#PREMIUM(field) | The field exists but your plan does not include it. |
#ERR Out of credits | The cycle's credits are spent. Usage resets on your billing date. |
Before the formula works
The add-in reads the API key you saved once in the side panel — the key never goes in the formula, so a shared sheet does not leak it and a collaborator without access simply sees the last calculated values.
- Install the add-in for Google Sheets or Excel.
- Open the side panel and sign in, or paste a key from your dashboard.
- Type the formula above into any cell.
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 VerveSheets, or reach the same source a different way. Your VerveSheets account and credits work on all of them — one key, one balance.
Related
More in Entertainment: