# attention-pageviews

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

Returns a 0-100 Wikipedia readership attention index for a keyword or entity, including week-over-week and month-over-month deltas, trend direction, and datestamped traffic spikes.

## Facts

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

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-9e375456
```

Example prompt: What's the Wikipedia attention index for Nvidia right now — 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 normalized, indexed measure of public curiosity or readership interest for a named entity, person, company, product, or topic — specifically sourced from Wikipedia traffic rather than search volume. Prefer it over Google Trends-style endpoints when you want a curiosity/readership signal (not search intent), need datestamped spike detection, or want WoW/MoM deltas on a 0-100 normalized scale. Ideal for PR monitoring, investment research interest signals, trend detection, and entity-level attention scoring across multiple languages.

## Known failure modes

- Keyword cannot be resolved to any Wikipedia article — returns resolution failure or null article
- Ambiguous keyword resolves to wrong article despite traffic-based disambiguation
- Requested article title not found in the specified language project
- Lookback window outside allowed range (14–365 days) returns validation error
- Wikipedia Pageviews API rate limit or availability issue causes upstream timeout

## 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

Returns a structured JSON payload containing: a 0-100 attention index for the resolved Wikipedia article, week-over-week (WoW) and month-over-month (MoM) deltas, a trend label (e.g. rising/falling/stable), and a list of datestamped pageview spikes. Also includes the resolved Wikipedia article title used for the computation.

## 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-9e375456/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
