{"uid":"cap_V4Xaq_D7TnaXLq6EjG2Ki","slug":"x402stock-fear-greed-index-historical-series-142ae755","name":"x402stock Fear & Greed Index Historical Series","description":"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).","url":"https://x402stock.xyz/api/v1/fear-greed/history","method":"GET","headers":{},"bodySchema":{"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}}}}},"responseSchema":{"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}]}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"days":90}}},"response":{"as_of":"2026-06-12T04:16:42.077Z","count":90,"index":"us_stock","source":"x402stock","history":[{"date":"2026-02-04","score":47},{"date":"2026-02-05","score":35},{"date":"2026-02-06","score":43},{"date":"2026-02-09","score":52},{"date":"2026-02-10","score":51},{"date":"2026-02-11","score":52},{"date":"2026-02-12","score":40},{"date":"2026-02-13","score":40},{"date":"2026-02-17","score":41},{"date":"2026-02-18","score":44},{"date":"2026-02-19","score":42},{"date":"2026-02-20","score":47},{"date":"2026-02-23","score":41},{"date":"2026-02-24","score":45},{"date":"2026-02-25","score":51},{"date":"2026-02-26","score":49},{"date":"2026-02-27","score":44},{"date":"2026-03-02","score":41},{"date":"2026-03-03","score":35},{"date":"2026-03-04","score":43},{"date":"2026-03-05","score":38},{"date":"2026-03-06","score":27},{"date":"2026-03-09","score":33},{"date":"2026-03-10","score":37},{"date":"2026-03-11","score":40},{"date":"2026-03-12","score":33},{"date":"2026-03-13","score":35},{"date":"2026-03-16","score":45},{"date":"2026-03-17","score":47},{"date":"2026-03-18","score":40},{"date":"2026-03-19","score":41},{"date":"2026-03-20","score":36},{"date":"2026-03-23","score":38},{"date":"2026-03-24","score":36},{"date":"2026-03-25","score":41},{"date":"2026-03-26","score":36},{"date":"2026-03-27","score":27},{"date":"2026-03-30","score":28},{"date":"2026-03-31","score":42},{"date":"2026-04-01","score":45},{"date":"2026-04-02","score":47},{"date":"2026-04-06","score":47},{"date":"2026-04-07","score":52},{"date":"2026-04-08","score":49},{"date":"2026-04-09","score":57},{"date":"2026-04-10","score":60},{"date":"2026-04-13","score":60},{"date":"2026-04-14","score":61},{"date":"2026-04-15","score":65},{"date":"2026-04-16","score":68},{"date":"2026-04-17","score":71},{"date":"2026-04-20","score":63},{"date":"2026-04-21","score":65},{"date":"2026-04-22","score":62},{"date":"2026-04-23","score":65},{"date":"2026-04-24","score":67},{"date":"2026-04-27","score":67},{"date":"2026-04-28","score":70},{"date":"2026-04-29","score":66},{"date":"2026-04-30","score":63},{"date":"2026-05-01","score":70},{"date":"2026-05-04","score":61},{"date":"2026-05-05","score":64},{"date":"2026-05-06","score":67},{"date":"2026-05-07","score":66},{"date":"2026-05-08","score":67},{"date":"2026-05-11","score":59},{"date":"2026-05-12","score":63},{"date":"2026-05-13","score":64},{"date":"2026-05-14","score":65},{"date":"2026-05-15","score":63},{"date":"2026-05-18","score":61},{"date":"2026-05-19","score":65},{"date":"2026-05-20","score":63},{"date":"2026-05-21","score":66},{"date":"2026-05-22","score":66},{"date":"2026-05-26","score":67},{"date":"2026-05-27","score":65},{"date":"2026-05-28","score":67},{"date":"2026-05-29","score":69},{"date":"2026-06-01","score":62},{"date":"2026-06-02","score":67},{"date":"2026-06-03","score":69},{"date":"2026-06-04","score":67},{"date":"2026-06-05","score":41},{"date":"2026-06-08","score":51},{"date":"2026-06-09","score":39},{"date":"2026-06-10","score":48},{"date":"2026-06-11","score":39},{"date":"2026-06-12","score":50}]}},"exampleRequest":{"days":90},"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tBaBIvoCHTXujaaIb1Z21","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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","exampleAgentPrompt":"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.","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:48:32.683Z","isFirstParty":false}