niftyindices.com APIniftyindices.com ↗
Access live values, historical OHLC, TRI data, constituents, and sector weights for all NSE equity indices via the niftyindices.com API.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/487cbdcd-3ed9-45be-b25e-3dc13d03fd80/get_live_indices' \ -H 'X-API-Key: $PARSE_API_KEY'
Retrieve live/real-time index values for all available equity indices including current price, change, percentage change, year high/low, and timestamp.
No input parameters required.
{
"type": "object",
"fields": {
"data": "array of index objects each containing indexName, open, high, low, last, previousClose, percChange, yearHigh, yearLow, timeVal"
},
"sample": {
"data": {
"data": [
{
"low": "23426.55",
"high": "23777.2",
"last": "23689.6",
"open": "23530.25",
"timeVal": "14-May-2026 15:30",
"yearLow": "22182.55",
"yearHigh": "26373.2",
"indexName": "NIFTY 50",
"percChange": "1.18",
"previousClose": "23412.6"
}
]
},
"status": "success"
}
}About the niftyindices.com API
The niftyindices.com API exposes 7 endpoints covering Indian equity index data from NSE's index portal, returning fields such as live prices, OHLC history, Total Return Index values, constituent stock weights, and sector distributions. The get_live_indices endpoint alone surfaces 10 fields per index including percChange, yearHigh, and yearLow for every tracked index in a single call.
Live and Reference Index Data
The get_live_indices endpoint returns real-time snapshots for all available equity indices. Each record includes indexName, open, high, low, last, previousClose, percChange, yearHigh, yearLow, and timeVal. If you first need to enumerate which indices exist — or resolve the exact string required by other endpoints — get_indices_list returns both Trading_Index_Name and Index_long_name for each index, letting you build an accurate lookup table before querying historical or constituent data.
Historical Price and Total Return Data
get_index_historical_data accepts an index_name (matched against get_indices_list output) along with start_date and end_date in DD-Mon-YYYY format (e.g. 01-Jan-2024). Each daily record in the response includes HistoricalDate, OPEN, HIGH, LOW, CLOSE, TURNOVER, and VOL. For dividend-adjusted performance, get_total_return_index_data uses identical date and index parameters but returns TRI values — the OHLC figures reflect cumulative dividend reinvestment, making it appropriate for benchmarking fund returns against the index.
Constituents and Sector Weights
get_index_constituents returns each member stock's name, weight, sector, and effective date for a given index. This is useful for replicating or auditing index composition at a point in time. get_sectoral_distribution gives the aggregated picture: a flat array of sector and weight pairs showing how exposure is distributed across industries within an index. Both endpoints accept index_name as an optional parameter.
Market Movers
get_index_movers requires no inputs and returns the day's top 10 gaining and top 10 losing indices as two arrays (gainers and losers), each entry carrying indexName and perc (percentage change). This endpoint is suited for dashboards that need a quick directional read across the entire index universe without iterating through all indices from get_live_indices.
- Building a live Indian equity index dashboard using
indexName,last, andpercChangefromget_live_indices. - Back-testing index-tracking strategies against daily OHLC and volume data from
get_index_historical_data. - Comparing price-return vs. total-return performance by pairing
get_index_historical_dataandget_total_return_index_datafor the same date range. - Constructing a synthetic index ETF portfolio by pulling constituent weights from
get_index_constituents. - Monitoring sector concentration risk using sector-weight arrays from
get_sectoral_distributionfor indices like NIFTY 50 or NIFTY BANK. - Powering a morning-briefing alert that surfaces the day's biggest index movers using
get_index_moversgainers and losers arrays. - Auditing index rebalancing events by tracking changes in
weightanddatefields fromget_index_constituentsover time.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does niftyindices.com have an official developer API?+
What date format does `get_index_historical_data` require, and how far back does the data go?+
start_date and end_date must be in DD-Mon-YYYY format — for example, 01-Jan-2024. The historical depth available depends on when a given index was launched; older indices like NIFTY 50 have significantly longer records than newer thematic or sectoral indices.Does the API return intraday (sub-daily) data for indices?+
get_index_historical_data and get_total_return_index_data return daily OHLC records only. Live snapshots are available through get_live_indices, but no intraday time-series is exposed. You can fork this API on Parse and revise it to add an intraday endpoint if that granularity is available from the source.Can I retrieve constituent data for any index, including thematic and sectoral indices?+
get_index_constituents accepts any index_name that appears in the get_indices_list response, which covers broad market, sectoral, thematic, and strategy indices. However, the response fields are limited to name, weight, sector, and date — fields like free-float market cap or ISIN are not currently returned. You can fork this API on Parse and revise it to surface additional constituent attributes if the source exposes them.Does `get_index_movers` cover all indices, or only a subset?+
get_index_movers returns the top 10 gainers and top 10 losers by percentage change for the current trading day. It does not cover the full universe of indices in a single response — only the extreme ends of the distribution. For a complete picture across all indices, get_live_indices returns percChange for every tracked index and can be sorted client-side.