Get Wikipedia page pageviews
Get a Wikipedia page's daily or monthly views by access method and agent.
Headers
Get your API keyAPI key (`sfk_...`)
Page title on the chosen edition, e.g. `Albert Einstein`, `C++` or `Talk:Barack Obama`. URL-encode it in the path.
Wikimedia edition code, e.g. `en`, `de`, `ja`, `simple` or `zh-min-nan`. Default: `en`.
Start of the window as a real `YYYY-MM-DD` day (read as midnight UTC) or a full ISO 8601 date-time with a zone.
End of the window as a real `YYYY-MM-DD` day (read as midnight UTC) or a full ISO 8601 date-time with a zone.
`daily` (default) or `monthly`.
one of: daily, monthly
Access method. Default: `all-access`.
one of: all-access, desktop, mobile-app, mobile-web
Agent class. Default: `user`.
one of: user, spider, automated, all-agents
Endpoint-specific response payload.
Whether the entity, page or data set exists. A missing entity is `not_found`; an existing entity with no rows is `found` with `empty: true`.
one of: found, not_found
Edition code.
Title.
Project, e.g. `en.wikipedia`.
Daily or monthly rows.
one of: daily, monthly
Access method.
Agent class.
First day or month requested.
Last day or month requested.
Views in the requested range.
Day, `YYYY-MM-DD`.
Views that day; null on a day not yet counted.
≥ 0
Whether the answer is a valid empty result rather than missing.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/wikipedia/pages/Albert%20Einstein/pageviews" \
-H "x-api-key: YOUR_API_KEY"Responses
Get Wikipedia page pageviews