Data source: In-memory curated collection
https://context.gnist.ai/rest/riddles/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (5)
get_random_riddleGet a random riddle WITHOUT the answer.
Returns a brain teaser with question and hint. Use get_riddle_answer() with the riddle ID to reveal the answer.
Optionally filter by category and/or difficulty.
| Parameter | Type | Required | Description |
|---|---|---|---|
category | any | optional | Filter by category (logic, wordplay, math, lateral-thinking, classic). Omit for any. |
difficulty | any | optional | Filter by difficulty (easy, medium, hard). Omit for any. |
{
"query": "example"
}get_riddle_answerReveal the answer to a specific riddle.
Takes a riddle ID (from get_random_riddle or search_riddles) and returns the full riddle including the answer.
| Parameter | Type | Required | Description |
|---|---|---|---|
riddle_id | integer | required | The ID of the riddle to reveal the answer for. |
{
"riddle_id": 1
}search_riddlesSearch for riddles by keyword.
Searches across question text, hints, and categories. Case-insensitive. Results do NOT include answers.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search keyword — matches question, hint, or category. |
max_results | any | optional | Maximum number of results (default: 20, max: 100). |
{
"query": "example"
}list_riddle_categoriesList all available riddle categories.
Returns the category names that can be used to filter random riddles.
{
"query": "example"
}report_feedbackReport a bug, feature request, or general feedback for this data source.
Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.
Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"feedback": "example"
}Quick Start
curl -X POST "https://context.gnist.ai/rest/riddles/get_riddle_answer" \
-H "Content-Type: application/json" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"riddle_id": 1}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/rest/riddles/get_riddle_answer",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={
"riddle_id": 1
},
)
print(resp.json())