DEV Community

Daemon Data
Daemon Data

Posted on

Is there an NSE API for quarterly results? Revenue, profit and EPS of Indian companies as JSON from XBRL in Python

Short answer: not an official one, but every figure is public and machine-readable in two steps. Listed companies file their quarterly, half-yearly and annual results with the National Stock Exchange of India (NSE), and NSE shows them on its Integrated Filing page. The page is a list of filings. Revenue, expenses, profit, EPS, the balance sheet and the cash-flow statement are not in the list: they are in an XBRL file attached to each filing. On 16 November 2026 one request returned Reliance Industries' 14 results filings since April 2025, and one more returned the September quarter as 298 facts: the income statement, the half-year cash flow and the balance sheet.

This post shows both steps with Python that ran on 16 November 2026, the names you need, and the things that go wrong.

Why the old code returns a quarter from 2024

Until early 2025 results sat behind an endpoint called corporates-financial-results. It still answers. On 16 November 2026 it returned 3,816 filings, every one of them for the quarter that ended 31 December 2024, and an empty list when given a date range. Code and tutorials written for it look as if they work and deliver a two-year-old quarter.

The reason is a change of form. For periods ending 31 March 2025 and later, SEBI has companies file results as part of an "Integrated Filing (Financials)", and NSE lists those under a different endpoint, integrated-filing-results. That one held 31,515 main-board filings and 6,030 NSE Emerge (SME) filings on 16 November 2026, the newest filed that afternoon.

Step 1: the list of filings

The list is paged and newest first. size worked up to 500 rows a page; from_date and to_date (DD-MM-YYYY) filter by the time the filing reached NSE; symbol gives one company; index is equities or sme.

import requests

API = "https://www.nseindia.com/api"
s = requests.Session()
s.headers.update({
    # python-requests' default User-Agent gets no answer; a browser string works
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
                  "(KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
    "Accept": "application/json, text/plain, */*",
})

r = s.get(f"{API}/integrated-filing-results",
          params={"index": "equities", "type": "Integrated Filing- Financials",
                  "symbol": "RELIANCE", "page": 1, "size": 50},
          timeout=60)
r.raise_for_status()
answer = r.json()
filings = answer["data"]

print(answer["totalCount"], "results filings for RELIANCE")
for f in filings[:4]:
    print(f["qe_Date"], "|", f["consolidated"], "|", f["audited"], "|", f["type_Sub"], "|",
          f["creation_Date"], "|", f["xbrl"].rsplit("/", 1)[-1])
Enter fullscreen mode Exit fullscreen mode
14 results filings for RELIANCE
30-SEP-2026 | Consolidated | Un-Audited | Original | 30-Oct-2026 21:32:55 | INTEGRATED_FILING_INDAS_1750537_30102026093254_WEB.xml
30-SEP-2026 | Standalone | Un-Audited | Original | 30-Oct-2026 21:32:06 | INTEGRATED_FILING_INDAS_1750535_30102026093155_WEB.xml
30-JUN-2026 | Consolidated | Un-Audited | Original | 17-Jul-2026 19:50:04 | INTEGRATED_FILING_INDAS_1695741_17072026075004_WEB.xml
30-JUN-2026 | Standalone | Un-Audited | Original | 17-Jul-2026 19:49:06 | INTEGRATED_FILING_INDAS_1695739_17072026074906_WEB.xml
Enter fullscreen mode Exit fullscreen mode

Seven quarters, two filings each: standalone and consolidated results are separate filings. Each item has these fields:

Field Meaning
seq_Id NSE's id of the filing; use it to deduplicate
symbol, cmName the company
qe_Date the period end, for example 30-SEP-2026
consolidated Consolidated or Standalone
audited Audited or Un-Audited
type_Sub, revised_Date, revision_Remark Original or Revision, and the company's reason for a revision
creation_Date, broadcast_Date when the filing reached NSE and when NSE published it, India time (broadcast_Date is sometimes empty)
xbrl the XBRL file with the figures
ixbrl the same filing as a readable HTML page

