Fear & Greed Index

GET/gateway/v1/market/fear-greed

Returns Bitcoin Fear & Greed Index history.

Included fields: index value (0-100), classification label, BTC price at each data point.

Sorted newest-first. Use `from`/`to` to filter by date range.

Query Parameters

fromstring

Start of time range. Accepts Unix seconds or date string (YYYY-MM-DD)

Example: 2026-01-01
tostring

End of time range. Accepts Unix seconds or date string (YYYY-MM-DD)

Example: 2026-03-01
Fear & Greed Index
const options = {method: 'GET'};

fetch('https://api.asksurf.ai/gateway/v1/market/fear-greed?from=2026-01-01&to=2026-03-01', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
OK
{
  "$schema": "https://example.com/schemas/SimpleListResponseMarketFearGreedHistoryItem.json",
  "data": [
    {
      "classification": "<string>",
      "price": 123,
      "timestamp": 123,
      "value": 123
    }
  ],
  "meta": {
    "cached": true,
    "credits_used": 123,
    "empty_reason": "<string>"
  }
}