Wikipedia API
Wikipedia is a free online encyclopedia that anyone can edit, with more than 300 language editions. article reads one article by its link and returns it as one object.
Pass an article link in any language as url, such as https://en.wikipedia.org/wiki/Mount_Everest or https://de.wikipedia.org/wiki/Mount_Everest; mobile links on en.m.wikipedia.org work too. A redirect link also works: passing Mt._Everest returns the Mount Everest article, with title set to Mount Everest and url set to the link you passed. language comes from the subdomain of the link. text includes caption and infobox text. external_links leaves out Wikipedia's own edit and maintenance links. images is missing on some articles. An article that does not exist returns an empty result and is not charged.
One API key is all you need, with no Wikipedia account or cookie. It also works as an MCP tool in Claude and Cursor, and you can claim $1 in trial credit to try it first.
Send POST https://api.everyinfra.com/api/v1/social with platform set to wikipedia and action set to a capability name from the list below, for example article.
- 1 capability
- $1.19 per 1,000 requests
- No charge for failed calls or empty results
Platform availability
- 24h health
- Normal
Last 30 days
Available capabilities
Each Wikipedia action, what it does, its price and its health over the last 24 hours. Open an action for its parameters, response fields and code samples.
| Capability | What it does | Per 1,000 | 24-hour health · All normal |
|---|---|---|---|
Article detailsarticle | Read one Wikipedia article in any language from its link (url). | $1.19 per 1,000 requests | Normal |
5 questions to ask before choosing a data API for Wikipedia
Do I need to log in to Wikipedia or provide a cookie to make calls?
No. Send Authorization: Bearer with your API key in the request header, and put platform, action and the capability parameters in the request body. There is no QR-code login, no login state to maintain and no browser to run.
How is it billed? Are failed requests charged? Is there a free trial?
Billing is per request, $1.19 per 1,000 requests. Failed requests, empty results, invalid parameters and authentication failures are not charged. Star both everyinfra/everyinfra-agent-plugins and everyinfra/seo-skills on GitHub, then claim $1 under Balance & top-ups in the console. It is valid for 24 hours after you claim it, and no credit card is needed.
Can I connect this Wikipedia API to Claude or Cursor?
Yes. The remote MCP URL is https://api.everyinfra.com/mcp. Add Authorization: Bearer and your API key as a request header; there is no local program to install. Setup for Claude, Cursor, ChatGPT and Claude Code is on https://everyinfra.com/en/mcp-server.
What compliance points apply when using Wikipedia data?
The EveryInfra Terms of Service require you to make sure your use of the data complies with applicable law and the platform's terms. They prohibit unlawful use, violating privacy or intellectual property, and bulk scraping for harassment, fraud or other malicious purposes. If you use personal information such as nicknames and avatars, keep only the fields your business needs.
What Wikipedia data can I get?
Available Wikipedia capabilities (1): Article details. The parameters and response fields of each capability are in the API reference on this page.
What does each Wikipedia action accept?
Each answer below pairs one callable action with its real inputs. Parameter meanings and allowed values are action-specific; a familiar name does not carry the same meaning across every platform.
Official sources are linked only to clarify the platform term beside them. They do not imply platform authorization or endorsement, and features of the official site are not part of the EveryInfra API unless this page lists them.
Sync delivery for every action.
| Action | Required | Optional | Limit | Per 1,000 | Response fields |
|---|---|---|---|---|---|
articleArticle details Read one Wikipedia article in any language from its link ( | url | — | — | $1.19 per 1,000 requests | id · title · url · language · text · table_of_contents · categories · references · external_links · images · platform |
What do the Wikipedia article parameters mean?
Read one Wikipedia article in any language from its link (url). The object has the article's plain text with captions and infobox text, the numbered table of contents, categories, references, external links and image links. Mobile and redirect links work. The structured infobox, revision history, page views and talk pages are not included.
urlRequired- Wikipedia article link in any language, such as
https://en.wikipedia.org/wiki/Mount_Everest. Mobile links (en.m.wikipedia.org) and redirect links also work.Wikipedia:About — Wikipedia's About page says it is a free online encyclopedia that anyone can edit, in more than 300 language editions, that articles carry many links to more material, and that content must be verifiable from reliable published material. The source supports reading an article in any language by its link; this API's parameters are defined by EveryInfra, and the source does not vouch for results. · Checked
How to use the Wikipedia API
- 01Choose a platform action from the public catalog.
- 02Send the platform, action, and required parameters to POST /api/v1/social.
- 03Read the result from the response. For an asynchronous action, poll the returned job ID.
- 04Store the response fields that your application needs.
curl -X POST https://api.everyinfra.com/api/v1/social \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"platform":"wikipedia","action":"article","params":{"url":"<url>"}}'
Wikipedia API questions
What can I retrieve with the Wikipedia API?
Set platform to wikipedia. The current catalog lists article details. These action names identify different Wikipedia objects or views; they are not interchangeable search modes.
Which input starts the Wikipedia article request?
Wikipedia article link in any language, such as https://en.wikipedia.org/wiki/Mount_Everest. Mobile links (en.m.wikipedia.org) and redirect links also work. Send it as url inside params.
Which fields can Wikipedia article return?
Its declared schema includes title, language, text, and table_of_contents. A declared field can still be absent from an individual record, and every other action has its own field list.
Does every Wikipedia action return immediately?
Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add "mode": "async" to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.