# Attention Index

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

Returns a 0-100 attention/curiosity score for any word or entity by fusing Wikipedia pageviews with GDELT global news coverage, including week-over-week and month-over-month deltas, trend direction, and datestamped spikes.

## Facts

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

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-index-0e755008
```

Example prompt: What's the attention index for 'Ozempic' right now — give me the 0-100 score, the week-over-week and month-over-month deltas, and any recent spikes, looking back over the last 90 days?

## When to prefer this

Choose this endpoint when you need a unified, normalized attention/curiosity signal that blends encyclopedia readership intent (Wikipedia pageviews) with global news volume (GDELT) — distinct from Google Trends (search intent) or social media sentiment. Ideal for monitoring public interest momentum on companies, people, products, or topics over time, especially when you want datestamped spike detection and WoW/MoM trend deltas in a single call.

## Known failure modes

- Keyword cannot be resolved to a Wikipedia article (disambiguation fails or no article exists) — returns error or null resolution
- GDELT data unavailable for very niche or low-coverage topics — index may be Wikipedia-only
- Lookback window outside 14–365 day range returns validation error
- Unsupported language project returns schema error
- Rate limiting or payment failure at $0.04 USDC per call via x402

## How this service works

Attention index for any word/entity fusing Wikipedia readership (Wikimedia pageviews, resolved word->article and disambiguated by real traffic) with the global news stream (GDELT coverage volume). Returns a 0-100 index, WoW/MoM deltas, datestamped spikes and a trend in one call. An attention/curiosity index over Wikipedia and world news — not Google Trends / Google search interest.

## Output

A JSON object containing a 0-100 composite attention index for the queried keyword, resolved to its canonical Wikipedia article, along with week-over-week (WoW) and month-over-month (MoM) percentage deltas, a trend label (rising/falling/stable), and a list of datestamped spike events — all in a single response.

## 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-index-0e755008/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)
