Wikipedia hub

Wikipedia Pageviews API

Daily or monthly views of one article, split by access method and agent class.

GET /v1/wikipedia/pages/{title}/pageviews

1 credit Failed requests are free

About this endpoint

GET /v1/wikipedia/pages/{title}/pageviews?lang=en&from=2026-10-01&to=2026-10-31 returns data.rows, one row per day or month. Each row has date, project, article, granularity, access, agent and views.

granularity is daily (the default) or monthly. access is all-access, desktop, mobile-app or mobile-web. agent is user (the default), spider, automated or all-agents. from and to take ISO 8601 dates or times, and from may not be later than to. The response echoes project, granularity, access, agent, from and to.

A title with no counted views is found with empty: true. A page that has since been deleted can still have historical rows, so treat the rows as history and read lookupStatus separately from the page route.

Wikipedia Pageviews API FAQ

What date range can I ask for?

Pass from and to as ISO 8601 dates or times. A date-only value is read as midnight UTC; a time must include a zone such as Z or +02:00. For monthly data set granularity=monthly; the rows then use YYYY-MM dates.

What does agent mean?

agent=user counts people, spider covers search-engine spiders, automated covers other automated clients, and all-agents combines them. access narrows the same rows to desktop, mobile web, mobile app or all access.

Why does a deleted page still show views?

View counts are historical. A page that has since been deleted can still have rows for the days it was live. The route reports those rows rather than calling the whole answer not_found.

How many credits do pageviews 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.