# Octodamus X Sentiment Divergence

> Octodamus X Sentiment Divergence is a paid API for AI agents from api.octodamus.com, paid per call via x402, $0.35/call, status unknown (last checked 2026-09-15).

Returns a crowd sentiment divergence score for a given asset (e.g. BTC) based on real-time X (Twitter) sentiment analysis, indicating whether crowd sentiment contradicts price action.

## Facts

- Endpoint: GET https://api.octodamus.com/v2/x_sentiment/divergence
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/octodamus-x-sentiment-divergence-dbd31ea1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XXxGsahe9VlrVD6imZSjl

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 octodamus-x-sentiment-divergence-dbd31ea1
```

Example prompt: What's the current X sentiment crowd divergence score for BTC — is social media sentiment going against the price action right now?

## When to prefer this

Use this endpoint when you need to detect whether crowd sentiment on X (Twitter) is diverging from an asset's price movement — a classic contrarian signal. Ideal for crypto (BTC) and potentially other supported assets. Prefer this over generic sentiment APIs when you specifically want a divergence/contradiction signal with cryptographic signing for auditability.

## Known failure modes

- Invalid or unsupported asset symbol returns an error or empty result
- Rate limit exceeded (500 req/day free tier) returns 429
- Payment not provided or insufficient USDC ($0.35) returns 402
- Network or upstream Grok data unavailability may cause delayed or null response

## How this service works

Octodamus X Sentiment Divergence -- pay-per-call x402 endpoint on Base. Preview: https://api.octodamus.com/v2/x_sentiment/divergence/preview

## Output

Returns a divergence score (0-100), crowd direction (BULLISH/BEARISH), divergence type (e.g. NO_SIGNAL, BULLISH_DIVERGENCE, BEARISH_DIVERGENCE), crowd sentiment percentage, whether price contradicts crowd, 24h price change, a human-readable interpretation string, and a cryptographically signed timestamp with signer pubkey for verification.

## Example request

```json
{
 "asset": "BTC"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "method"
   ],
   "properties": {
    "method": {
     "type": "string",
     "const": "GET"
    },
    "headers": {
     "type": "object",
     "required": [
      "PAYMENT-SIGNATURE"
     ],
     "properties": {
      "PAYMENT-SIGNATURE": {
       "type": "string",
       "description": "x402 EIP-3009 USDC payment signature (Base mainnet)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "action": {
     "enum": [
      "BUY",
      "SELL",
      "HOLD"
     ],
     "type": "string"
    },
    "signal": {
     "enum": [
      "BULLISH",
      "BEARISH",
      "NEUTRAL"
     ],
     "type": "string"
    },
    "btc_trend": {
     "enum": [
      "UP",
      "DOWN",
      "SIDEWAYS"
     ],
     "type": "string"
    },
    "reasoning": {
     "type": "string"
    },
    "confidence": {
     "type": "number",
     "maximum": 1,
     "minimum": 0
    },
    "fear_greed": {
     "type": "number",
     "maximum": 100,
     "minimum": 0
    },
    "polymarket_edge": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/octodamus-x-sentiment-divergence-dbd31ea1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.octodamus.com](https://www.zero.xyz/host/api.octodamus.com/llms.txt)
