> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/platforms/wikipedia/pageviews-site>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/wikipedia/pageviews-site.mdx>

---

# Wikipedia Site Pageviews API

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

`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`.

## Request

- **Endpoint:** `GET /v1/wikipedia/pageviews/site`
- **Credits:** 1 credit
Failed requests are free
- **Input:** by date range
- **Full reference:** [docs](https://www.socialfetch.dev/docs/api/v1/wikipedia/pageviews/site/get)
- **Platform page:** [/platforms/wikipedia](https://www.socialfetch.dev/platforms/wikipedia)

## 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.
