# GDELT Tone Sentiment Analyzer

> GDELT Tone Sentiment Analyzer is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-14).

Returns native multilingual tone/sentiment analysis for a topic using GDELT's cross-language scoring, including a tone histogram with example articles, coverage-weighted average tone, modal emotional bin, and optional trend over time.

## Facts

- Endpoint: GET https://payai.agentstools.dev/gdelt/tone
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gdelt-tone-sentiment-analyzer-c3ff2d23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hIR1oNdmKkH497jZRW8y_

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 gdelt-tone-sentiment-analyzer-c3ff2d23
```

Example prompt: What's the current media tone around inflation in the United States over the last week — show me the emotional breakdown across coverage and whether sentiment is trending up or down?

## When to prefer this

Prefer this endpoint when you need genuine cross-language, multilingual tone analysis using GDELT's native scoring — especially for geopolitical topics, conflict, or non-English media where English-only lexicon tools would miss coverage. Ideal for monitoring global media sentiment on curated themes like war, elections, or sanctions, or when you need a tone histogram with article examples rather than just a single score.

## Known failure modes

- No articles found for the query/theme/country combination — returns empty histogram
- Invalid country name not mapped to a GDELT FIPS code — returns error
- Invalid timespan value — returns validation error
- GDELT upstream data delay causing stale or partial results
- Rate limiting or payment failure via x402 micropayment protocol

## How this service works

Native multilingual tone/sentiment for a topic from the GDELT Project: a tone histogram (emotional bins with example articles), a coverage-weighted average tone and label, the modal bin, and an optional tone trend over time. GDELT's own cross-language tone (a differentiator over English-only lexicon scoring).

## Output

Returns a tone histogram with emotional bins and example articles for each bin, a coverage-weighted average tone score with a qualitative label (e.g. negative, neutral, positive), the modal emotional bin, and optionally a tone trend time series showing how sentiment has shifted over the specified window.

## 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": [],
     "properties": {
      "lang": {
       "type": "string",
       "description": "Source-language filter by name (english, russian, arabic, ...)."
      },
      "query": {
       "type": "string",
       "description": "Free-text topic (multi-word phrases are auto-quoted). Optional if a theme/country is given."
      },
      "theme": {
       "enum": [
        "protests",
        "terrorism",
        "conflict",
        "war",
        "inflation",
        "sanctions",
        "trade",
        "elections",
        "corruption",
        "cyber",
        "immigration",
        "refugees",
        "climate",
        "disaster",
        "epidemic",
        "energy",
        "economy",
        "diplomacy",
        "coup",
        "unrest"
       ],
       "type": "string",
       "description": "Curated GDELT GKG theme filter (friendly name mapped to a GKG code)."
      },
      "trend": {
       "type": "boolean",
       "description": "Also include a tone trend over the window (1 extra call)."
      },
      "country": {
       "type": "string",
       "description": "Source-country filter by friendly name (United States, Russia, China, ...); mapped to the GDELT FIPS 10-4 code server-side."
      },
      "timespan": {
       "type": "string",
       "description": "Lookback window: 15min, 24h, 3d, 1w, 1m (default 24h)."
      }
     }
    }
   },
   "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/gdelt-tone-sentiment-analyzer-c3ff2d23/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)
