SEC EDGAR Financial Data API

The SEC EDGAR API provides structured financial statement data directly from SEC filings (10-K, 10-Q, 20-F).

This API processes XBRL data from the SEC EDGAR database to deliver:

  • Income statements with derived metrics (margins, EBITDA, growth rates)
  • Balance sheets with calculated debt metrics
  • Cash flow statements with free cash flow calculations
  • Trailing Twelve Months (TTM) data from quarterly filings
  • A single currency code per response so clients know how to display monetary values

Data Coverage: All publicly traded companies that file with the SEC

Historical Data: Annual data from company inception, quarterly data for TTM calculations

Authorization

Authorization is done using Authorization header with Bearer token.

Financials Endpoint

Fetch complete financial statements for any SEC-registered company.

example: http://apiii.online/api/sec/v1/financials?ticker=AAPL

Params

ParamRequiredTypeDescription
tickertruestringStock ticker symbol (e.g. AAPL, MSFT, GOOGL)

Response Fields

FieldTypeDescription
tickerstringUppercase ticker symbol
entityNamestringOfficial company name from SEC
ciknumberSEC Central Index Key
currencystringISO 4217 code for monetary amounts (e.g. USD, EUR, RUB). Counts are taken from the latest annual income-statement period (most recent 10-K/20-F flow end date), then among those currencies within 90% of the max count, USD is preferred, then EUR, then the highest count. If there is no annual flow data, counts use the whole filing. Use this to format labels; EPS uses the same currency per share.
incomearrayAnnual income statements
balance_sheetarrayAnnual balance sheets
cash_flowarrayAnnual cash flow statements
ttmobject | nullTrailing Twelve Months data (when available)

Returns

Data Structure

Income Statement Fields

FieldDescription
period_endFiscal period end date (ISO format)
RevenueTotal revenue
CostOfSalesCost of goods sold / cost of revenue
OperatingIncomeOperating income (EBIT)
NetIncomeNet income attributable to shareholders
DilutedSharesWeighted average diluted shares outstanding
EPSDilutedDiluted earnings per share
GrossMarginGross profit margin (%) - derived
OperatingMarginOperating margin (%) - derived
EBITDAEarnings before interest, taxes, D&A - derived
EBITDAMarginEBITDA margin (%) - derived
RevenueGrowthYear-over-year revenue growth (%) - derived

Balance Sheet Fields

FieldDescription
CashCash and cash equivalents
CurrentAssetsTotal current assets
TotalAssetsTotal assets
CurrentLiabilitiesTotal current liabilities
TotalLiabilitiesTotal liabilities
StockholdersEquityTotal shareholders' equity
TotalDebtLong-term + short-term debt - derived
NetDebtTotal debt minus cash - derived

Cash Flow Fields

FieldDescription
OperatingCFCash flow from operating activities
InvestingCFCash flow from investing activities
FinancingCFCash flow from financing activities
CapExCapital expenditures
StockBasedCompensationStock-based compensation expense
FreeCashFlowOperating CF minus CapEx - derived

TTM (Trailing Twelve Months)

When quarterly (10-Q) filings are available and more recent than the latest annual report, the API automatically calculates Trailing Twelve Months metrics.

Calculation Method

TTM values are calculated using the formula:

TTM = Latest Annual + Current YTD - Prior Year Same YTD

This approach naturally accounts for seasonality without naive multiplication, providing accurate trailing twelve-month figures.

TTM Response Structure

FieldDescription
period_labelQuarter identifier (e.g., "Q2 TTM", "Q3 TTM")
incomeTTM income statement metrics
balance_sheetMost recent quarterly balance sheet (point-in-time)
cash_flowTTM cash flow metrics

When TTM is Available

  • Company has filed at least one 10-Q (quarterly report)
  • The most recent 10-Q is more current than the latest 10-K (annual report)
  • Sufficient quarterly data exists for year-over-year comparison

XBRL Taxonomy Support

The API supports both US-GAAP and IFRS taxonomies, automatically detecting and processing the appropriate accounting standard for each company.

  • US-GAAP: Used by most US companies (10-K filings)
  • IFRS: Used by foreign companies filing 20-F forms

Error Handling

Status CodeDescription
400Missing or invalid ticker parameter
401Unauthorized - missing or invalid Bearer token
404Ticker not found in SEC database or no financial data available
500Internal server error during data processing

Data Source

All data is sourced directly from the SEC EDGAR REST API:

  • Ticker-to-CIK mapping: https://www.sec.gov/files/company_tickers.json
  • Company facts: https://data.sec.gov/api/xbrl/companyfacts/CIK{'{'}cik{'}'}.json

The API processes raw XBRL facts from annual filings (10-K, 20-F) and quarterly filings (10-Q) to construct structured, normalized financial statements.

Rate Limiting: The SEC EDGAR API allows approximately 10 requests per second. This proxy endpoint respects SEC rate limits automatically.