canonical: https://jentic.com/apis/fungenerators.com/fungenerators-riddle

# Fungenerators Random Riddles API

The Random Riddles API serves a curated catalogue of riddles with question and answer pairs. Six endpoints cover retrieving random riddles, searching by keyword, and managing individual riddle records via GET, POST, PUT, and DELETE operations. The API is a fit for daily puzzle widgets, classroom warmups, voice assistant brain teasers, and chatbot small talk. Responses are short JSON objects that drop directly into a UI or a tool's output, with no further shaping needed.

## For AI agents

Retrieve random riddles, search the riddles catalogue by keyword, and manage individual riddle records.

## Scope

Does not generate new riddles algorithmically, score user answers, or run a quiz engine - use for retrieving and managing riddle records only.

## Capabilities

- Retrieve a random riddle for daily puzzle widgets
- Search the riddles catalogue by keyword for themed content
- Fetch a specific riddle record by its identifier
- Submit a new riddle to the catalogue via POST
- Update an existing riddle via PUT
- Remove a riddle from the catalogue via DELETE

## Use cases

### Daily Puzzle Widget

Editorial sites and apps include a daily riddle as a small interactive widget. Each morning the widget calls the random riddle endpoint, displays the question, and reveals the answer on tap. Caching the result for 24 hours keeps quota usage low while delivering fresh content.

Example prompt: Each morning call GET `/riddle/random` and cache the response for the day, rendering the question and answer in the widget.

### Classroom Warmups and Brain Breaks

Teachers use riddles to warm up classes or fill transition time. The keyword search endpoint lets a teacher pick riddles that match the lesson topic, and the random endpoint supplies a generic brain teaser when speed matters more than fit.

Example prompt: Call GET `/riddle/search` with q=animal to fetch three on-topic riddles for the start of a biology lesson.

### Voice Assistant and Chatbot Brain Teasers

Voice assistants and chatbots expose a 'tell me a riddle' command that calls the random endpoint, reads the question, waits for the user's answer, then reveals the correct answer. This adds a small interactive moment to assistants without writing custom riddle content.

Example prompt: On the 'ask me a riddle' intent, call GET `/riddle/random`, read the question, wait for the user's reply, and then reveal the answer field.

### AI Agent Riddle Tool

Wire the Riddles API into Jentic so any agent can fetch a riddle on demand or search for one on a chosen topic. Through Jentic the agent searches by intent, the API key stays vaulted, and the agent receives the riddle JSON to use in its reply or in a downstream content workflow.

Example prompt: Use Jentic to search 'get a random riddle', load GET `/riddle/random`, and execute it to surface a riddle in the chat reply.

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/riddle/random` | Retrieve a random riddle |
| GET | `/riddle/search` | Search riddles by keyword |
| GET | `/riddle` | Get a riddle by id |
| POST | `/riddle` | Create a new riddle record |
| PUT | `/riddle` | Update an existing riddle |
| DELETE | `/riddle` | Delete a riddle |

## Key resources

- **Riddle** — Individual riddle record with question and answer
- **Random Riddle** — Retrieve a random riddle from the catalogue
- **Search** — Keyword search across the riddles catalogue

## Why Jentic

- **Setup:** Wiring the Fungenerators Random Riddles API by hand means sending an secret-key request header on every call to api.fungenerators.com and handling the read and write riddle routes over the same /riddle path yourself. Through Jentic you install once, import the Random Riddles API from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** The Riddles API keys its writes off the request body on the /riddle path rather than a per-resource URL, so you limit the agent to the operations it needs, such as fetching a random riddle or searching riddles. You choose which operations it may call, so the DELETE and PUT riddle operations are not included unless you add them.
- **Credential handling:** Your Fungenerators API key is stored once, encrypted, by your own Jentic One instance and injected into the secret-key request header at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'get a random riddle' or 'search riddles by keyword', and Jentic returns the matching GET `/riddle/random` or GET `/riddle/search` operation with its parameter schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Trivia API** — Same vendor; question-answer trivia in place of riddle puzzles
- **Facts API** — Same vendor; pairs riddles with declarative facts for richer daily content
- **Taunt as a service** — Same vendor; supplies playful insults for wrong-answer feedback in puzzle apps

## FAQ

### What authentication does the Random Riddles API use?

It uses an API key supplied in the X-Fungenerators-API-Secret request header. Through Jentic the key is stored encrypted in the vault and attached at execution time, never in the agent's prompt.

### Can I search riddles by topic with this API?

Yes. Call GET `/riddle/search` with the q query parameter set to your keyword. The response is a list of riddles whose text matches the keyword.

### What are the rate limits for the Random Riddles API?

The OpenAPI spec does not declare explicit rate limits. Fungenerators uses plan-based quotas published on its subscription page at fungenerators.com, so consult the plan you signed up for.

### How do I get a random riddle through Jentic?

Search 'get a random riddle' via the Jentic SDK or MCP server, load GET `/riddle/random`, and execute it. Install with pip install jentic and authenticate using your ak_* key.

### Can I add my own riddles to the catalogue?

The API exposes POST /riddle for creating records and PUT /riddle for updating them, but write access depends on your subscription tier. Check the Fungenerators dashboard to confirm whether your key has write permissions.

### Does the response include both the question and the answer?

Yes. The riddle object returned by GET `/riddle/random` and GET `/riddle/search` includes the question text and the corresponding answer, so clients can decide when to reveal the answer to the user.

### Can I limit what my agent is allowed to do with the Random Riddles API?

Yes. Because you run Jentic One yourself, your own rules decide which operations and credentials the agent may use, so you can grant only the calls the task needs, such as GET `/riddle/random` or GET `/riddle/search.` The Random Riddles API keys its writes off the request body on the shared /riddle path rather than a per-resource URL, so the operator controls access at the operation level rather than by path. The write operations POST /riddle, PUT /riddle, and DELETE /riddle stay out of the agent's reach unless you explicitly add them.
