# Attention Index

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

Returns a 0-100 composite attention score for any word or entity by fusing Wikipedia pageviews with GDELT global news coverage volume, including WoW/MoM deltas and spike timestamps.

## Facts

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

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-5c711ead
```

Example prompt: What's the attention index for 'OpenAI' right now — give me the 0-100 score, and show me whether it's up or down compared to last week and last month, looking back over the past 90 days?

## When to prefer this

Choose this endpoint when you need a real-time, fused attention metric that combines encyclopedic readership (Wikipedia pageviews) with global news volume (GDELT) into a single normalized score — distinct from Google Trends or search interest signals. It is ideal for tracking public curiosity spikes around entities like companies, people, products, or topics, especially when you need WoW/MoM deltas and timestamped spike detection in one call rather than assembling raw signals yourself.

## Known failure modes

- Keyword cannot be resolved to a Wikipedia article — returns error or zero score for obscure/misspelled terms
- Ambiguous keyword maps to wrong article — use explicit 'article' parameter to override resolution
- Lookback window outside 14-365 day range returns validation error
- Unsupported language project code returns schema validation error
- Very new entities with minimal Wikipedia/GDELT history may return low-confidence or zero scores
- Rate limiting or payment failure (x402) if USDC balance is insufficient

## 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 normalized 0-100 attention index for the queried keyword, derived from fused Wikipedia pageview data and GDELT news coverage. Also includes week-over-week (WoW) and month-over-month (MoM) percentage deltas, a list of datestamped spike events, and an overall trend direction — all in a single API 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-5c711ead/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)
