Home / APIs / Screening
Fundamentals

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.

Three breakdowns

Business segment, geography and product or service, for revenue, operating income and assets.

Source on every figure

Accession number, form and filed date of the filing.

Annual or quarterly

Latest filings first, up to eight per call.

As tagged

Members keep the company's XBRL names, no remapping.

Endpoints

Authenticate with Authorization: Bearer YOUR_KEY. Responses are JSON.

GET/v1/segmentsReference →

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.

FieldMeaning
filings[].items[].nameReadable member name.
filings[].items[].memberThe XBRL member as the company tagged it.
filings[].items[].valueValue in the unit the company reported.
filings[].accessionNoThe filing that reported it.

Use cases

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.

Get free API key →