Get Wikipedia page content
Get a Wikipedia page's plain-text lead, rendered HTML or wikitext, with sections, links, categories, templates and media.
Headers
Get your API keyAPI key (`sfk_...`)
Page title on the chosen edition, e.g. `Albert Einstein`, `C++` or `Talk:Barack Obama`. URL-encode it in the path.
Wikimedia edition code, e.g. `en`, `de`, `ja`, `simple` or `zh-min-nan`. Default: `en`.
`text` for the plain-text lead (no lists or tables), `html` for the rendered article, `wikitext` for the source. Default: `text`.
one of: text, html, wikitext
HTML section number to return instead of the whole article.
≥ 0 · ≤ 9999
Endpoint-specific response payload.
Whether the entity, page or data set exists. A missing entity is `not_found`; an existing entity with no rows is `found` with `empty: true`.
one of: found, not_found
Edition code.
Title.
Format returned.
one of: text, html, wikitext
Section number, when asked.
Page id.
Revision id.
Title with display markup.
The content in the requested form; the other fields are null.
Plain text, for `format=text`.
HTML, for `format=html`.
Wikitext, for `format=wikitext`.
Content licence. Text and HTML use the edition's fixed CC BY-SA 4.0 notice; wikitext uses the notice the core REST answer carries.
Licence name.
Licence URL.
Revision the content belongs to.
Revision id.
When it was saved.
Resolved title of the redirect, on `format=wikitext`.
The title asked for when it redirected to the returned page.
Section headings of the rendered page.
Depth in the table of contents.
Heading level.
Heading text.
Section number.
Section index.
Title the section belongs to.
Offset in the wikitext.
Anchor.
Link anchor.
Categories of the rendered page.
Category name without the namespace.
Sort key.
Whether the category is hidden.
Other editions of the rendered page.
Edition code.
URL in that edition.
Language name.
Language name in itself.
Title.
Templates, when the answer carries them.
Namespace id.
Linked title.
Whether the target page exists.
External URL.
Interwiki prefix.
Human-readable category sort key.
When the page joined the category.
Whether the category is hidden.
Image file names, when carried.
External URLs, when the answer carries them.
Interwiki links, when the answer carries them.
Namespace id.
Linked title.
Whether the target page exists.
External URL.
Interwiki prefix.
Human-readable category sort key.
When the page joined the category.
Whether the category is hidden.
Internal links, when the answer carries them.
Namespace id.
Linked title.
Whether the target page exists.
External URL.
Interwiki prefix.
Human-readable category sort key.
When the page joined the category.
Whether the category is hidden.
Page properties the rendered page reports.
Warnings the rendered page reports.
Redirects followed while rendering.
Whether the answer is a valid empty result rather than missing.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/wikipedia/pages/Albert%20Einstein/content?format=text" \
-H "x-api-key: YOUR_API_KEY"Responses
Get Wikipedia page content