Skip to main content
Loading market data…
GET/api/v1/sentiment/fear-greedFree tier · 10 req/min

Crypto Fear & Greed Index — latest reading plus history.

The classic 0–100 sentiment gauge (0 = extreme fear, 100 = extreme greed). Useful as a contrarian overlay on price charts. Response includes the latest reading and an ordered history series so you don't need a second call to render the chart.

Query parameters

All query parameters are optional unless marked required.

NameTypeRequiredDefaultDescription
limitnumberoptional365
How many history points to return, newest-first internally but returned oldest→newest. Max 1000.

Response shape

Always wrapped in the standard envelope. Nullable fields are explicitly marked — treat missing numeric data as a real data-source gap, not as an error.

data payloadtypescript
// Wrapped in the standard envelope:
// {
//   data: /* shape below */,
//   meta?: { total?: number; limit?: number; offset?: number; ... }
// }

{
  latest: {
    ts: number;
    value: number;          // 0–100
    classification: string; // "Fear" | "Neutral" | "Greed" | ...
  } | null;
  history: Array<{ ts: number; value: number; classification: string }>;
}

Example

Copy the curl, replace YOUR_KEY with a real key from your dashboard, and run.

Requestbash
curl -sS "http://localhost:3000/api/v1/sentiment/fear-greed?limit=7"
Responsejson
{
  "data": {
    "latest": {
      "ts": 1744761600000,
      "value": 62,
      "classification": "Greed"
    },
    "history": [
      { "ts": 1744243200000, "value": 54, "classification": "Neutral" },
      { "ts": 1744329600000, "value": 58, "classification": "Greed" }
    ]
  },
  "meta": { "total": 2, "limit": 7 }
}

Notes

  • Available without an API key (anonymous tier). Great for public dashboards.
  • A fresh DB returns `{ latest: null, history: [] }` — that's a 200, not a 500.

Next

Check the error code reference, or get an API key to try the request against your own account.