POST

API health

24h health
Normal
  • Healthy / normal
  • Available
  • Limited
  • Mostly down
Normal

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

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYeswikipediaPlatform identifier, fixed value.
actionbodystringYesarticleCapability identifier, fixed value.
urlbody.paramsstringYes-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

#
bash
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

#
Captured November 22, 2026 at 11:46 (UTC) by calling this API with the parameters in the code sample above. results and count are that call's real response with personal information (names, handles, avatars, profile links, contact details) removed. id, billing and quota differ on every call, so only their shape is shown.
json
{  "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&params=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&params=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.

FieldMeaning
idWikipedia page ID, a number as a string; unique within one language edition.
titleArticle title. For a redirect link, the title of the article it redirects to.
urlThe article link you passed.
languageLanguage edition, taken from the subdomain of the link, such as en, zh or de.
textFull article as plain text, including captions and infobox text.
table_of_contentsHeadings at every level, numbered, such as 1 Background and 1.1 Leadership.
categoriesCategories the article belongs to.
referencesReferences. Each has text (the reference as written) and urls (links inside it).
external_linksLinks to pages outside Wikipedia. Each has title and url; Wikipedia's own edit and maintenance links are left out.
imagesImage links in page order; missing on some articles.
platformSource 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.

Errors

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

Google Analytics needs consent. Privacy