Discover/NSE India API
live

NSE India APInseindia.com

Access live NSE equity quotes, option chains, indices, gainers/losers, 52-week highs, and corporate announcements via a structured JSON API.

Endpoint health
verified 2h ago
get_market_status
get_all_indices
get_quote_equity
search_symbols
get_option_chain
15/15 passing latest checkself-healing
Endpoints
15
Updated
22d ago

What is the NSE India API?

This API exposes 15 endpoints covering live data from India's National Stock Exchange, including equity quotes with full order books, real-time option chains, index-level market watch, and corporate announcements. The get_option_chain endpoint returns complete CE/PE strike data with open interest and volume totals, while get_quote_equity delivers priceInfo, tradeInfo, metaData, and orderBook for any NSE-listed symbol.

Try it

No input parameters required.

api.parse.bot/scraper/d621017b-ba03-43b8-816b-e5167cb6ec16/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/d621017b-ba03-43b8-816b-e5167cb6ec16/get_market_status' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace nseindia-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""NSE India API – bounded walkthrough of core market-data operations."""
from parse_apis.nse_india_api import (
    NSE, ActivityType, Segment, Index2, SymbolNotFound,
)

client = NSE()

# 1. List all NSE indices – capped to 5 items.
for idx in client.indexes.list(limit=5):
    print(idx.index_name, idx.last, idx.perc_change)

# 2. Get a detailed equity quote by symbol.
try:
    quote = client.equityquotes.get(symbol="RELIANCE")
    print(quote.company_name, quote.change, quote.p_change, quote.year_high)
except SymbolNotFound as exc:
    print(f"Symbol not found: {exc.symbol}")

# 3. Search for symbols matching a keyword.
result = client.searchresults.search(query="HDFC", limit=3).first()
if result:
    print(result.symbol, result.company_name, result.series)

# 4. Most active stocks by traded value.
for stock in client.stocks.most_active(type=ActivityType.VALUE, limit=3):
    print(stock.symbol, stock.last_price, stock.total_traded_value)

# 5. Corporate announcements in the equities segment.
ann = client.announcements.list(segment=Segment.EQUITIES, limit=3).first()
if ann:
    print(ann.symbol, ann.company_name, ann.description, ann.date)

# 6. Top gainers data.
gainers = client.gainerloserdatas.get(index=Index2.GAINERS)
print(gainers.legends)

print("exercised: indexes.list / equityquotes.get / searchresults.search / stocks.most_active / announcements.list / gainerloserdatas.get")
All endpoints · 15 totalmissing one? ·

Get current market status across segments (Capital Market, Currency, Commodity, Debt) including market cap and GIFT Nifty data. Returns one object per market segment with its open/closed state, last trade date, and index values where applicable.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "giftnifty": "object with GIFT Nifty futures data (LASTPRICE, DAYCHANGE, PERCHANGE, EXPIRYDATE)",
    "marketcap": "object with market capitalization data (timeStamp, marketCapinTRDollars, marketCapinLACCRRupees, marketCapinCRRupees)",
    "marketState": "array of market segment status objects with market name, marketStatus, tradeDate, index, last, variation, percentChange"
  },
  "sample": {
    "data": {
      "giftnifty": {
        "DAYCHANGE": -40,
        "LASTPRICE": 23140,
        "PERCHANGE": -0.17,
        "EXPIRYDATE": "30-Jun-2026"
      },
      "marketcap": {
        "timeStamp": "10-Jun-2026",
        "marketCapinTRDollars": 4.79,
        "marketCapinLACCRRupees": 455.55
      },
      "marketState": [
        {
          "last": 23214.95,
          "index": "NIFTY 50",
          "market": "Capital Market",
          "tradeDate": "10-Jun-2026 15:30",
          "variation": -27.15,
          "marketStatus": "Open",
          "percentChange": -0.12,
          "marketStatusMessage": "Normal Market has Closed"
        }
      ],
      "indicativenifty50": {
        "change": -27.17,
        "status": "CLOSE",
        "perChange": -0.12,
        "closingValue": 23214.95
      }
    },
    "status": "success"
  }
}

About the NSE India API

Market Status and Index Data

The get_market_status endpoint returns segment-level status for Capital Market, Currency, Commodity, and Debt markets, along with GIFT Nifty futures data and total market capitalization in both rupees and dollars. get_all_indices lists every NSE index with open, high, low, last price, previous close, percent change, and 52-week high/low. Index names and their category-grouped codes are available via get_index_names, which returns two arrays: nts in natural order and stn sorted alphabetically.

Equity Quotes and Option Chains

get_quote_equity accepts a symbol parameter (e.g., RELIANCE, TCS) and returns an equityResponse array with nested orderBook, priceInfo, tradeInfo, secInfo, and metaData objects. For derivatives, get_option_chain accepts an optional type (Indices or Equity), symbol, and expiry in DD-Mon-YYYY format. When expiry is omitted, the nearest available expiry is used automatically. The records object includes all CE/PE strike data, expiry dates, and strike prices; the filtered object provides aggregated open interest and volume totals for each side.

Market Screeners and Activity Data

