Get income statement segments
curl --request GET \
--url https://api.financialdatasets.ai/financials/income-statements/segments \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.financialdatasets.ai/financials/income-statements/segments"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.financialdatasets.ai/financials/income-statements/segments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.financialdatasets.ai/financials/income-statements/segments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.financialdatasets.ai/financials/income-statements/segments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.financialdatasets.ai/financials/income-statements/segments")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.financialdatasets.ai/financials/income-statements/segments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"segmented_financials": [
{
"ticker": "<string>",
"report_period": "2023-12-25",
"fiscal_period": "<string>",
"period": "quarterly",
"currency": "<string>",
"accession_number": "<string>",
"filing_url": "<string>",
"revenue": {
"product": [
{
"label": "<string>",
"value": 123
}
],
"segment": [
{
"label": "<string>",
"value": 123
}
]
},
"operating_income": {
"product": [
{
"label": "<string>",
"value": 123
}
],
"segment": [
{
"label": "<string>",
"value": 123
}
]
},
"depreciation": {
"product": [
{
"label": "<string>",
"value": 123
}
],
"segment": [
{
"label": "<string>",
"value": 123
}
]
}
}
],
"next_page_url": "<string>"
}{
"error": "Bad Request",
"message": "Invalid request parameters"
}{
"error": "Unauthorized",
"message": "Invalid API key provided"
}{
"error": "Payment Required",
"message": "This endpoint requires a paid subscription. Please upgrade your plan."
}{
"error": "Not Found",
"message": "Ticker XXXX not found"
}Segmented Financials
Segmented Revenue API
Revenue by product and business segment, plus segment operating income and depreciation, as reported in 10-K and 10-Q filings: 6,400+ US tickers, 15+ years of history.
GET
/
financials
/
income-statements
/
segments
Get income statement segments
curl --request GET \
--url https://api.financialdatasets.ai/financials/income-statements/segments \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.financialdatasets.ai/financials/income-statements/segments"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.financialdatasets.ai/financials/income-statements/segments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.financialdatasets.ai/financials/income-statements/segments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.financialdatasets.ai/financials/income-statements/segments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.financialdatasets.ai/financials/income-statements/segments")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.financialdatasets.ai/financials/income-statements/segments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"segmented_financials": [
{
"ticker": "<string>",
"report_period": "2023-12-25",
"fiscal_period": "<string>",
"period": "quarterly",
"currency": "<string>",
"accession_number": "<string>",
"filing_url": "<string>",
"revenue": {
"product": [
{
"label": "<string>",
"value": 123
}
],
"segment": [
{
"label": "<string>",
"value": 123
}
]
},
"operating_income": {
"product": [
{
"label": "<string>",
"value": 123
}
],
"segment": [
{
"label": "<string>",
"value": 123
}
]
},
"depreciation": {
"product": [
{
"label": "<string>",
"value": 123
}
],
"segment": [
{
"label": "<string>",
"value": 123
}
]
}
}
],
"next_page_url": "<string>"
}{
"error": "Bad Request",
"message": "Invalid request parameters"
}{
"error": "Unauthorized",
"message": "Invalid API key provided"
}{
"error": "Payment Required",
"message": "This endpoint requires a paid subscription. Please upgrade your plan."
}{
"error": "Not Found",
"message": "Ticker XXXX not found"
}Overview
The Financial Datasets income statement segments API returns a company’s revenue by product line and by business segment, plus operating income and depreciation by segment, as reported in its 10-K and 10-Q filings. It covers 6,400+ US tickers with 15+ years of history, updated within 1 second, parsed directly from SEC filings (data provenance). To get balance sheet and cash flow segments in the same call, use All Segmented Financials. You can call it as a REST endpoint with an API key, or pay per request with x402. Pricing starts at $20. This includes segment data for metrics like:- Revenue — by product line and business segment
- Operating Income — by business segment
- Depreciation — by business segment
{
"segmented_financials": [
{
"ticker": "AAPL",
"report_period": "2025-12-27",
"period": "quarterly",
"revenue": {
"product": [
{"label": "iPhone", "value": 85269000000.0},
{"label": "Services", "value": 30013000000.0},
{"label": "Wearables, Home and Accessories", "value": 11493000000.0},
{"label": "iPad", "value": 8595000000.0},
{"label": "Mac", "value": 8386000000.0}
],
"segment": [
{"label": "Americas", "value": 58529000000.0},
{"label": "Europe", "value": 38146000000.0},
{"label": "Greater China", "value": 25526000000.0},
{"label": "Rest of Asia Pacific", "value": 12142000000.0},
{"label": "Japan", "value": 9413000000.0}
]
},
"operating_income": {
"segment": [
{"label": "Americas", "value": 23953000000.0},
{"label": "Europe", "value": 17790000000.0},
{"label": "Greater China", "value": 11792000000.0},
{"label": "Rest of Asia Pacific", "value": 5686000000.0},
{"label": "Japan", "value": 4613000000.0}
]
}
}
]
}
Coverage
| Tickers | Years of Coverage | Updated |
|---|---|---|
| 6,400+ | 15+ years | Within 1 second |
Available Tickers
You can fetch a list of available tickers with aGET request to:
https://api.financialdatasets.ai/financials/income-statements/segments/tickers/
Getting Started
There are only 3 steps for making a successful API call:- Add your API key to the header of the request as
X-API-KEY. - Add query params like
ticker,periodandlimitto filter the data. - Execute the API request.
Filtering the Data
You can filter the data byticker, period, limit, and report_period.
Note: ticker and period are required. Alternatively, you can use cik instead of ticker as a company identifier in your request.
By default, period is annual, limit is 4, and report_period is null.
The period parameter can be set to annual or quarterly. The limit parameter is used to specify the number of periods to return.
The report_period parameter is used to specify the date of the statement. For example, you can include filters like report_period_lte=2024-09-30 and report_period_gte=2024-01-01 to get statements between January 1, 2024 and September 30, 2024.
The available report_period operations are:
report_period_ltereport_period_ltreport_period_gtereport_period_gtreport_period
Example
Income Statement Segments
import requests
# add your API key to the headers
headers = {
"X-API-KEY": "your_api_key_here"
}
# set your query params
ticker = 'AAPL' # stock ticker
period = 'annual' # possible values are 'annual' or 'quarterly'
limit = 5 # number of periods to return
# create the URL
url = (
f'https://api.financialdatasets.ai/financials/income-statements/segments'
f'?ticker={ticker}'
f'&period={period}'
f'&limit={limit}'
)
# make API request
response = requests.get(url, headers=headers)
# parse segmented_financials from the response
segmented_financials = response.json().get('segmented_financials')
Example (with report_period)
Income Statement Segments
import requests
# add your API key to the headers
headers = {
"X-API-KEY": "your_api_key_here"
}
# set your query params
ticker = 'AAPL'
period = 'annual'
limit = 100
report_period_lte = '2024-01-01' # end date
report_period_gte = '2020-01-01' # start date
# create the URL
url = (
f'https://api.financialdatasets.ai/financials/income-statements/segments'
f'?ticker={ticker}'
f'&period={period}'
f'&limit={limit}'
f'&report_period_lte={report_period_lte}'
f'&report_period_gte={report_period_gte}'
)
# make API request
response = requests.get(url, headers=headers)
# parse segmented_financials from the response
segmented_financials = response.json().get('segmented_financials')
FAQ
Can I get revenue by product and by region?
Yes, when the company reports it that way. For example, Apple reports revenue by product (iPhone, Mac, iPad, Services, Wearables) and by geographic segment (Americas, Europe, Greater China, Japan, Rest of Asia Pacific).Are quarterly segments available?
Yes. Setperiod to annual or quarterly.