Data source: Wikimedia Foundation
https://context.gnist.ai/rest/wikipedia/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (4)
search_articlesSearch Wikipedia articles by keyword.
Finds articles matching the query and returns titles, snippets, and metadata.
Examples:
search_articles("quantum computing") -> articles about quantum computing
search_articles("Norwegian fjords", limit=10) -> articles about fjords in Norway
Returns:
List of matching articles with title, snippet, page_id, and word_count.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search query — keywords or phrases to find Wikipedia articles. |
limit | integer | optional | Max results to return (default 5, max 20). (default: 5) |
{
"query": "example"
}get_article_summaryGet a concise summary of a Wikipedia article.
Returns the article's lead paragraph, description, thumbnail image,
and URL. Fast way to get key facts about any topic.
Examples:
get_article_summary("Python (programming language)") -> Python summary
get_article_summary("Albert Einstein") -> Einstein biography summary
Returns:
Article title, description, extract (plain text summary), page URL, and thumbnail.
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | required | Wikipedia article title (e.g. 'Artificial intelligence', 'Oslo'). |
{
"title": "example"
}get_article_sectionsGet the full section structure and content of a Wikipedia article.
Returns all sections with headings and plain text content. Useful when
you need detailed information from specific parts of an article.
Examples:
get_article_sections("Climate change") -> all sections about climate change
get_article_sections("History of Norway") -> detailed Norwegian history by section
Returns:
List of sections with heading, level, and plain text content.
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | required | Wikipedia article title (e.g. 'Machine learning', 'Norway'). |
{
"title": "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/wikipedia/search_articles" \
-H "Content-Type: application/json" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"query": "example"}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/rest/wikipedia/search_articles",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={
"query": "example"
},
)
print(resp.json())