GnistAI GnistAI
Log in

Jokes

Curated joke database with 120 jokes across 8 categories — get random jokes, search, or browse by category.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 type: open dataset type type open dataset open dataset lifecycle: maintained lifecycle lifecycle maintained maintained Entertainment

Data source: In-memory curated collection

REST Bridge Endpoint https://context.gnist.ai/rest/jokes/
Authentication

All 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_joke

Get a random joke.

Returns a joke with setup and punchline. For single-type jokes, the full joke is in the setup field.
Optionally filter by category — use list_joke_categories() to see valid categories.

ParameterTypeRequiredDescription
categoryanyoptionalFilter by category (e.g. Programming, Dad Jokes, Science, Math). Omit for any category.
Request Body
{
  "query": "example"
}
get_random_jokes

Get multiple random jokes.

Returns a list of unique random jokes. Optionally filter by category.

ParameterTypeRequiredDescription
countanyoptionalNumber of jokes to return (1-20, default 5).
categoryanyoptionalFilter by category. Omit for any category.
Request Body
{
  "query": "example"
}
search_jokes

Search for jokes by keyword.

Searches across setup text, punchlines, and categories. Case-insensitive.

ParameterTypeRequiredDescription
querystringrequiredSearch keyword — matches joke text, punchline, or category.
max_resultsanyoptionalMaximum number of results (default: 20, max: 100).
Request Body
{
  "query": "example"
}
list_joke_categories

List all available joke categories.

Returns the category names that can be used to filter random jokes.

Request Body
{
  "query": "example"
}
report_feedback

Report 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'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
Request Body
{
  "feedback": "example"
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/rest/jokes/search_jokes" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"query": "example"}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/rest/jokes/search_jokes",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={
  "query": "example"
},
)
print(resp.json())

Related Toolkits (Entertainment)

Resources