GnistAI GnistAI
Log in

Wikipedia

Article summaries, search, and section content from Wikipedia — the free encyclopedia.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 type: api wrapper type type api wrapper api wrapper lifecycle: flagship lifecycle lifecycle flagship flagship Reference

Data source: Wikimedia Foundation

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

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (4)

search_articles

Search 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.

ParameterTypeRequiredDescription
querystringrequiredSearch query — keywords or phrases to find Wikipedia articles.
limitintegeroptionalMax results to return (default 5, max 20). (default: 5)
Request Body
{
  "query": "example"
}
get_article_summary

Get 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.

ParameterTypeRequiredDescription
titlestringrequiredWikipedia article title (e.g. 'Artificial intelligence', 'Oslo').
Request Body
{
  "title": "example"
}
get_article_sections

Get 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.

ParameterTypeRequiredDescription
titlestringrequiredWikipedia article title (e.g. 'Machine learning', 'Norway').
Request Body
{
  "title": "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/wikipedia/search_articles" \
  -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/wikipedia/search_articles",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={
  "query": "example"
},
)
print(resp.json())

Related Toolkits (Reference)

Resources