A request without type returns {"data": 0, "msg": "no data found"}: the parameter is required, with that exact spelling and the space after the hyphen.

How much is there? In the September-quarter results season, 1 October to 16 November 2026, NSE listed 4,617 main-board and 1,153 Emerge filings; the week of 9-16 November alone had 1,234 and 604, because results are due 45 days after the quarter ends.

Step 2: the figures inside each filing

The file is flat. Every figure is a fact with a contextRef, and three contexts carry the statements:

  • OneD: the reporting period, normally the quarter (income statement, EPS, and the filing's own details such as the symbol and the quarter's name)
  • FourD: the financial year to date (income statement again, and the cash-flow statement)
  • OneI: the last day of the period (balance sheet)

Other contexts hold segment results, related-party transactions and audit qualifications. Group the facts by those three references and you have the statements.

import xml.etree.ElementTree as ET

PERIOD, YEAR_TO_DATE, BALANCE_SHEET = "OneD", "FourD", "OneI"


def statements(xml_bytes):
    """Facts of the three statement contexts: {context: {element name: value}}."""
    out = {PERIOD: {}, YEAR_TO_DATE: {}, BALANCE_SHEET: {}}
    for el in ET.fromstring(xml_bytes).iter():
        ctx = el.attrib.get("contextRef")
        if ctx in out and el.text and el.text.strip():
            name = el.tag.split("}")[-1]
            out[ctx][name] = float(el.text) if "unitRef" in el.attrib else el.text.strip()
    return out


newest = filings[0]                      # the list is newest first
xml = s.get(newest["xbrl"], timeout=60).content
st = statements(xml)
q, ytd, bs = st[PERIOD], st[YEAR_TO_DATE], st[BALANCE_SHEET]

crore = 1e7
print(q["Symbol"], "|", q["ReportingQuarter"], "|", q["NatureOfReportStandaloneConsolidated"], "|",
      q["WhetherResultsAreAuditedOrUnaudited"], "| printed in", q["LevelOfRounding"])
print("revenue        Rs %10.0f crore" % (q["RevenueFromOperations"] / crore))
print("profit b. tax  Rs %10.0f crore" % (q["ProfitBeforeTax"] / crore))
print("net profit     Rs %10.0f crore" % (q["ProfitLossForPeriod"] / crore))
print("basic EPS      Rs %10.2f" % q["BasicEarningsLossPerShareFromContinuingAndDiscontinuedOperations"])
print("half-year net  Rs %10.0f crore" % (ytd["ProfitLossForPeriod"] / crore))
print("total assets   Rs %10.0f crore" % (bs["Assets"] / crore))
print(len(q), "facts for the quarter,", len(ytd), "for the year to date,", len(bs), "on the balance sheet")
Enter fullscreen mode Exit fullscreen mode
RELIANCE | Second quarter | Consolidated | Unaudited | printed in Crores
revenue        Rs     332861 crore
profit b. tax  Rs      38613 crore
net profit     Rs      29550 crore
basic EPS      Rs      18.88
half-year net  Rs      52746 crore
total assets   Rs    2275033 crore
85 facts for the quarter, 145 for the year to date, 68 on the balance sheet
Enter fullscreen mode Exit fullscreen mode

One request, one company's quarter with the whole income statement, the half-year cash flow and the balance sheet.

