SEC EDGAR Financials API: financial statements, cash flow, 10-K
get_sec_financialsGet clean financial statements of any US-listed company from the SEC's own XBRL data: revenue, profit, EPS, balance sheet, cash flow, free cash flow and margins, per fiscal year or per quarter, by ticker or CIK. Every value cites the XBRL tag and the SEC filing it came from.
Needs tickers or ciks.
Inputs: tickers or ciks (at least one); period annual gives one row per fiscal year, quarterly one per fiscal quarter; years (default 5, max 20) sets how far back; metrics keeps only the named fields; includeSources false makes rows about 3x smaller.
Read-only, no side effects. Charged per row returned, at the price below; a call that fails or runs out of time (55 s) is free. If one source does not answer, the rest still comes back and warnings names the gap. Limit: 60 calls a minute per key (10 on a new free key); past it the call is refused (rate_limited, free): retry after about 10 seconds.
Price: $0.005 per company-period.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_sec_financials"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ciks | No | SEC Central Index Keys as digits, leading zeros optional, e.g. ["320193"] for Apple | |
| years | No | How many of the latest fiscal years to return per company, e.g. 5 (5 rows annual, up to 20 rows quarterly; 2 with quarterly = the last 8 quarters) | |
| period | No | "annual" = one row per fiscal year (FY) | annual |
| metrics | No | Only these output fields, e.g. ["revenue", "net_income", "free_cash_flow", "operating_margin"] | |
| tickers | No | US tickers as listed by the SEC, e.g. ["AAPL", "MSFT"]; share classes with a dash or dot, e.g. "BRK-B" | |
| includeSources | No | true = each row has `sources` (per value: the XBRL tag and the SEC accession number it came from, plus how it was derived) and `filings` (form, filing date and URL of each filing cited) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| tool | No | ||
| count | Yes | ||
| message | No | ||
| warnings | No | ||
| balance_usd | No | ||
| charged_usd | No | ||
| duration_seconds | No |