Wikipedia hub

Wikipedia Site Pageviews API

Site-wide views or unique devices for an edition, with daily or monthly rows.

GET /v1/wikipedia/pageviews/site

1 credit Failed requests are free

About this endpoint

GET /v1/wikipedia/pageviews/site?lang=en&from=2026-10-01&to=2026-10-31 returns data.rows, one row per day or month. Each row has date, project, accessSite, views, devices, offset and underestimate.

Set metric=unique_devices to fill devices, offset and underestimate instead of views. granularity is daily (the default) or monthly. from and to take ISO 8601 dates or times, and from may not be later than to. The response echoes metric, granularity, from and to.

This is the edition-level total, not one article's views. Use the per-article pageviews route when you need one title. A range with no counted data is found with empty: true.

Wikipedia Site Pageviews API FAQ

What is the difference between views and unique devices?

views counts page views. unique_devices estimates distinct devices. Set metric=unique_devices to fill the devices fields; the views field is then null.

Can I read a single day?

Yes. Set both from and to to the same day, or use granularity=daily with a one-day range. Monthly rows need a range inside one month to keep the answer to a single row.

Why is offset present?

offset is the published adjustment for unique-device counts. underestimate is its lower bound. views rows leave both null.

How many credits does a site total 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.