# Wikipedia Attention - Daily Page Views

> Wikipedia Attention - Daily Page Views is a paid API for AI agents from wikipedia-attention.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Returns daily human page view counts for a Wikipedia article over a 7–90 day window, with average, peak, spike detection, and rising/falling trend flags.

## Facts

- Endpoint: GET https://wikipedia-attention.x402tookit.com/page-views?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wikipedia-attention-daily-page-views-8629b9c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YWJoayWW5VLVzTs1SHLCv

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-attention-daily-page-views-8629b9c2
```

Example prompt: How many people have been reading the Bitcoin Wikipedia article over the last 30 days — is interest rising or falling, and were there any major spikes?

## When to prefer this

Use this endpoint when you need granular daily page view data for a specific Wikipedia article with pre-computed trend analysis (rising/falling), spike detection, and natural-language summaries — rather than raw Wikimedia API calls that require your own aggregation and trend logic. Prefer this over generic web analytics when you specifically want Wikipedia as a proxy for public human attention to a topic, person, or event.

## Known failure modes

- Article title not found on Wikipedia — returns error or empty series
- Invalid language code — defaults to 'en' or returns error
- Days parameter outside 7–90 range — validation error
- Wikipedia API unavailable — degraded flag set to true with partial data
- Ambiguous article title resolving to disambiguation page — may return unexpected results
- Payment not processed — 402 response, no data returned

## How this service works

Daily human page views for a Wikipedia article over 7 to 90 days, with average, peak, spike and rising or falling trend flags.

## Output

A JSON object containing: a daily time series of human page views (date + views), total views, average per day, median per day, last 7-day average, previous 7-day average, percent change, the peak day and its view count, a spike multiple (how many times above average the peak was), a verdict string (e.g. 'rising', 'falling', 'stable'), a natural-language summary, and an array of reasons explaining the verdict. Also includes the article name, language, data source URL, and optional degraded/disclaimer flags.

## 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": [
      "article"
     ],
     "properties": {
      "days": {
       "type": "integer",
       "description": "Window 7 to 90 days (default 30)"
      },
      "lang": {
       "type": "string",
       "description": "Wikipedia language code (default en)"
      },
      "article": {
       "type": "string",
       "description": "Article title, e.g. Bitcoin"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "days": {
       "type": [
        "null",
        "number"
       ]
      },
      "peak": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "date": {
         "type": [
          "null",
          "string"
         ]
        },
        "views": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "series": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": [
           "null",
           "string"
          ]
         },
         "views": {
          "type": [
           "null",
           "number"
          ]
         }
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "article": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "language": 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wikipedia-attention-daily-page-views-8629b9c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from wikipedia-attention.x402tookit.com](https://www.zero.xyz/host/wikipedia-attention.x402tookit.com/llms.txt)
