Wikipedia Article details API
API health
- 24h health
- Normal
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
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.
Send POST https://api.everyinfra.com/api/v1/social with platform set to wikipedia and action set to article. Price $1.19 per 1,000 requests ($0.001194 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra Wikipedia Article details endpoint (wikipedia/article).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to wikipedia and action to article, and put the parameters inside params.
- Required parameters:
- url: 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.
- Returns one object. Main fields: id (Wikipedia page ID, a number as a string), title (Article title), url (The article link you passed), language (Language edition, taken from the subdom…), text (Full article as plain text, including c…), table_of_contents (Headings at every level, numbered, such…), categories (Categories the article belongs to), references (References), external_links (Links to pages outside Wikipedia), images (Image links in page order).
- Example request body:
{
"platform": "wikipedia",
"action": "article",
"params": {
"url": "https://en.wikipedia.org/wiki/Mount_Everest"
}
}
- Price: $1.19 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | wikipedia | Platform identifier, fixed value. |
action | body | string | Yes | article | Capability identifier, fixed value. |
url | body.params | string | Yes | - | 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. |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "wikipedia",
"action": "article",
"params": {
"url": "https://en.wikipedia.org/wiki/Mount_Everest"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "platform": "wikipedia", "action": "article", "results": { "id": "42179", "title": "Mount Everest", "url": "https://en.wikipedia.org/wiki/Mount_Everest", "language": "en", "text": "Coordinates: 27°59′18″N 86°55′31″E / 27.98833°N 86.92528°E / 27.98833; 86.92528Earth's highest mountain\nNot to be confused with Mount Everett.\nSeveral terms redirect here. For other uses, see Everest (disambiguation), Sagarmatha (disambiguation), and Qomolangma (disambiguatio…", "table_of_contents": [ "1 Name", "1.1 Other names", "2 Surveys" ], "categories": [ "China–Nepal border", "Eight-thousanders of the Himalayas", "Extreme points of Asia" ], "references": [ { "text": "\"Mount Everest\". Peakbagger.com.", "urls": [ "http://www.peakbagger.com/peak.aspx?pid=10640" ] }, { "text": "\"Peak Bagger:Himalaya, Central Nepal Himalaya, Khumbu, Ghurka Himal, Annapurna Himal, Xishapangma Area, Sikkim-Eastern Nepal Himalaya, Western Nepal Himalaya, Assam Himalaya, Punjab Himalaya, Bhutan Himalaya, Garwhal Himalaya, Ganesh Himal\". Retrieved 22 October 2024.", "urls": [ "https://www.peakbagger.com/range.aspx?rid=48" ] }, { "text": "Tournadre, Nicolas (2009). Sherpa-English and English-Sherpa dictionary: with literary Tibetan and Nepali equivalents. Kathmandu: Vajra Publications. ISBN •••-9. OCLC 645792343.", "urls": [ "https://www.worldcat.org/title/645792343", "https://en.wikipedia.org/wiki/ISBN_(identifier)", "https://en.wikipedia.org/wiki/Special:BookSources/978-9937-506-35-9" ] } ], "external_links": [ { "title": "27°59′18″N 86°55′31″E / 27.98833°N 86.92528°E / 27.98833; 86.92528", "url": "https://geohack.toolforge.org/geohack.php?pagename=Mount_Everest¶ms=27_59_18_N_86_55_31_E_type:mountain_scale:100000" }, { "title": "27°59′18″N 86°55′31″E / 27.98833°N 86.92528°E / 27.98833; 86.92528", "url": "https://geohack.toolforge.org/geohack.php?pagename=Mount_Everest¶ms=27_59_18_N_86_55_31_E_type:mountain_scale:100000" }, { "title": "120", "url": "https://whc.unesco.org/en/list/120" } ], "images": [ "https://thumb.wikimedia.org/wikipedia/commons/thumb/e/e7/Everest_North_Face_toward_Base_Camp_Tibet_Luca_Galuzzi_2006.jpg/250px-Everest_North_Face_toward_Base_Camp_Tibet_Luca_Galuzzi_2006.jpg?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail", "https://thumb.wikimedia.org/wikipedia/commons/thumb/2/24/Mount_Everest_morning.jpg/250px-Mount_Everest_morning.jpg?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail", "https://thumb.wikimedia.org/wikipedia/commons/thumb/1/14/%22Papers_relating_to_the_Himalaya_and_Mount_Everest%22_in_Proceedings_of_the_Royal_Geographical_Society_of_London,_Vol._I_(1857),_p._346.jpg/250px-%22Papers_relating_to_the_Himalaya_and_Mount_Everest%22_in_Proceedings_of_t…" ], "platform": "wikipedia" }, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| Field | Meaning |
|---|---|
id | Wikipedia page ID, a number as a string; unique within one language edition. |
title | Article title. For a redirect link, the title of the article it redirects to. |
url | The article link you passed. |
language | Language edition, taken from the subdomain of the link, such as en, zh or de. |
text | Full article as plain text, including captions and infobox text. |
table_of_contents | Headings at every level, numbered, such as 1 Background and 1.1 Leadership. |
categories | Categories the article belongs to. |
references | References. Each has text (the reference as written) and urls (links inside it). |
external_links | Links to pages outside Wikipedia. Each has title and url; Wikipedia's own edit and maintenance links are left out. |
images | Image links in page order; missing on some articles. |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.
Official references
#Used only to check objects and terms. They do not imply authorization or endorsement of EveryInfra by the platform.
- 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 2026-11-22