GnistAI GnistAI
Log in

Random Facts

Curated database of 150+ interesting facts across 12 categories — science, history, nature, space, and more.

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 Reference

Data source: In-memory curated collection

REST Bridge Endpoint https://context.gnist.ai/rest/random-facts/
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_fact

Get a random interesting fact.

Returns a fact with its category and source attribution. Optionally filter by category.

ParameterTypeRequiredDescription
categoryanyoptionalFilter by category (e.g. Science, History, Space). Omit for any category.
Request Body
{
  "query": "example"
}
get_random_facts

Get multiple random facts at once.

Returns a list of facts, optionally filtered by category. Facts are sampled without repeats.

ParameterTypeRequiredDescription
countanyoptionalNumber of random facts to return (default: 5, max: 50).
categoryanyoptionalFilter by category (e.g. Science, History, Space). Omit for any category.
Request Body
{
  "query": "example"
}
search_facts

Search for facts by keyword.

Searches across fact text, categories, and source attributions. Case-insensitive.

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

List all available fact categories.

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

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/random-facts/search_facts" \
  -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/random-facts/search_facts",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={
  "query": "example"
},
)
print(resp.json())

Related Toolkits (Reference)

Resources