Wikipedia Page API
One page record with its identity, description, lead extract and optional search-index data.
GET /v1/wikipedia/pages/{title}1 credit Failed requests are free
About this endpoint
GET /v1/wikipedia/pages/{title}?lang=en returns data.page for a title on one edition. A missing title is lookupStatus: not_found with page: null. A redirect is followed and the original title is reported in page.redirectedFrom.
The page record carries id, title, displayTitle, namespace, contentModel, pageLanguage, lastRevisionId, lengthBytes, url and touchedAt. It also carries description and descriptionSource, pageImage, image and thumbnail, languageCount, protection, coordinates, wikidataId, defaultSort and categoryInfo when the page is a category. terms holds Wikidata labels, aliases and descriptions in the page language.
Set include=links to fill searchIndex: incoming links, popularity score, creation time, tags, categories, headings, templates, outgoing links and external links. include=assessments adds WikiProject classes and importance in assessments, and include=pageviews adds 60 days of daily views in viewsLast60Days.
Wikipedia Page API FAQ
How is the title handled?
Spaces and underscores are equivalent, and a #fragment is dropped. Redirects are followed. When the title redirected, page.redirectedFrom holds the title you asked for, and page.title is the resolved title.
What do the include values add?
include is comma-separated. links fills page.searchIndex, assessments fills page.assessments with project, class and importance, and pageviews fills page.viewsLast60Days with a date and views for each day.
What does lookupStatus mean here?
found means the page exists and page is an object. not_found means the title does not exist on that edition and page is null. HTTP 200 only means the request finished, so branch on lookupStatus.
How many credits does a page lookup cost?
Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth.
Other Wikipedia endpoints
- Pages by titleGET /v1/wikipedia/pages
- Page contentGET /v1/wikipedia/pages/{title}/content
- RevisionsGET /v1/wikipedia/pages/{title}/revisions
- History statsGET /v1/wikipedia/pages/{title}/history-stats
- BacklinksGET /v1/wikipedia/pages/{title}/backlinks
- LinksGET /v1/wikipedia/pages/{title}/links
- LanguagesGET /v1/wikipedia/pages/{title}/languages
- MediaGET /v1/wikipedia/pages/{title}/media