# Wikipedia Pageviews Trend

> Wikipedia Pageviews Trend is a paid API for AI agents from attention-trends.shopttyass-85f.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-31).

Returns normalized daily Wikipedia pageview data for any topic over a configurable window, with trend direction, spike detection, and percent-change metrics.

## Facts

- Endpoint: GET https://attention-trends.shopttyass-85f.workers.dev/trend?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wikipedia-pageviews-trend-1bfb3de6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AAgobM9MUQFXUc4PjZuT0

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-trend-1bfb3de6
```

Example prompt: Can you pull the Wikipedia pageview trend for 'Nvidia' over the last 30 days and tell me if interest is rising, falling, or spiking?

## When to prefer this

Choose this endpoint when you need a free, unbiased proxy for public attention or topic popularity that doesn't rely on proprietary search data. It's ideal for tracking brand awareness, monitoring breaking news interest, doing competitive intelligence, or measuring the cultural footprint of any topic resolvable to a Wikipedia article. Prefer it over Google Trends alternatives when you need raw view counts alongside normalized indices, spike detection with statistical rigor (robust z-scores), or when you want to avoid search-intent bias — Wikipedia views reflect reading interest, not just query behavior.

## Known failure modes

- Topic cannot be resolved to any Wikipedia article — returns error or empty alternatives
- Ambiguous topic matches wrong article (e.g. 'Apple' resolves to fruit instead of company)
- Requested days window exceeds 365 or is below 7 — schema validation error
- Unsupported language code returns error or falls back to English
- Wikimedia API upstream outage causes data gaps or failures
- Very new or obscure topics may have insufficient pageview history for meaningful trend data

## How this service works

Wikipedia pageviews trend for any topic: interest over time as a measure of topic popularity and public attention. Free text (brand, person, product, event) is resolved to the matching Wikipedia article. Returns daily views normalized 0-100, 7-day and window % change, direction (rising, falling, stable, spiking), peak day and spike detection. Similar in purpose to Google Trends search interest, but it measures Wikipedia reading, not searches.

## Output

A JSON object containing: the resolved Wikipedia article (title, URL, Wikidata ID, match method), a daily time series of pageviews with 0-100 normalized index values, a summary with total views, average daily views, 7-day and half-window percent changes, trend direction (rising/falling/stable/spiking), peak day, median daily views, slope per week, and a list of detected spike events with z-scores and ratio-to-median.

## 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": [
      "topic"
     ],
     "properties": {
      "days": {
       "type": "integer",
       "default": 30,
       "maximum": 365,
       "minimum": 7,
       "description": "Window length in days, ending yesterday UTC"
      },
      "lang": {
       "type": "string",
       "default": "en",
       "description": "Wikipedia language code (default en)"
      },
      "topic": {
       "type": "string",
       "description": "Free-text topic, resolved to the best-matching Wikipedia article (e.g. 'bitcoin', 'Taylor Swift', 'AI Act')"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "topic",
      "article",
      "summary",
      "series"
     ],
     "properties": {
      "lang": {
       "type": "string"
      },
      "note": {
       "type": "string"
      },
      "topic": {
       "type": "string"
      },
      "series": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string"
         },
         "index": {
          "type": "integer",
          "description": "0-100, 100 = peak day"
         },
         "views": {
          "type": "integer"
         }
        }
       }
      },
      "window": {
       "type": "object",
       "properties": {
        "end": {
         "type": "string"
        },
        "days": {
         "type": "integer"
        },
        "start": {
         "type": "string"
        }
       }
      },
      "article": {
       "type": "object",
       "properties": {
        "url": {
         "type": "string"
        },
        "title": {
         "type": "string"
        },
        "wikidata": {
         "type": [
          "string",
          "null"
         ]
        },
        "matchedBy": {
         "enum": [
          "exact",
          "redirect",
          "search"
         ],
         "type": "string"

… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lang": "en",
  "note": "Source: Wikimedia Pageviews API…",
  "topic": "bitcoin",
  "series": [
   {
    "date": "2026-10-20",
    "index": 73,
    "views": 2250
   }
  ],
  "window": {
   "end": "2026-10-20",
   "days": 30,
   "start": "2026-09-21"
  },
  "article": {
   "url": "https://en.wikipedia.org/wiki/Bitcoin",
   "title": "Bitcoin",
   "wikidata": "Q131723",
   "matchedBy": "redirect",
   "description": "Decentralized digital cryptocurrency",
   "alternatives": []
  },
  "summary": {
   "days": 30,
   "peak": {
    "date": "2026-10-12",
    "views": 3100
   },
   "total": 66000,
   "spikes": [],
   "avgDaily": 2200,
   "last7Avg": 2300,
   "prev7Avg": 2100,
   "direction": "stable",
   "change7dPct": 9.5,
   "medianDaily": 2150,
   "changeHalfPct": 4.1,
   "slopePctPerWeek": 1.8
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wikipedia-pageviews-trend-1bfb3de6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from attention-trends.shopttyass-85f.workers.dev](https://www.zero.xyz/host/attention-trends.shopttyass-85f.workers.dev/llms.txt)