The gotchas

  1. Values are full rupees, whatever the company prints. The statement says "Rs in crore" or "in lakhs" (LevelOfRounding), but the fact is the full number: Reliance's revenue is 3328610000000, with a decimals attribute telling you the precision. Do not multiply by the rounding again.
  2. Standalone and consolidated are two filings. Add both and you double a company. Pick one with consolidated in the list or NatureOfReportStandaloneConsolidated in the file.
  3. The year to date is missing in the first quarter. In a first-quarter file the year-to-date context is the quarter itself or is left out. In the fourth quarter FourD is the full year.
  4. Balance sheet and cash flow come twice a year. They are filed with half-yearly and annual results; June and December quarters usually have neither.
  5. Banks, NBFCs and older-standard companies use different element names. A bank has InterestEarned, Deposits, Advances and ProfitLossForThePeriod, and no RevenueFromOperations; companies on the older accounting standards (most of NSE Emerge) have ShareholdersFunds where the others have Equity. The file name tells you the form: INTEGRATED_FILING_INDAS_, _NBFC_INDAS_, _BANKING_, _NONINDAS_. In 500 consecutive main-board filings of 12-13 November 2026 I counted 471, 28, 0 and 1.
  6. Net profit has two names. ProfitLossForPeriod in the Ind-AS forms, ProfitLossForThePeriod in the banking and older forms.
  7. Revisions arrive as new filings. type_Sub is Revision, with a remark such as "the figures in one of the columns were inadvertently mentioned as absolute amounts". Keep the latest per company, period and basis.
  8. A link can be dead. One of 101 files I asked for on 16 November answered 404. Skip it and move on.
  9. Go slowly. The file archive refuses a client that asks too fast, for some minutes and for every NSE address at once. Three files at a time and a few per second has been safe for us.
  10. Host names. On 16 November 2026 www.nseindia.com redirected to www.nseindia.in from where I tested, and the list returned file links on nsearchives.nseindia.in; the .com archive host answered too. Follow redirects and do not hard-code one host.

What NSE offers officially

NSE's licensed data is sold by NSE Data & Analytics; its Paid Corporate Data page lists the products and their yearly fees. NSE publishes Terms of Use for its website; read them before you build on the endpoints above. The XBRL taxonomy itself is SEBI's, and the element names above are its names.

If you would rather not maintain it

I maintain the two steps above as a hosted Actor on Apify, NSE Corporate Announcements API. With reports: ["financialResults"] it returns one row per filing, with the common figures under fixed names for every form (revenue, profitBeforeTax, netProfit, epsBasic, totalAssets, totalEquity, borrowings, cashFromOperations) and every other line of the statements beside them; with onlyNew a scheduled run delivers each filing once.

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("data_daemon/nse-corporate-announcements").call(run_input={
    "reports": ["financialResults"],
    "symbols": ["RELIANCE", "HDFCBANK", "EDELWEISS"],
    "fromDate": "2025-04-01",
    "maxItems": 0,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["periodEnd"], row["symbol"], row["basis"], row["companyType"],
          row["revenue"], row["netProfit"], row["epsBasic"], row.get("totalAssets"))
Enter fullscreen mode Exit fullscreen mode
2026-09-30 EDELWEISS Consolidated nbfc 21987000000 2073000000 2.19 422330500000
2026-09-30 EDELWEISS Standalone nbfc 1890800000 306400000 0.32 100395200000
2026-09-30 RELIANCE Consolidated general 3328610000000 295500000000 18.88 22750330000000
2026-09-30 RELIANCE Standalone general 1746680000000 153540000000 11.34 12202040000000
2026-09-30 HDFCBANK Consolidated bank 951316300000 207000300000 13.43 51658415800000
2026-09-30 HDFCBANK Standalone bank 834266000000 195099600000 12.66 45777597700000
Enter fullscreen mode Exit fullscreen mode

Those are the first six of 44 rows: every results filing of the three companies since April 2025. It costs $3 per 1,000 rows, so that run was $0.13, a week of results season for the whole main board (1,234 filings on 9-16 November 2026) about $3.70, and the 100 newest filings are on a ready-made example page.

The same series covers NSE insider trading and NSE announcements, corporate actions and bulk deals.

Data is NSE's public disclosure record, shown for information; it is not investment advice.

Top comments (0)