# x402stock Fear & Greed Index Historical Series

> x402stock Fear & Greed Index Historical Series is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns the full daily history of the US stock market Fear & Greed index (0–100 scores) from 2016 to today, with optional recent-N-days filtering

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/fear-greed/history
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-fear-greed-index-historical-series-142ae755
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V4Xaq_D7TnaXLq6EjG2Ki

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 x402stock-fear-greed-index-historical-series-142ae755
```

Example prompt: Pull me the last 180 days of the US stock market Fear & Greed index history from x402stock so I can chart sentiment regimes alongside price.

## When to prefer this

Choose this endpoint when you need the full historical time series of the Fear & Greed index for backtesting, charting, or regime analysis — as opposed to /api/v1/fear-greed which returns only the current reading. Use the ?days=N parameter when you only need a recent slice to reduce payload size.

## Known failure modes

- days=0 or negative integer rejected (exclusiveMinimum:0 enforced)
- days > 10000 rejected (maximum:10000 enforced)
- payment failure if USDC balance insufficient or x402 protocol not supported
- upstream data gaps may yield null scores for certain dates
- 503/timeout if data provider temporarily unavailable

## How this service works

The full daily history of the US stock Fear & Greed index from 2016 to today, each point a date and 0–100 score. Pass `?days=N` to return only the most recent N days (default: full series). Use for charting sentiment regimes and backtesting against price. Companion to /api/v1/fear-greed (current reading). From x402stock, a market & economic data API (x402, USDC).

## Output

A JSON object with source ('x402stock'), index ('us_stock'), as_of date, count of data points, and a history array of {date, score} objects — one per day from 2016 to today (or last N days if filtered), where score is 0–100 or null.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "days": 90
  }
 }
}
```

## 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",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "days": {
       "type": "integer",
       "maximum": 10000,
       "exclusiveMinimum": 0
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "source",
      "as_of",
      "index",
      "count",
      "history"
     ],
     "properties": {
      "as_of": {
       "type": "string"
      },
      "count": {
       "type": "number"
      },
      "index": {
       "type": "string",
       "const": "us_stock"
      },
      "source": {
       "type": "string",
       "const": "x402stock"
      },
      "history": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "date",
         "score"
        ],
        "properties": {
         "date": {
          "type": "string"
         },
         "score": {
          "anyOf": [
           {
            "type": "number"
           },
           {
            "type": "null"
           }
          ]
         }
        },
        "additionalProperties": false
       }
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "as_of": "2026-06-05T00:00:00.000Z",
  "count": 2,
  "index": "us_stock",
  "source": "x402stock",
  "history": [
   {
    "date": "2016-01-04",
    "score": 42
   },
   {
    "date": "2026-06-04",
    "score": 64
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-fear-greed-index-historical-series-142ae755/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.xyz](https://www.zero.xyz/host/x402stock.xyz/llms.txt)
