Wikipedia API
7 live Wikipedia endpoints, $0.0005–$0.0007 per call, one API key. No Wikipedia credentials needed.
Wikipedia article summaries and full-text search in any language edition, from the Wikimedia APIs. Text is CC BY-SA 4.0: keep attribution when you show it.
Wikipedia endpoints
| Endpoint | What it returns | Price |
|---|---|---|
| Wikipedia Full Article wikipedia.article | Full plain text of a Wikipedia article in any language edition, with its section list. Follows redirects. | $0.0007 per request ($0.70 per 1,000) |
| Wikipedia Most Viewed wikipedia.most_viewed | The most-viewed Wikipedia articles of a day in any language edition: what the world looked up. | $0.0005 per request ($0.50 per 1,000) |
| Wikipedia Page Summary wikipedia.page | Summary, description, thumbnail and Wikidata id of one Wikipedia article. | $0.0005 per request ($0.50 per 1,000) |
| Wikipedia Pageviews wikipedia.pageviews | Daily human pageviews of a Wikipedia article for the last 1 to 90 days: a free proxy for public interest in a topic. | $0.0005 per request ($0.50 per 1,000) |
| Wikipedia Search wikipedia.search | Full-text search of Wikipedia in any language edition. | $0.0005 per request ($0.50 per 1,000) |
| Travel Guide Page (Wikivoyage) wikivoyage.page | Full text of a Wikivoyage destination guide: understand, get in, get around, see, do, eat, sleep, stay safe. | $0.0007 per request ($0.70 per 1,000) |
| Travel Guide Search (Wikivoyage) wikivoyage.search | Search Wikivoyage, the free travel guide, for destinations, itineraries and travel topics. | $0.0005 per request ($0.50 per 1,000) |
What people use it for
- Ground an agent's answer with a short, sourced summary
- Resolve a name to a Wikidata id
- Search articles in another language edition
Quick start
Create a key, then call any endpoint with POST /v1/run/<endpoint>. Example with Wikipedia Full Article:
curl
curl -s -X POST https://getallapis.com/v1/run/wikipedia.article \
-H "Authorization: Bearer $GETALLAPIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"Model Context Protocol","max_chars":3000}'JavaScript
const res = await fetch("https://getallapis.com/v1/run/wikipedia.article", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.GETALLAPIS_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"title": "Model Context Protocol", "max_chars": 3000}),
});
const data = await res.json();
console.log(data.cost_usd, data.output);
For agents: Wikipedia MCP server. Compared with going direct: Wikipedia API direct vs GetAllAPIs.
Get an API key. New API keys come with $0.10 of free credit, no card required (limited to 2 keys per network every 30 days). That covers about 142 requests of wikipedia.article. Then add credits (packs from $10). No subscription; failed calls are refunded.
FAQ
How much does the Wikipedia API cost on GetAllAPIs?
7 endpoints at $0.0005–$0.0007 per call, from one prepaid wallet. Every price is on the endpoint's page and in /v1/catalog.
Do I need a Wikipedia account or key?
No. You use one GetAllAPIs key for every endpoint. Direct access: No key; Wikimedia asks for a descriptive User-Agent with contact details.
What is different from calling the upstream directly?
One key and wallet for all providers, one response envelope with cost_usd, refunds on upstream failures and an MCP server. Direct access is free; see the comparison.