Skip to main content
POST
/
api
/
wikipedia
/
articles
/wikipedia/articles
curl --request POST \
  --url https://api.anysite.io/api/wikipedia/articles \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "article": "<string>",
  "timeout": 300,
  "language": "en"
}
'
[
  {
    "id": 123,
    "title": "<string>",
    "@type": "@wikipedia_article",
    "display_title": "<string>",
    "alias": "",
    "description": "<string>",
    "summary": "<string>",
    "language": "",
    "content_model": "<string>",
    "length": 123,
    "last_revision_id": 123,
    "touched_at": "<string>",
    "wikidata_id": "<string>",
    "image": {
      "image": "<string>",
      "@type": "@wikipedia_image",
      "width": 123,
      "height": 123
    },
    "categories": [],
    "langlinks": [],
    "web_url": ""
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
article
string
required

Article title, numeric page id, or a Wikipedia article URL

Minimum string length: 1
Examples:

"Python (programming language)"

"23862"

"https://en.wikipedia.org/wiki/Albert_Einstein"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
language
string
default:en

Wikipedia language edition code (e.g. en, de, fr, ja)

Required string length: 2 - 20

Response

Successful Response

id
integer
required
title
string
required
@type
string
default:@wikipedia_article
display_title
string | null
alias
string
default:""
description
string | null
summary
string | null
language
string
default:""
content_model
string | null
length
integer | null
last_revision_id
integer | null
touched_at
string | null
wikidata_id
string | null
image
WikipediaImage · object
categories
string[]
web_url
string
default:""