# Wikimedia Per-Article Pageviews API (x402)

> Wikimedia Per-Article Pageviews API (x402) is a paid API for AI agents from x402-v2-mint-wikimedia-pageviews.vercel.app, paid per call via x402, $0.020177/call, status unknown (last checked 2026-11-20).

Returns historical pageview counts for a specific Wikipedia article over a given date range, billed per call via the x402 micropayment protocol.

## Facts

- Endpoint: POST https://x402-v2-mint-wikimedia-pageviews.vercel.app/v1/wikimedia-pageviews?utm_source=zero.xyz
- Price: $0.020177/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wikimedia-per-article-pageviews-api-x402-f7d61089
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0sNcz5alew1PzNXyCwWVh

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 wikimedia-per-article-pageviews-api-x402-f7d61089 -d '<json body>'
```

Example prompt: Can you pull the daily Wikipedia pageview counts for the article 'Climate change' from January 1 2024 to January 31 2024 on the English Wikipedia?

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-call access to Wikimedia per-article pageview data without managing API keys, and when your workflow supports the x402 micropayment protocol. It is ideal for agents that need on-demand Wikipedia traffic lookups without committing to a bulk data pipeline or Wikimedia API rate limits.

## Known failure modes

- 402 Payment Required with empty body if payment has not been settled — must complete x402 payment flow first
- 400 Bad Request with charged:false if payment settled but article title is missing or invalid
- 404-equivalent if the specified article does not exist on the target Wikipedia project
- Invalid date format causing rejection if start/end are not in expected YYYYMMDD format
- Incorrect project or access enum values causing Wikimedia upstream errors

## How this service works

Wikimedia REST per-article pageviews (keyless). POST {article|title, start, end, project?, access?, agent?, granularity?}. Unpaid empty → 402; after settle empty/invalid → 400 charged:false. Soft disclose wikidata-entity / wikipedia-summary.

## Output

Returns a JSON object with ok status, skill identifier ('wikimedia-pageviews'), a charged boolean indicating whether the micropayment was successfully processed, a summary string, and the underlying Wikimedia pageview data including per-day or per-month view counts for the requested article and date range.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end": {
   "type": "string",
   "maxLength": 16
  },
  "agent": {
   "type": "string",
   "maxLength": 32
  },
  "start": {
   "type": "string",
   "maxLength": 16
  },
  "title": {
   "type": "string",
   "maxLength": 256
  },
  "access": {
   "type": "string",
   "maxLength": 32
  },
  "article": {
   "type": "string",
   "maxLength": 256
  },
  "project": {
   "type": "string",
   "maxLength": 64
  },
  "request_id": {
   "type": "string"
  },
  "granularity": {
   "type": "string",
   "maxLength": 16
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "wikimedia-pageviews",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wikimedia-per-article-pageviews-api-x402-f7d61089/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-wikimedia-pageviews.vercel.app](https://www.zero.xyz/host/x402-v2-mint-wikimedia-pageviews.vercel.app/llms.txt)
