company_facts
Key financials from a company's XBRL filings (SEC companyconcept API): revenue, net income, operating income, operating cash flow, EPS basic/diluted, total assets, total liabilities, stockholders' equity, cash, shares outstanding. Each metric returns the XBRL tag used, unit, latest_reported, latest_annual and latest_quarterly values plus annual and quarterly history, each with period start/end, fiscal year/period, form, filing date and accession number. Picks the freshest of several standard us-gaap tags (ifrs-full for IFRS filers). Optional metrics subset. Data: SEC EDGAR public APIs (sec.gov, data.sec.gov), US public domain, no API key. Companies without XBRL financials and upstream errors are not charged. Costs $0.003 USDC per call via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company | Yes | Ticker (AAPL, BRK.B), CIK (320193 or 0000320193) or company name | |
| metrics | No | Subset of metrics (default all): revenue, net_income, operating_income, operating_cash_flow, eps_basic, eps_diluted, total_assets, total_liabilities, stockholders_equity, cash, shares_outstanding | |
| annual_periods | No | Annual history length per metric (0-10, default 3) | |
| quarterly_periods | No | Quarterly history length per metric (0-12, default 4) |