curl
curl "https://api.stockcontext.com/v2/segments?symbol=AAPL" \
-H "X-API-Key: $STOCKCONTEXT_API_KEY"{
"data": {
"as_of": "2026-06-05T20:15:00Z",
"asset_type": "stock",
"cache_age_seconds": 0,
"freshness": "end_of_day",
"market_status": "closed",
"segments": {
"built_at": "2026-06-05T20:15:00Z",
"captured_accessions": [
"0000320193-26-000057"
],
"columns": [
"axis",
"member",
"label",
"period",
"period_end",
"filed",
"accession",
"revenue",
"operating_profit"
],
"currency_unit": "USD",
"g_seg": [
{
"accession": "0000320193-26-000057",
"consolidated_revenue": 94040000000,
"period": "quarter",
"period_end": "2026-03-28",
"segment_revenue_sum": 94040000000,
"status": "in_band"
}
],
"member_sets": {
"0000320193-26-000057": [
"aapl:AmericasSegmentMember",
"aapl:EuropeSegmentMember"
]
},
"order": "newest_first",
"profit_concept": {
"0000320193-26-000057": "OperatingIncomeLoss"
},
"rows": [
[
"business",
"aapl:AmericasSegmentMember",
"Americas",
"quarter",
"2026-03-28",
"2026-05-02",
"0000320193-26-000057",
44590000000,
19640000000
],
[
"business",
"aapl:EuropeSegmentMember",
"Europe",
"quarter",
"2026-03-28",
"2026-05-02",
"0000320193-26-000057",
24840000000,
10010000000
],
[
"geography",
"country:US",
"United States",
"quarter",
"2026-03-28",
"2026-05-02",
"0000320193-26-000057",
40120000000,
null
]
],
"segment_recast": false,
"source": "sec_filing_xbrl",
"unavailable": [
{
"accession": "0000320193-26-000057",
"axis": "geography",
"column": "operating_profit",
"period": "quarter",
"period_end": "2026-03-28",
"reason": "segment_profit_not_disclosed"
}
]
},
"symbol": "AAPL"
},
"schema_version": "2026-06-17.7"
}Segmented financials API
Segmented financials API: business and geographic revenue/profit rows from SEC XBRL, with accessions, recast flags, and revenue reconciliation.
GET
/
v2
/
segments
curl
curl "https://api.stockcontext.com/v2/segments?symbol=AAPL" \
-H "X-API-Key: $STOCKCONTEXT_API_KEY"{
"data": {
"as_of": "2026-06-05T20:15:00Z",
"asset_type": "stock",
"cache_age_seconds": 0,
"freshness": "end_of_day",
"market_status": "closed",
"segments": {
"built_at": "2026-06-05T20:15:00Z",
"captured_accessions": [
"0000320193-26-000057"
],
"columns": [
"axis",
"member",
"label",
"period",
"period_end",
"filed",
"accession",
"revenue",
"operating_profit"
],
"currency_unit": "USD",
"g_seg": [
{
"accession": "0000320193-26-000057",
"consolidated_revenue": 94040000000,
"period": "quarter",
"period_end": "2026-03-28",
"segment_revenue_sum": 94040000000,
"status": "in_band"
}
],
"member_sets": {
"0000320193-26-000057": [
"aapl:AmericasSegmentMember",
"aapl:EuropeSegmentMember"
]
},
"order": "newest_first",
"profit_concept": {
"0000320193-26-000057": "OperatingIncomeLoss"
},
"rows": [
[
"business",
"aapl:AmericasSegmentMember",
"Americas",
"quarter",
"2026-03-28",
"2026-05-02",
"0000320193-26-000057",
44590000000,
19640000000
],
[
"business",
"aapl:EuropeSegmentMember",
"Europe",
"quarter",
"2026-03-28",
"2026-05-02",
"0000320193-26-000057",
24840000000,
10010000000
],
[
"geography",
"country:US",
"United States",
"quarter",
"2026-03-28",
"2026-05-02",
"0000320193-26-000057",
40120000000,
null
]
],
"segment_recast": false,
"source": "sec_filing_xbrl",
"unavailable": [
{
"accession": "0000320193-26-000057",
"axis": "geography",
"column": "operating_profit",
"period": "quarter",
"period_end": "2026-03-28",
"reason": "segment_profit_not_disclosed"
}
]
},
"symbol": "AAPL"
},
"schema_version": "2026-06-17.7"
}Authorizations
StockContext API key. Keys start with sctx_ and are sent on every REST request.
Query Parameters
Ticker symbol. Case-insensitive; share-class dots are normalized to dashes (BRK.B == BRK-B). Returns SYMBOL_UNKNOWN when the symbol is outside the supported universe.
Example:
"AAPL"
⌘I