get_equity_market_data accepts an index name such as NIFTY 50 or NIFTY BANK and returns live price and volume data for every constituent stock, plus an index-level metadata summary. get_gainers_losers accepts gainers or loosers as the index parameter and returns ranked results for NIFTY 50 and BANK NIFTY with timestamps. get_price_band_hitters categorizes upper and lower circuit stocks by market cap (AllSec, SecGtr20, SecLwr20) with counts per category. get_52_week_high_low returns new52WHL, prev52WHL, last traded price, and percent change for each qualifying stock.

Chart and Performance Data

get_symbol_chart_data returns intraday or monthly price series via the days parameter (1D or 1M). The symbol must include a series suffix, for example RELIANCEEQN. The grapthData field contains arrays of [timestamp_ms, price, market_phase] tuples. get_yearwise_data uses the same symbol format and returns percent changes across 1 week, 1 month, 3 month, 6 month, and 1/2/3/5 year horizons for both the symbol and its benchmark index.

Reliability & maintenanceVerified

The NSE India API is a managed, monitored endpoint for nseindia.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when nseindia.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official nseindia.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
2h ago
Latest check
15/15 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Building an options analytics dashboard using strike-level CE/PE open interest from get_option_chain
  • Monitoring real-time circuit breakers by polling get_price_band_hitters for upper and lower band hitters
  • Screening 52-week breakout candidates with new52WHL and prev52WHL values from get_52_week_high_low
  • Constructing a market-breadth tracker using gainers/losers counts across NIFTY 50 and BANK NIFTY
  • Displaying intraday price charts with market-phase annotations from grapthData in get_symbol_chart_data
  • Alerting on corporate announcements by segment (equities, debt, SME) via get_corporate_announcements
  • Comparing a stock's 1-year and 3-year performance against its index using get_yearwise_data
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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.

Frequently asked questions
Does NSE India have an official developer API?+
NSE does not publish a public developer API for real-time market data. Data partnerships and data feeds are available through NSE's official data products (nseindia.com/learn/content/data-products), but there is no self-serve REST API with open registration.
What does `get_option_chain` return and how do I select a specific expiry?+
The endpoint returns a records object with all CE and PE strikes for the requested symbol, including expiryDates, strikePrices, open interest, change in OI, implied volatility, and volume. Pass expiry in DD-Mon-YYYY format (e.g., 12-May-2026) to target a specific expiry. Omitting expiry defaults to the nearest available date. The filtered object summarises total CE and PE open interest and volume across the selected expiry.
Why does `get_symbol_chart_data` require a series suffix on the symbol?+
NSE identifies instruments by both ticker and series (EQ, BE, etc.). The endpoint expects the format <SYMBOL><SERIES>N, so RELIANCE equity becomes RELIANCEEQN. Passing just RELIANCE will not resolve. Index names are not supported by this endpoint; use get_all_indices for index-level data.
Does the API cover historical end-of-day OHLCV data or only intraday and monthly periods?+
get_symbol_chart_data currently supports 1D (intraday) and 1M (one month) via the days parameter. Longer historical time series (e.g., 1 year or multi-year daily OHLCV) are not currently covered. You can fork this API on Parse and revise it to add an endpoint targeting longer historical ranges.
Is Securities Lending and Borrowing data always populated?+
Not always. The get_securities_lending_borrowing endpoint's data array may be empty when no active SLB contracts exist for the selected series. The meta field identifies the series month-year (e.g., Apr-2027), and marketStatus indicates whether the SLB segment is open or closed. If you don't supply a series code, the endpoint auto-selects the first available series from its master list.
Page content last updated . Spec covers 15 endpoints from nseindia.com.
Related APIs in FinanceSee all →
hdfcsec.com API
Track real-time equity market movements by finding the most active NSE stocks, top gainers and losers, 52-week highs and lows, and detailed stock quotes. Search for specific stocks and get comprehensive market overviews to make informed investment decisions.
niftyindices.com API
niftyindices.com API
chartink.com API
Access real-time and historical stock market data from Indian exchanges (NSE/BSE) to analyze fundamentals, technical indicators, and OHLCV metrics, plus run custom stock screeners to find investment opportunities. Search for specific stocks and browse all listed symbols to build data-driven trading strategies and investment research.
bseindia.com API
Retrieve live BSE India market data including top gainers and losers, 52-week highs and lows, bulk deals, and block deals for the most recent trading day.
nasdaq.com API
Track real-time and historical stock prices, ETF and mutual fund quotes, cryptocurrency data, and comprehensive company financials including earnings, dividends, and SEC filings all from one source. Research market trends with institutional holdings, short interest data, retail trading activity, and market movers to make informed investment decisions.
nepalstock.com.np API
Access real-time stock prices, market indices, and trading data from Nepal's stock exchange (NEPSE). Retrieve live price updates, market summaries, top performers, and detailed information on listed securities.
nepsealpha.com API
Track Nepal's stock market in real-time with live prices, historical OHLCV data, and detailed sector summaries, while leveraging technical and fundamental analysis signals to make informed trading decisions. Monitor floorsheet transactions, assess investment risks, and search specific symbols all from a single comprehensive market data platform.
screener.in API
Search and analyze Indian stocks with real-time financial data, company details, IPO information, price history, and peer comparisons. Get instant access to stock screening results, market listings, and company announcements to make informed investment decisions.