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.
- Free
- No API key
- CORS enabled
- Updated daily
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.
| Field | Type | What it is |
|---|---|---|
score | int 0–100 | Composite Fear & Greed score. |
label | string | One of: Extreme Fear, Fear, Neutral, Greed, Extreme Greed. |
updated | date | NSE trading date the score reflects (YYYY-MM-DD). |
nifty.level | float | NIFTY 50 closing level. |
nifty.change_pct | float | Day-over-day percent change. |
nifty.recent_30d | array | Last 30 NIFTY 50 closes for sparkline use. |
usd_inr | float | Latest USD/INR rate from FRED DEXINUS. |
components | array | Each component: name, weight, score, note. |
history | object | Score values from prev_close, week, month, year ago. |
meta.methodology | string | Current model description – reports whether 4-component is live or Foreign Flow is still accumulating. |
meta.history_size | int | Total number of dates in the history series. |
meta.fii_days | int | Days of NSE FII cash flow accumulated to date (component activates at 100). |
meta.fii_live | bool | True when the 4-component model is live; false while Foreign Flow accumulates. |
errors | array | Data 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.
| Field | Type | What it is |
|---|---|---|
count | int | Number of rows. |
range.from | date | First date in the series. |
range.to | date | Most recent date. |
rows[].date | date | Trading date. |
rows[].score | int|null | Score for that date (may be null on bootstrap days). |
rows[].nifty | float|null | NIFTY 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.
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));import requests
d = requests.get("https://nifty.feargreedchart.com/api/?action=nifty").json()
print(d["score"], d["label"])
# Every daily score as a table
import pandas as pd
df = pd.read_csv("https://nifty.feargreedchart.com/api/?action=nifty-history.csv")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.