docs / wikipedia

Wikipedia

Article summaries, search and structured facts.

base /wikipedia/v110 endpoints
post/wikipedia/v1/summary1 credit

page summary: extract, description, thumbnail, coordinates, wikibase QID, urls (lang= any of 360+ editions)

ParameterAllowed / rangeDescription
titlerequiredExact article title (case-sensitive first letter aside).
lang = enoptionalWikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en.
Try in playground →
post/wikipedia/v1/page1 credit

full article: plain-text body + internal links + image list + categories + external links (content=false → structure only)

ParameterAllowed / rangeDescription
titlerequiredExact article title (case-sensitive first letter aside).
lang = enoptionalWikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en.
content = trueoptionalfalse (or 0/no) → return article STRUCTURE only (links/images/categories), skip the plain-text body.
links_limit = 100optional1–500Max internal links to return (1-500); clamped.
images_limit = 50optional1–200Max images to return (1-200); clamped.
Try in playground →
post/wikipedia/v1/entity_facts2 credits

Wikidata facts for a QID or title: label/description/aliases + resolved human-readable facts{prop:value} + key_facts + identifiers + image/coords

ParameterAllowed / rangeDescription
idoptionalWikidata QID (e.g. Q937). Supply this OR `title`/`query` to resolve one.
titleoptionalArticle/entity title to resolve to a Wikidata QID. Supply this OR `id`.
lang = enoptionalWikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en.
value_cap = 50optional1–200Max values kept per multi-valued Wikidata property (1-200); clamped.
Try in playground →
post/wikipedia/v1/pageviews1 credit

daily/monthly traffic for an article over a date range → series + total + average

ParameterAllowed / rangeDescription
titlerequiredArticle title to pull traffic for.
lang = enoptionalWikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en.
startoptionalRange start date, YYYYMMDD or YYYY-MM-DD. Supply both start AND end, or use `days` instead.
endoptionalRange end date, YYYYMMDD or YYYY-MM-DD. Supply both start AND end, or use `days` instead.
days = 30optional1–1000Look-back window ending today, used when start/end are omitted (1-1000).
granularity = dailyoptionaldaily · monthlyBucket size. Anything not starting with 'month' is treated as daily.
access = all-accessoptionalall-access · desktop · mobile-app · mobile-webWikimedia Pageviews access channel (passed through to the REST API).
agent = all-agentsoptionalall-agents · user · spider · automatedWikimedia Pageviews agent class (passed through to the REST API).
Try in playground →
post/wikipedia/v1/autocompletefree

typeahead title suggestions

ParameterAllowed / rangeDescription
qrequiredTypeahead prefix to autocomplete.
lang = enoptionalWikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en.
limit = 10optional1–50Max results (1-50, default 10); clamped.
Try in playground →
post/wikipedia/v1/geosearch1 credit

Wikipedia pages near a coordinate or around a title

ParameterAllowed / rangeDescription
latoptional-90–90Latitude. Provide lat+lon, OR `coord`, OR `title` for geosearch.
lonoptional-180–180Longitude (pairs with lat).
coordoptional'lat,lon' string — alternative to separate lat/lon params.
titleoptionalFind pages near THIS article's coordinates (alternative to lat/lon/coord).
radius = 1000optional10–10000Search radius in metres (10-10000); clamped.
limit = 10optional1–50Max results (1-50, default 10); clamped.
lang = enoptionalWikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en.
Try in playground →
post/wikipedia/v1/on_this_day1 credit

historical events/births/deaths/holidays for a month-day (kind=all|selected|events|births|deaths|holidays)

ParameterAllowed / rangeDescription
monthoptional1–12Month 1-12 (pair with `day`), OR supply `date` instead. Defaults to today.
dayoptional1–31Day-of-month 1-31 (pairs with `month`).
dateoptionalDate whose month-day is used (MM-DD or YYYY-MM-DD). Alternative to month/day.
kind = alloptionalall · selected · events · births · deaths · holidaysWhich on-this-day category. An unknown value falls back to 'all'.
limit = 30optional1–100Max results (1-100, default 30); clamped.
lang = enoptionalWikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en.
Try in playground →
post/wikipedia/v1/top_articles1 credit

most-viewed articles for a given date (trending)

ParameterAllowed / rangeDescription
dateoptionalDay to rank, YYYY-MM-DD or YYYYMMDD. Defaults to yesterday (today lags).
limit = 50optional1–1000Max results (1-1000, default 50); clamped.
access = all-accessoptionalall-access · desktop · mobile-app · mobile-webWikimedia Pageviews access channel (passed through to the REST API).
include_special = falseoptionalKeep special pages (Main_Page, Special:Search) in the ranking; default drops them.
lang = enoptionalWikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en.
Try in playground →