Get Wikipedia page
Get a Wikipedia page's identity, lead, images, protection and optional assessments and pageviews.
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`.
Extra parts: `links` (search-index lists), `assessments` (WikiProject classes and importance) and `pageviews` (the last 60 days), comma-separated. Default: none.
any of: links, assessments, pageviews (comma-separated)
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.
The page when found; otherwise null.
Page id.
Edition code.
Title.
Title with display markup.
Namespace id.
Content model, e.g. `wikitext`.
Page language code.
Latest revision id.
When the page was last touched.
Wikitext size in bytes.
Canonical page URL.
Short description.
Where the description comes from.
one of: local, central, null
Lead image file name.
An image URL and its natural size.
Image URL. The file host may add its own tracking parameters.
Width in pixels.
≥ 0
Height in pixels.
≥ 0
An image URL and its natural size.
Image URL. The file host may add its own tracking parameters.
Width in pixels.
≥ 0
Height in pixels.
≥ 0
How many editions have this page.
Watchers, when shown.
Recent visitors watching, when shown.
Talk page id.
Subject page id on a talk page.
Whether the file page is hosted on the shared media repository.
The title asked for when it redirected here.
Active protection rules.
Operation protected, e.g. `edit` or `move`.
Right needed, e.g. `autoconfirmed` or `sysop`.
When it expires, ISO 8601; null for infinity.
Counts on a category page; null on every other page.
Rows in the category.
≥ 0
Pages in it.
≥ 0
Files in it.
≥ 0
Subcategories.
≥ 0
Whether the category is hidden.
Wikidata terms in the page language.
Wikidata labels in the page language.
Wikidata aliases.
Wikidata descriptions.
Coordinates recorded on the page.
Latitude; null when unknown.
Longitude; null when unknown.
Whether this is the primary point.
Place type.
Size hint in metres.
Globe, e.g. `earth`.
Country code.
Region code.
Place name.
Wikidata entity id.
Default sort key.
Whether the page is a disambiguation page.
Title in each language variant (zh, sr, kk).
Plain-text lead, when requested.
Search-index document, when `include=links`.
How many pages link here.
Wikimedia's pageview-derived popularity score.
When the page was first created.
Text size in bytes.
Machine predictions and weights exactly as the index stores them.
Predicted article topics.
Predicted topic path.
Confidence from 0 to 1.
Predicted article countries.
Predicted country.
Confidence from 0 to 1.
WikiProject weights.
WikiProject name.
Weight from 0 to 1.
Weighted tags that are neither a topic, a country nor a project.
Every category, hidden ones included.
Titles that redirect here.
Section headings.
Transcluded templates.
Internal links.
External URLs.
Plain-text opening.
Coordinates recorded in the search index.
Latitude; null when unknown.
Longitude; null when unknown.
Whether this is the primary point.
Place type.
Size hint in metres.
Globe, e.g. `earth`.
Country code.
Region code.
Place name.
WikiProject assessments, when `include=assessments`.
WikiProject name.
Quality class, e.g. `FA`, `GA`, `C`.
Importance, e.g. `Top`.
Daily views, when `include=pageviews`.
Day, `YYYY-MM-DD`.
Views that day; null on a day not yet counted.
≥ 0
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" \
-H "x-api-key: YOUR_API_KEY"Responses
Get Wikipedia page