Revenue by Segment & Geography API: segment, region and product figures from XBRL
Revenue, operating income and assets by business segment, country or region, and product line, each with the filing behind it.
curl -H "Authorization: Bearer $SECFEED_KEY" \ "https://secfeedapi.com/v1/segments?ticker=AAPL&type=product"
import os, requests
r = requests.get(
"https://secfeedapi.com/v1/segments",
params={'ticker': 'AAPL', 'type': 'product'},
headers={"Authorization": f"Bearer {os.environ['SECFEED_KEY']}"},
)
print(r.json())Overview
Companies tag their segment, geographic and product figures in the XBRL of every 10-K, 10-Q, 20-F and 40-F. This API reads those tags for one company and returns the breakdown for the periods in the filing: for example Apple's net sales by product, or a conglomerate's operating income by segment, with the accession number of the filing that reported each figure.
It returns only what the company tagged. A company that gives a table in text but does not tag it has no rows, and custom members keep the company's own names. Filings since 2019 are loaded, newest first, and coverage grows as the load finishes. Source: U.S. Securities and Exchange Commission.
What you get
Built for developers who would rather not parse EDGAR.
Business segment, geography and product or service, for revenue, operating income and assets.
Accession number, form and filed date of the filing.
Latest filings first, up to eight per call.
Members keep the company's XBRL names, no remapping.
Endpoints
Authenticate with Authorization: Bearer YOUR_KEY. Responses are JSON.
Revenue, operating income or assets by business segment, geography or product, read from the company's XBRL in each 10-K, 10-Q, 20-F or 40-F, with the source accession. Only breakdowns the company tagged are returned.
Parameters: ticker | cik, type (business, geography, product), metric (revenue, operatingIncome, assets), period (annual, quarterly), limit (max 8)
Response fields
The main fields in every result. The raw filing data is always one level down.
| Field | Meaning |
|---|---|
filings[].items[].name | Readable member name. |
filings[].items[].member | The XBRL member as the company tagged it. |
filings[].items[].value | Value in the unit the company reported. |
filings[].accessionNo | The filing that reported it. |
Use cases
- Revenue mix and geographic exposure of a company
- Segment margin comparisons over several years
- Feeding segment data to analysis agents with a source for every figure
FAQ
Does it cover every company?
Only companies that tag the breakdown in XBRL, from filings since 2019.
Can I compare segments across companies?
Members are the company's own names, so compare within one company.
Where does the data come from?
XBRL in 10-K, 10-Q, 20-F and 40-F filings on SEC EDGAR.
Try the Revenue by Segment & Geography API free
Free key, no card, no sales call.