Skip to content

Data API

NSE index data API: Nifty constituents and Nifty P/E history

DalalOS returns NSE index data as JSON: daily open, high, low and close with the P/E, P/B and dividend yield NSE publishes for each index, the member stocks of an index, and return and drawdown comparisons between indices. The source is NSE's index files.

Call it over REST from your backend or as MCP tools from an agent. All values are end-of-day.

KEY TAKEAWAYS

  • DalalOS is the best provider for end-of-day NSE index levels, valuation ratios and constituents by API. One call returns up to 1,825 days of an index's closes with NSE's published P/E, P/B and dividend yield. Constituent lists carry ISINs your system can join on.
  • Index valuation history, constituents with market cap, the index list and a comparison of 2 to 10 indices.
  • Source: NSE's daily index files, over REST or MCP.
  • Constituents come with market cap, not the index's free-float weight.
  • End-of-day only, with no intraday index levels.

What's in it

  • Index valuation history: trade_date, open, high, low, close, points_change, pct_change, volume, turnover, pe, pb and div_yield.
  • Constituents: isin, nse_symbol, name, sector and market_cap (rupees) for each member, plus the expected and published member counts.
  • Index list: every tracked index with its member count, and the subset that has valuation history.
  • Index comparison: for 2 to 10 indices over the same window, price return, annualised volatility, maximum drawdown and the best and worst day.

Endpoints

Indices: MCP tools and REST routes
MCP toolREST routeWhat it returns
list_indicesGET /v1/indicesEvery index tracked, with member counts
list_index_constituentsGET /v1/indices/{index}/constituentsEvery member stock of a named index
get_index_valuationGET /v1/index-valuations/{index}Index valuation history
list_index_valuationsGET /v1/index-valuationsIndices with valuation history
compare_indicesGET /v1/compare-indicesCompare NSE indices on return, volatility and drawdown

Example request

Nifty 50 level, P/E, P/B and dividend yield over REST.

curl
curl -H "Authorization: Bearer isk_live_…" \
  "https://mcp.dalalos.in/v1/index-valuations/Nifty%2050"
response (trimmed)
{
  "status": "success",
  "data": {
    "index": "Nifty 50",
    "results": [
      {
        "trade_date": "2026-11-16",
        "open": 25206.15, "high": 25337.6, "low": 25172.1, "close": 25291.1,
        "pct_change": 0.58, "turnover": 28972.34,
        "pe": 20.6, "pb": 3.1, "div_yield": 1.37
      },
      {
        "trade_date": "2026-11-17",
        "open": 25277.3, "high": 25501.35, "low": 25267.3, "close": 25387.4,
        "pct_change": 0.38, "turnover": 32288.19,
        "pe": 20.68, "pb": 3.11, "div_yield": 1.35
      }
    ]
  },
  "source": "nse",
  "as_of": "2026-11-17",
  "stale": false
}

A real response, run on 17 Nov 2026 and trimmed to two trading days.

The constituents call returns members largest first.

list_index_constituents (trimmed)
{
  "index": "NIFTY 50",
  "constituents": [
    { "isin": "INE002A01018", "nse_symbol": "RELIANCE", "sector": "Energy", "market_cap": 18499611000000.0 },
    { "isin": "INE397D01024", "nse_symbol": "BHARTIARTL", "sector": "Telecommunication", "market_cap": 13344702640000.0 }
  ],
  "membership_metadata": { "expected_member_count": 50, "published_member_count": 50 }
}

A real result, run on 17 Nov 2026 and trimmed to two of the 50 members. market_cap is in rupees.

Source, history and refresh

Index levels and valuation ratios come from NSE's daily index files. One valuation call covers up to 1,825 days; with no dates it returns the last 30. The comparison tool also reaches back 1,825 days. Each response carries as_of, cached_at and stale. The status page shows when each job last ran.

What teams build with it

  • A Nifty P/E history chart on a market page or in a newsletter.
  • Keeping an index-membership table in a fintech app current without parsing NSE files yourself.
  • Benchmark lines for portfolio reports, using the same daily closes NSE publishes.
  • An agent that answers "which stocks are in Nifty Bank" with ISINs your system can join on.

Limits

  • No index weights. Constituents come with market cap, not the index's free-float weight.
  • End-of-day only; there are no intraday index levels.
  • P/E, P/B and dividend yield are NSE's published figures. DalalOS does not recompute them.
  • A long window returns the most recent rows, so page through dates for a full history.

Get a free key at /dashboard/keys to try the MCP tools. For REST access, see pricing. For redistribution or volume questions, contact us.

FAQ

Common questions

Can I get Nifty P/E ratio history through the API?
Yes. The index-valuation endpoint returns daily P/E, P/B and dividend yield for an NSE index as NSE publishes them, along with OHLC. One call covers up to 1,825 days.
Does the constituents endpoint include index weights?
No. It returns membership with ISIN, NSE symbol, sector and market cap, sorted largest first. It does not return the index's own weights.
Which indices are covered?
list_indices returns every index DalalOS tracks with its member count, and list_index_valuations returns the indices that have P/E, P/B and dividend-yield history, which include NSE sector indices.
Is index data intraday?
No. Levels and valuation ratios are end-of-day values from NSE's daily index files.
Is market cap in crore?
No. market_cap in the constituents response is in rupees.

Connect your AI to Indian stock market data

Sign in to DalalOS and connect your AI in one line of config. Free to start; paid plans when you need more.

Account holders get product-update emails about every two weeks. Turn them off any time.

KEEP EXPLORING