# Wikipedia Pageviews — Daily & Monthly Traffic Stats

> Wikipedia Pageviews — Daily & Monthly Traffic Stats is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.008/call, status unknown (last checked 2026-11-21).

Returns daily or monthly Wikipedia article pageview counts with totals, timeseries, and trend percentage for a given article title and date range.

## Facts

- Endpoint: POST https://x402.agentutility.ai/wikipedia-pageviews?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wikipedia-pageviews-daily-monthly-traffic-stats-983523dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jP2xN6bo5M02Aax2lFGuD

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 wikipedia-pageviews-daily-monthly-traffic-stats-983523dd -d '<json body>'
```

Example prompt: How many times was the Wikipedia article 'Artificial intelligence' viewed over the last 30 days? Give me daily breakdown and whether interest is trending up or down.

## When to prefer this

Use this endpoint when you need quantitative traffic data for a specific Wikipedia article — daily or monthly view counts, totals, and trend direction. Prefer this over general web analytics tools when the subject is a Wikipedia page and you want structured, historical timeseries data without needing API keys or OAuth. Ideal for tracking topic interest over time, detecting spikes in public attention, or comparing periods.

## Known failure modes

- Article title not found on Wikipedia — returns error or empty timeseries
- Invalid date format — schema requires ISO8601 'YYYY-MM-DD' or 'YYYYMMDD'
- Date range too recent — pageview data lags ~2 days, so very recent dates may return incomplete data
- Start date after end date — may return empty or error response
- Article title exceeds 300 character limit — validation error

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a JSON object with the article title, start and end dates, granularity (daily or monthly), total pageviews across the period, a trend percentage (positive = growing, negative = declining), a timeseries array of {date, views} objects, and the source attribution ('Wikimedia Pageviews REST API').

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "title"
     ],
     "properties": {
      "end": {
       "type": "string",
       "description": "Optional window end date, ISO8601 'YYYY-MM-DD' or 'YYYYMMDD'. Defaults to 2 days ago (pageview data lags)."
      },
      "start": {
       "type": "string",
       "description": "Optional window start date, ISO8601 'YYYY-MM-DD' or 'YYYYMMDD'. Defaults to 30 days before end."
      },
      "title": {
       "type": "string",
       "description": "Wikipedia article title, e.g. 'Artificial intelligence'. Required, max 300 chars."
      },
      "granularity": {
       "type": "string",
       "description": "Either 'daily' or 'monthly'. Default 'daily'."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "end": {
       "type": "string"
      },
      "start": {
       "type": "string"
      },
      "title": {
       "type": "string"
      },
      "total": {
       "type": "integer"
      },
      "source": {
       "type": "string"
      },
      "trend_pct": {
       "type": "number"
      },
      "timeseries": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string"
         },
         "views": {
          "type": "integer"
         }
        }
       }
      },
      "granularity": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "end": "20260607",
  "start": "20260601",
  "title": "Artificial intelligence",
  "total": 229704,
  "source": "Wikimedia Pageviews REST API",
  "trend_pct": -12.4,
  "timeseries": [
   {
    "date": "2026-06-01",
    "views": 38866
   },
   {
    "date": "2026-06-02",
    "views": 41178
   }
  ],
  "granularity": "daily"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wikipedia-pageviews-daily-monthly-traffic-stats-983523dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
