Skip to main content
GET
Get segment costs

Overview

The Financial Datasets segment costs API returns each cost a company reported for each of its segments in its annual and quarterly reports: cost of goods sold, selling, general and administrative expense, research and development, depreciation and amortization, interest expense, income tax, other segment items, and the cost lines the company defined itself. It includes the parts that tie the segments to the whole company, such as Corporate and Eliminations, when the company reports them. The dataset holds costs only. Revenue, profit, and assets per segment are in Segmented Financials. You can call it as a REST endpoint with an API key, or from Claude, ChatGPT, Cursor, and other AI apps through the MCP server, or pay per request with x402. Pricing starts at $20. Use it to answer questions like:
  • How much did each of Amazon’s segments spend, and how much depreciation did each carry?
  • What does it cost McDonald’s to run its company-operated restaurants in the U.S.?
  • How did the cost of goods sold of Caterpillar’s segments change?
To get started, please create an account and grab your API key at financialdatasets.ai.

Coverage

Which API to Use

What Counts as a Segment Cost

A line is in the dataset when all three hold:
  1. It stands on the row of a segment, or of a part that ties the segments to the whole company (Corporate, Eliminations). The same cost for the whole company, with no row, is in the income statement.
  2. It is an amount for a span of time. A balance on a date is not a cost.
  3. It is a cost. A standard line counts when it is one of the standard cost lines of a segment table. A line the company defined itself counts when the company books it on the cost side.
Revenue and profit lines are never in the dataset. Capital spending is not a cost, so it is in Segmented Financials, not here.

Filtering the Data

  • ticker or cik: one is required.
  • period (required): annual, quarterly, six_months_ytd, or nine_months_ytd. There is no ttm.
  • limit: the maximum number of report periods to return, newest first (default 4, maximum 20). Each page holds up to 10 periods, linked by next_page_url.
  • report_period, report_period_gte, report_period_lte, report_period_gt, report_period_lt: filter by report period date (YYYY-MM-DD).

Periods

A cost is a number for a span of time. A quarterly report can state it for the three months, for the fiscal year so far, or both. Use quarterly to read the three months, and six_months_ytd or nine_months_ytd to read the fiscal year so far. A company files no separate report for its fourth quarter, and a cost is never a balance, so quarterly has no fourth quarter. Nothing is calculated for it. Read the year under annual.

History

A new accounting rule asks companies to report their significant costs per segment from 2024 on. Most companies report the detail from their 2024 annual report onward. Older reports often state only depreciation, interest, or income tax per segment.

Response

Each item under segment_costs is one report. It carries ticker, report_period, fiscal_period, period, currency, accession_number, and filing_url (a link to the report), and tables, in the company’s own order. A table: A row: A line: Every key is always there. A table with no rows has "rows": [], and a table with rows only has "line_items": []. Every value is the number the company filed:
  • Nothing is calculated. A total appears only when the company reported one.
  • A sign is never changed. An “other segment items” line can be negative.
A corrected report replaces the report it corrects.

Standard Names

Use standard_label to find the same line at every company. The most common names: A cost line the company defined itself, such as McDonald’s Company operated restaurants expenses, has standard_label null. Standard names change a little over the years. Each report carries the names that were in use when it was filed, so a 2018 report can name a line differently than a 2025 report.

Example

Segment Costs
Response

FAQ

What is the difference between this dataset and Segmented Financials?

Segmented Financials gives a few fixed fields for each segment: revenue, operating income, depreciation, assets, and capital expenditure. This dataset gives every cost line the company reports for each segment, in its own words.

Is the data standardized?

No. The lines are the company’s own, in the company’s own order. Each standard line also carries standard_label, a name that is the same at every company, so you can find the same line across companies.

Why does the response have no fourth quarter?

A cost is a number for a span of time, and a company files no separate report for its fourth quarter. Read the year under annual. Nothing is calculated for the fourth quarter.

Is every line a cost?

Each line passes the three tests above. A few lines a company defines itself are on the cost side of its books without being a cost of running the segment, such as a change in goodwill. They keep the company’s own label, so you can leave them out.

What does a company with no segment costs return?

An empty segment_costs list, when its reports state no cost on a segment row. An empty response is not charged.

How far back does the data go?

To 2016.

Which periods are available?

Annual, quarterly, the first six months, and the first nine months of the fiscal year. There is no TTM.

Can an AI agent use this data?

Yes. Claude, ChatGPT, Cursor, and other MCP clients reach it through the Financial Datasets MCP server, with the get_financials tool and the dataset segment_costs.

Announcement

Introducing the Segment Costs API, on the Financial Datasets news page.

MCP server

Use Segment Costs from Claude, ChatGPT, Cursor, and other AI apps.

Authorizations

X-API-KEY
string
header
required

API key for authentication.

Query Parameters

ticker
string

The ticker symbol. Required if cik is not provided.

cik
string

The Central Index Key (CIK) of the company. Required if ticker is not provided.

period
enum<string>
required

The kind of report. annual returns each annual report. quarterly returns each quarterly report, and the annual report as the fourth quarter with its balances only. six_months_ytd and nine_months_ytd return the second-quarter and third-quarter reports with the numbers of the fiscal year so far.

Available options:
annual,
quarterly,
six_months_ytd,
nine_months_ytd
limit
integer<int32>
default:4

The maximum number of report periods to return, newest first. This is the total across all pages, not a page size: each page holds up to 10 records, linked by next_page_url.

Required range: x <= 20
report_period
string<date>

Filter by exact report period date in YYYY-MM-DD format.

report_period_gte
string<date>

Filter by report period greater than or equal to date in YYYY-MM-DD format.

report_period_lte
string<date>

Filter by report period less than or equal to date in YYYY-MM-DD format.

report_period_gt
string<date>

Filter by report period greater than date in YYYY-MM-DD format.

report_period_lt
string<date>

Filter by report period less than date in YYYY-MM-DD format.

cursor
string

Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.

Response

Segment Costs response

segment_costs
object[]
next_page_url
string

Absolute URL of the next page of results. Present only when more results remain; request it as-is to continue. Each page holds up to 10 records.