apyhub
Back
▣ RETRIEVAL KIT

Get Company Financials API

What it does

The Company Financials API returns key figures from SEC filings for US public companies. Send a ticker, a company name or an SEC CIK and get back one row per reporting period.

Each row covers the income statement, cash flow and balance sheet. You get revenue, gross profit, operating income, net income, basic and diluted EPS and net margin. You also get operating cash flow, capex, free cash flow, cash, total assets, total liabilities, equity and long-term debt. Every row includes the fiscal year, period end date, currency and a link to the company's SEC EDGAR page.

Set period to annual or quarterly, and use years to go back as far as 20 years. Annual is the default. Quarterly rows cover the three 10-Q quarters, because fiscal Q4 is only reported inside the annual 10-K.

The data comes from XBRL facts in 10-K and 10-Q filings, so it covers companies that file with the SEC. Private companies are not included.

Teams use this company financials API for stock screeners, valuation models, investor dashboards and research tools that need clean figures without parsing filings.

To read the filings themselves, use the SEC EDGAR Filings API. To follow insider buying and selling, use the SEC Form 4 Stock Transactions API.

POST
Get Company Financials
https://api.eu.apyhub.com/martin10291/company-financials

QUICKSTART

GUIDE

Quickstart

Get Apple's last two years of annual financials by ticker.

curl -X POST "https://api.eu.apyhub.com/martin10291/company-financials" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ticker":"AAPL","period":"annual","years":2}'

What you'll get back

A count and an items array with one row per fiscal year, newest first. Example response (shortened to the first row):

{
  "count": 2,
  "items": [
    {
      "company": "Apple Inc.",
      "cik": 320193,
      "period": "annual",
      "fiscalYear": 2026,
      "periodEnd": "2026-09-26",
      "filed": "2026-11-03",
      "currency": "USD",
      "revenue": 478834000000,
      "grossProfit": 233602000000,
      "operatingIncome": 158063000000,
      "netIncome": 132175000000,
      "netMargin": 0.276,
      "epsBasic": 9.01,
      "epsDiluted": 8.98,
      "operatingCashFlow": 145097000000,
      "capex": 9041000000,
      "freeCashFlow": 136056000000,
      "cash": 36305000000,
      "totalAssets": 404548000000,
      "totalLiabilities": 292455000000,
      "equity": 112093000000,
      "longTermDebt": 68208000000,
      "source": "https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=320193"
    }
  ]
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body
Or SEC CIK number
How many years back
annual or quarterly

About this endpoint

What it does

Returns key financial figures from SEC filings for a US public company: income statement, cash flow and balance sheet items, one row per reporting period. Look up a company by ticker, company name or SEC CIK.

Request Body

ParameterTypeMandatoryDescription
tickerStringNoUS ticker, for example AAPL, or a company name. Send either ticker or cik. If both are sent, ticker is used.
cikStringNoSEC CIK number, for example 320193. Send either ticker or cik.
periodENUMNoAllowed values: annual, quarterly. Default: annual.
yearsIntegerNoHow many years back to return. Minimum 1, maximum 20. Default: 5.

Notes

  • quarterly returns the three 10-Q quarters of each fiscal year. Fiscal Q4 is not returned, because it is only reported inside the annual 10-K.
  • In quarterly rows, fiscalYear, cash and totalAssets can be missing or null.
  • All money values are in the reporting currency (currency, usually USD), in whole units, not thousands or millions.

Response

Returns a JSON object with a count and an items array. Each item is one reporting period, newest first.

ParameterTypeDescription
countIntegerNumber of rows in items.
itemsObject ArrayFinancial rows, one per reporting period.
items[].companyStringCompany name as filed with the SEC, for example Apple Inc.
items[].cikIntegerSEC CIK number of the company.
items[].periodStringannual or quarterly.
items[].fiscalYearIntegerFiscal year of the row, for example 2026. Can be missing in quarterly rows.
items[].periodEndStringLast day of the reporting period, YYYY-MM-DD.
items[].filedStringDate of the filing the figures were taken from, YYYY-MM-DD. Older periods can show the date of a later filing that restated them.
items[].currencyStringReporting currency, for example USD.
items[].revenueIntegerTotal revenue for the period.
items[].grossProfitIntegerRevenue minus cost of revenue.
items[].operatingIncomeIntegerOperating income for the period.
items[].netIncomeIntegerNet income for the period.
items[].netMarginNumberNet income divided by revenue, for example 0.276 for 27.6%.
items[].epsBasicNumberBasic earnings per share.
items[].epsDilutedNumberDiluted earnings per share.
items[].operatingCashFlowIntegerNet cash from operating activities.
items[].capexIntegerCapital expenditures (payments for property, plant and equipment).
items[].freeCashFlowIntegerOperating cash flow minus capex.
items[].cashIntegerCash and cash equivalents at period end. Can be null in quarterly rows.
items[].totalAssetsIntegerTotal assets at period end. Can be null in quarterly rows.
items[].totalLiabilitiesIntegerTotal liabilities at period end.
items[].equityIntegerTotal shareholders' equity at period end.
items[].longTermDebtIntegerLong-term debt at period end.
items[].sourceStringLink to the company's filings page on SEC EDGAR.

Data source: SEC EDGAR XBRL financial data (10-K and 10-Q filings).

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.