Skip to content
FearGreedChartNIFTY

Tools

NIFTY 50 Fear & Greed API

Free JSON for the NIFTY 50 Fear & Greed Index: today’s score, every daily reading and a CSV download, for dashboards, tools and research.

Base URL

Caching and refresh

Today’s score (?action=nifty) is cached for 5 minutes; the history endpoints for 1 hour. The score is recalculated once each trading day after the NSE close. Fetching once every few minutes is plenty.

https://nifty.feargreedchart.com/api/

Endpoints

Open one to see its fields and try it live.

GET/?action=niftyToday’s score. Current Fear & Greed score, all four components (Market Momentum, Volatility, Currency, Foreign Flow), NIFTY 50 level, USD/INR, and recent history snapshots.
FieldTypeWhat it is
scoreint 0–100Composite Fear & Greed score.
labelstringOne of: Extreme Fear, Fear, Neutral, Greed, Extreme Greed.
updateddateNSE trading date the score reflects (YYYY-MM-DD).
nifty.levelfloatNIFTY 50 closing level.
nifty.change_pctfloatDay-over-day percent change.
nifty.recent_30darrayLast 30 NIFTY 50 closes for sparkline use.
usd_inrfloatLatest USD/INR rate from FRED DEXINUS.
componentsarrayEach component: name, weight, score, note.
historyobjectScore values from prev_close, week, month, year ago.
meta.methodologystringCurrent model description – reports whether 4-component is live or Foreign Flow is still accumulating.
meta.history_sizeintTotal number of dates in the history series.
meta.fii_daysintDays of NSE FII cash flow accumulated to date (component activates at 100).
meta.fii_liveboolTrue when the 4-component model is live; false while Foreign Flow accumulates.
errorsarrayData problems found in this run; empty when all is well.
GET/?action=nifty-historyHistory. Daily Fear & Greed score and NIFTY 50 close for every date in the series.
FieldTypeWhat it is
countintNumber of rows.
range.fromdateFirst date in the series.
range.todateMost recent date.
rows[].datedateTrading date.
rows[].scoreint|nullScore for that date (may be null on bootstrap days).
rows[].niftyfloat|nullNIFTY 50 close for that date.
GET/?action=nifty-history.csvCSV Download. The same history as a CSV file (alias: ?action=nifty-csv) for spreadsheets and notebooks.

Columns:

date,fear_greed_score,label,nifty_close

Quick start

// Get today's NIFTY score
fetch('https://nifty.feargreedchart.com/api/?action=nifty')
  .then(r => r.json())
  .then(d => console.log(d.score, d.label));

Data and terms

Where the data comes from. NIFTY 50 closes from Yahoo Finance (^NSEI). USD/INR from the Federal Reserve’s FRED series DEXINUS. Foreign investor (FII) cash flows from NSE.

Free to use. If you build something public with this data, a link back to nifty.feargreedchart.com is appreciated but not required. Data is provided as is, with no uptime guarantee. Not investment advice.

API docs for every FearGreedChart index