Returns revenue split by geography and product in a single response, period by period. Sourced from XBRL dimensional facts disclosed in 10-K / 10-Q / 20-F filings.
The geography field is partitioned into four buckets:
countries — ISO 3166-1 alpha-2 leaves (e.g. country:US, country:CN) with country name and continent.usStates — US state postal codes (XBRL stpr:XX convention) with full state name. Present when a filer disclosed the metric by US state — common for state-tax disclosures, real-estate property counts, and similar US-internal breakdowns.regions — regional rollups the filer tagged directly (e.g. srt:AmericasMember, us-gaap:EMEAMember). For each region we also compute explainedByCountries (sum of country leaves whose continent matches the region — only attributed for true top-level continent rollups like Americas/Europe/Asia/Africa/Oceania) and other (the region total minus that sum), letting you surface a residual "other countries in region" bucket without losing data.residuals — filer-extension catch-alls like jhx:OtherCountriesMember that don't map to a continent.The product field is a flat list of revenue-by-product members. Parent/leaf overlap (e.g. us-gaap:ProductMember alongside aapl:iPhoneMember) is preserved as-is; consumers can collapse subtotals client-side.
symbol string optional Stock ticker symbol. Identify the entity by exactly one of: symbol, cik, cusip, composite_figi, or share_class_figi. At least one is required.
cik integer optional SEC Central Index Key (CIK).
cusip string optional CUSIP identifier (9 characters).
composite_figi string optional Composite OpenFIGI identifier.
share_class_figi string optional Share-class OpenFIGI identifier.
period string (enum) optional The reporting period: annual returns FY entries; quarter returns Q1-Q4 with Q2/Q3 synthesized from cumulative H1/9M as needed.
limit integer optional Maximum number of periods to return (may be clamped by subscription tier).
curl 'https://api.stockfit.io/v1/api/financials/revenue-segmentation?symbol=AAPL&cik=320193&cusip=037833100&composite_figi=BBG000B9XRY4&share_class_figi=BBG001S5N8V8' \
-H 'Authorization: Bearer YOUR_API_TOKEN'Revenue segmentation by geography and product, organized by period
period string (date) The fiscal period end date (YYYY-MM-DD)
fiscalYear integer The company's fiscal year (handles non-December year-ends).
fiscalPeriod string (enum) Fiscal period of a reported value: `FY` (annual) or `Q1`-`Q4` (quarterly).
FY, Q1, Q2, Q3, Q4unit string Standardized unit of the values (usually `USD`)
geography object countries array of object code string ISO 3166-1 alpha-2 country code
name string Display name
continent string | null Continent name
value number usStates array of object US-state-level disclosures (XBRL `stpr:XX` members). Empty array when no state-level breakdown was disclosed.
code string US state postal code (e.g. CA, NY, TX)
name string Full state name
value number regions array of object member string Raw XBRL member QName
name string continent string | null value number Revenue tagged on this region member
explainedByCountries number Sum of country leaves in this continent
other number Residual = value − explainedByCountries (revenue from countries within the region not separately disclosed)
residuals array of object Filer-extension catch-all buckets like `jhx:OtherCountriesMember`
member string name string value number product array of object member string Raw XBRL member QName
name string Derived display label
value number dateFiled string (date) | null SEC filing acceptance date for the source 10-K/10-Q. Use this to gate point-in-time data and avoid lookahead bias.
[
{
"period": "2024-03-29",
"fiscalYear": 2024,
"fiscalPeriod": {},
"unit": "USD",
"geography": {
"countries": [
{
"code": "US",
"name": "United States",
"continent": "Americas",
"value": 167045000000
}
],
"usStates": [
{
"code": "CA",
"name": "California",
"value": 1269000
}
],
"regions": [
{
"member": "srt:AmericasMember",
"name": "Americas",
"continent": "Americas",
"value": 167045000000,
"explainedByCountries": 167045000000,
"other": 0
}
],
"residuals": [
{
"member": "jhx:OtherCountriesMember",
"name": "Other Countries",
"value": 25000000000
}
]
},
"product": [
{
"member": "aapl:iPhoneMember",
"name": "i Phone",
"value": 201183000000
}
],
"dateFiled": "2024-11-01"
}
]Invalid parameters or symbol not found
error string Human-readable error message
{}Feature not available on current plan
error string Human-readable error message
{}