# SwapHunt Fear & Greed Historical Time Series

> SwapHunt Fear & Greed Historical Time Series is a paid API for AI agents from x402.swaphunt.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns a daily Fear & Greed index time series (value + classification) for up to 365 days, filterable by date range, for sentiment backtesting and cycle analysis.

## Facts

- Endpoint: GET https://x402.swaphunt.dev/v1/market/fear-greed/history
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swaphunt-fear-greed-historical-time-series-8cb8fec9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7fzyw_F7VPHYw0X9pGcKb

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 swaphunt-fear-greed-historical-time-series-8cb8fec9
```

Example prompt: Pull the daily Fear & Greed index for the last 90 days so I can backtest how market sentiment correlated with price action — give me the full series with each day's value and classification.

## When to prefer this

Choose this endpoint when you need the raw day-by-day Fear & Greed time series for backtesting, charting sentiment cycles, or correlating sentiment with price data — as opposed to a single current reading or a summary statistic. Ideal for quantitative research requiring the full historical array rather than a snapshot.

## Known failure modes

- days parameter exceeds 365 — request rejected or capped
- invalid ISO date format for start_date or end_date — parsing error
- start_date after end_date — empty or error response
- payment of $0.005 USDC not provided — 402 Payment Required
- requested date range predates available data — partial or empty array returned

## How this service works

Historical Fear & Greed time series (up to 365 days), each day with value + classification. Use to backtest sentiment, chart mood cycles or correlate fear/greed with price. The raw series, not a summary.

## Output

An array of daily entries each containing a date, a numeric Fear & Greed value (0–100), and a classification label (e.g. Extreme Fear, Fear, Neutral, Greed, Extreme Greed), covering the requested date range up to 365 days back.

## 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",
     "properties": {
      "days": {
       "type": "integer",
       "default": 30,
       "description": "Days of history (max 365)"
      },
      "end_date": {
       "type": "string",
       "description": "ISO date YYYY-MM-DD"
      },
      "start_date": {
       "type": "string",
       "description": "ISO date YYYY-MM-DD"
      }
     }
    }
   },
   "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/swaphunt-fear-greed-historical-time-series-8cb8fec9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.swaphunt.dev](https://www.zero.xyz/host/x402.swaphunt.dev/llms.txt)
