data.sec.gov return a company’s filing history and the XBRL facts that apply to the whole company, so you get Microsoft’s total revenue and not the revenue of its Intelligent Cloud segment. Revenue by segment, product or region is a dimensional fact: a revenue concept on an axis, with a member. In SEC data you find it in each filing’s own XBRL and in the SEC’s Financial Statement and Notes data sets, as raw facts that you sum and check yourself. With numi, one request returns each breakdown already checked against the revenue the filing reports:
What each EDGAR API returns
The SEC describes these APIs on its page EDGAR Application Programming Interfaces. They need no API key.########## is the company’s CIK in 10 digits, with leading zeros.
Why segment revenue is not in them
The SEC’s page says that the three XBRL APIs aggregate facts that “Use a non-custom taxonomy (e.g. us-gaap, ifrs-full, dei, or srt)” and “Apply to the entire filing entity”. A segment’s revenue applies to one part of the company: the filing tags it with an axis, such asus-gaap:StatementBusinessSegmentsAxis, and a member, such as msft:IntelligentCloudMember. So companyfacts has Microsoft’s consolidated revenue for each period, and none of its segments, product lines or regions.
Where segment revenue is in SEC data
- The filing’s own XBRL: each filing with XBRL in the EDGAR archive has its facts with their dimensions. You read it one filing at a time.
- The Financial Statement and Notes data sets: the SEC publishes them as monthly ZIP files on its page Financial Statement and Notes Data Sets. In their
dimtable, thesegmentsfield has the tag names of the axis and members of each fact, so segment revenue is there as raw facts.
The SEC’s limits on automated access
The SEC asks each user to send no more than 10 requests a second, and to declare a User-Agent header with a company name and a contact email, on its page Accessing EDGAR Data. Its page on the APIs adds thatdata.sec.gov does not support CORS, so code in a browser cannot call the APIs.
The same breakdown from numi
Microsoft’s 10-K for the fiscal year ended June 30, 2026 reports revenue of $331.8 billion on three axes: three business segments, ten product lines and two regions. Each axis adds up to 100 percent of that revenue. The request at the top of this page returns each axis as its own list, with its rows, the filing’s revenue total, the ratio of the rows to it and thereconciliation status, so your code reads one field to know whether a breakdown adds up. The filing in the response has the accession number and a link to the filing on EDGAR, where numi has matched it, so you can check each row at the source.
Microsoft is one of the 10 sandbox companies, so the call at the top of this page works as written with a free key from numi.sh/account, with no card. See segments for every field, and plans for Builder, which has every company.