> **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/pages-title-pageviews>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/wikipedia/pages-title-pageviews.mdx>

---

# Wikipedia Pageviews API

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

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

## Request

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

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