# attention-pageviews

> attention-pageviews is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-15).

Returns a 0-100 Wikipedia readership attention index for a keyword/entity, including WoW/MoM deltas, trend direction, and datestamped traffic spikes

## Facts

- Endpoint: GET https://payai.agentstools.dev/attention/pageviews
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/attention-pageviews-050f9136
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F4P6hcqGoVmTWS7RxnbTU

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 attention-pageviews-050f9136
```

Example prompt: What's the current Wikipedia readership attention index for Bitcoin — give me the 0-100 score, the week-over-week and month-over-month deltas, and flag any recent traffic spikes over the last 90 days.

## When to prefer this

Choose this endpoint when you need a fast, normalized readership-curiosity signal based on actual Wikipedia traffic — ideal for tracking public attention to companies, people, products, or topics without needing Google Trends API access. Prefer it over news-volume counts when you want to measure sustained informational interest rather than headline frequency, and over social media signals when you want a less noisy, bot-resistant proxy for genuine public curiosity.

## Known failure modes

- Ambiguous keyword that cannot be resolved to a Wikipedia article returns an error or wrong article
- Keyword with no English Wikipedia article (project mismatch) returns not-found
- Lookback window outside 14-365 day range rejected with validation error
- Very low-traffic topics may produce a near-zero index with no meaningful delta
- Rate limiting or Wikimedia API downtime causes timeout or 5xx error

## How this service works

Wikipedia-readership attention index for a word/entity: resolves the word to an article (disambiguated by real traffic), then returns a 0-100 index, WoW/MoM deltas, a trend and datestamped spikes from daily pageviews. One pageviews call (+ resolution). A curiosity/readership index — not Google Trends.

## Output

A JSON object containing the resolved Wikipedia article title, a normalized 0-100 attention index reflecting relative readership volume, week-over-week and month-over-month percentage deltas, an overall trend label (e.g. rising/falling/stable), and an array of datestamped spike events where daily pageviews exceeded normal baseline.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "keyword"
     ],
     "properties": {
      "window": {
       "type": "integer",
       "maximum": 365,
       "minimum": 14,
       "description": "Lookback in days (default 90)."
      },
      "article": {
       "type": "string",
       "description": "Explicit Wikipedia article title to skip word->article resolution."
      },
      "keyword": {
       "type": "string",
       "description": "Word/entity to measure: ticker, company, product, person or topic (e.g. Bitcoin, Nvidia, iPhone, Taylor Swift)."
      },
      "project": {
       "enum": [
        "en",
        "es",
        "fr",
        "de",
        "ru",
        "ja",
        "zh",
        "pt",
        "it",
        "ar",
        "ko",
        "hi"
       ],
       "type": "string",
       "description": "Wikipedia language (default en)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/attention-pageviews-050f9136/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
