# SiteCheck Wikipedia Pageviews

> SiteCheck Wikipedia Pageviews is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-20).

Retrieves daily or monthly Wikipedia article pageview timeseries or top-viewed articles for a given date range and Wikipedia edition

## Facts

- Endpoint: GET https://api.sitecheck-api.workers.dev/api/wiki/pageviews?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-wikipedia-pageviews-dd173d83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZQ8OE7-E0LvQstf3uUl6x

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sitecheck-wikipedia-pageviews-dd173d83
```

Example prompt: Can you pull the daily Wikipedia pageview stats for 'Rust (programming language)' and 'Python (programming language)' over the past 30 days on English Wikipedia, and tell me which had more traffic and when each peaked?

## When to prefer this

Use this endpoint when you need structured, time-series pageview data for specific Wikipedia articles or want to discover the day's top-viewed Wikipedia pages. Prefer it over generic web-analytics tools when the subject is explicitly Wikipedia traffic. Useful for trend detection, content research, PR impact measurement, and audience interest signals derived from encyclopedia readership. It wraps the Wikimedia REST API with a pay-per-call model requiring no Wikimedia credentials.

## Known failure modes

- Invalid or misspelled article title returns missing:true for that article
- Date range too far in the past or future may yield empty data from Wikimedia
- More than 5 articles in the comma-separated list may be rejected or truncated
- Invalid project code (e.g. typo in Wikipedia edition) returns an error
- mode=top combined with multiple articles is not supported and may error
- Network timeout if Wikimedia upstream is slow

## How this service works

Daily or monthly page views (user agent, all access) for up to 5 articles in one Wikipedia edition over a date range of at most one year, with totals, peak day and the change between the first and second half. mode=top lists the most viewed articles of one day. Data lags by about a day; bots and unknown agents are excluded.

## Output

A JSON object containing the requested date range, Wikipedia project, granularity, and per-article arrays with total views, daily/monthly series (date + view count), peak day, percent change between first and second half of the range, and a missing flag. In 'top' mode, returns the most-viewed articles for the specified day. Also includes a source attribution and checkedAt timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "to": {
       "type": "string",
       "description": "Last day YYYY-MM-DD (default 2 days ago)"
      },
      "from": {
       "type": "string",
       "description": "First day YYYY-MM-DD (default 30 days before to); for mode=top, the day"
      },
      "mode": {
       "type": "string",
       "description": "series (default) or top (most viewed articles of the day in from)"
      },
      "project": {
       "type": "string",
       "description": "Wikipedia edition, e.g. en.wikipedia (default), de.wikipedia"
      },
      "articles": {
       "type": "string",
       "description": "Comma list of up to 5 article titles, underscores or spaces (mode=series)"
      },
      "granularity": {
       "type": "string",
       "description": "daily (default) or monthly"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "2026-09-07",
  "from": "2026-09-01",
  "source": "Wikimedia REST pageviews API (wikimedia.org/api/rest_v1), data licensed CC0; Wikimedia Terms of Use",
  "project": "en.wikipedia",
  "articles": [
   {
    "total": 12451,
    "series": [
     {
      "date": "2026-09-01",
      "views": 1888
     },
     {
      "date": "2026-09-02",
      "views": 1802
     },
     {
      "date": "2026-09-03",
      "views": 1983
     }
    ],
    "article": "Rust_(programming_language)",
    "missing": false,
    "peakDay": {
     "date": "2026-09-03",
     "views": 1983
    },
    "changePercent": -10.4
   }
  ],
  "checkedAt": "2026-10-15T17:43:54.490Z",
  "changeNote": "changePercent compares the average of the second half of the range with the first half.",
  "granularity": "daily"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-wikipedia-pageviews-dd173d83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
