Wikipedia API (beta)
Read public Wikipedia data in one call: articles as plain text with images and categories, and full-text search, in every language. Responses come in the MediaWiki Action API’s own page and search objects, over REST or MCP.
- Endpoints
- 2
- From
- 1 credit · $0.01
- Failed calls
- Refunded
- Access
- REST · MCP · SDK
Wikipedia article API
Endpoint details →import os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/wikipedia/article?title=Espresso",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json(){ "page": { "pageid": 47660, "ns": 0, "title": "Espresso", "extract": "Espresso ( , Italian: [eˈsprɛsso]) is a concentrated form of coffee produced by forcing hot water under high pressure th…", "description": "Type of strong coffee", "pagelanguage": "en", "touched": "2026-11-22T23:49:23Z", "lastrevid": 1385651996, "length": 39870, "fullurl": "https://en.wikipedia.org/wiki/Espresso", "canonicalurl": "https://en.wikipedia.org/wiki/Espresso", "thumbnail": { "source": "https://thumb.wikimedia.org/wikipedia/commons/thumb/a/a5/Tazzina_di_caff%C3%A8_a_Ventimiglia.jpg/960px-Tazzina_di_caff%C…", "width": 640, "height": 528 }, "original": { "source": "https://upload.wikimedia.org/wikipedia/commons/a/a5/Tazzina_di_caff%C3%A8_a_Ventimiglia.jpg?utm_source=en.wikipedia.org&…", "width": 2970, "height": 2448 }, "categories": [ { "ns": 14, "title": "Category:Coffee culture" }, { "ns": 14, "title": "Category:Coffee drinks" }, "… 5 more" ], "revisions": [ { "revid": 1385651996, "timestamp": "2026-11-14T14:16:02Z", "parentid": 1385476578 } ], "contentmodel": "wikitext", "pagelanguagehtmlcode": "en", "pagelanguagedir": "ltr", "editurl": "https://en.wikipedia.org/w/index.php?title=Espresso&action=edit", "descriptionsource": "local" }}All Wikipedia endpoints
Credits per call · refunded on failure · Code tutorialsWhat people build with it
Local intelligence
Places, ratings and reviews from Google Maps.
News monitoring
Fresh headlines for a topic, with sources.
Web pages for AI
Any public page as clean Markdown for agents and RAG.
Pricing
Pay per call with credit packs that never expire, or keyless per call. No subscription. 100 free credits to start.
All packs →| Provider | Per 1,000 | Unit |
|---|---|---|
| Groundsocial | $1.00 → $0.40 | standard calls; $0.01 per call keyless |
Other providers’ prices from their public pages, in their own currency. A credit buys a different amount on each.
Wikipedia API questions
Do I need a Wikipedia account or API key?
No. Every call reads what Wikipedia shows a logged-out visitor. You only need a Groundsocial API key, or none at all with pay-per-call.
How much does the Wikipedia API cost?
From 1 credit per call. Credits cost $1.00 to $0.40 per 1,000 depending on the pack, or $0.01 per call keyless. Failed calls are refunded. You start with 100 free credits.
What format is the data in?
Responses come in the MediaWiki Action API’s own page and search objects, not a lossy cross-platform schema, so field names match what Wikipedia itself uses.
Can an AI agent use it?
Yes. Every Wikipedia endpoint is an MCP tool (wikipedia_article_get, …), and agents can sign themselves up with POST /v1/agent/signup.
Is it official?
No. Groundsocial is an independent API for public data. Wikipedia is a trademark of the Wikimedia Foundation. We are not affiliated with or endorsed by the Wikimedia Foundation.
More search & web APIs
All platforms →15 endpoints
Google News API1 endpoints
Web API5 endpoints
Bing API7 endpoints
DuckDuckGo API6 endpoints
Baidu API1 endpoints
Wikipedia is a trademark of the Wikimedia Foundation. We are not affiliated with or endorsed by the Wikimedia Foundation.