Where to get company financials from an API
For US public companies the source data is free: the SEC's XBRL API (data.sec.gov/api/xbrl/companyfacts) returns every figure a company has reported in its 10-K and 10-Q filings. Data vendors such as Financial Modeling Prep, Alpha Vantage and EODHD clean that up and add other markets on paid plans. Our Company Filings Brief returns the latest yearly 10-K figures for one company in one $0.01 call.
Try it free US Company Filings Brief API — SEC EDGAR in one call · $0.01 / call
Standardized numbers are the hard part
Companies tag their numbers with XBRL concepts, but they don't all pick the same ones. Revenue alone can appear under several us-gaap names, and some companies add their own custom concepts.
Periods matter too. A 10-K reports the current year and earlier years side by side, and a 10-Q mixes three-month and year-to-date values. Read the start and end dates of each value, not only the fiscal year label.
Compare many companies with frames
The frames endpoint gives one concept for every company in one period. CY2024 means calendar year 2024 for duration values like revenue; add I (CY2024Q4I) for point-in-time values like assets.
import requests
H = {"User-Agent": "Jane Doe Research jane@example.com"}
url = "https://data.sec.gov/api/xbrl/frames/us-gaap/NetIncomeLoss/USD/CY2024.json"
rows = requests.get(url, headers=H, timeout=30).json()["data"]
top = sorted(rows, key=lambda x: x["val"], reverse=True)[:10]
for x in top:
print(x["entityName"], x["val"])
What our brief returns
- Profile: name, CIK, tickers, exchanges, industry, state, fiscal year end and location.
- Latest yearly 10-K figures: revenue, operating income, net income, diluted EPS, total assets, total liabilities, equity and cash.
- Recent filings with links to the documents on sec.gov.
- Input: a ticker, company name or CIK in "company".
Options side by side
| Source | Coverage | Cost model |
|---|---|---|
| SEC XBRL API | US SEC filers, everything they tagged | Free; you normalise it |
| Financial Modeling Prep | Normalised statements, many markets | Free tier and monthly plans, API key |
| Alpha Vantage | Fundamentals plus prices | Free tier with key, paid plans |
| EODHD | Global fundamentals and prices | Monthly plans, API key |
| Company Filings Brief (iamai.markets) | US SEC filers, latest yearly 10-K figures | $0.01 per call, x402, no key |
Fit and limits
- Good for: an agent or app that needs a quick, sourced snapshot of one company.
- Not for: quarterly series, ratios over ten years, or screening thousands of firms. Use frames or a data vendor for that.
- US-listed SEC filers only; private companies don't file these reports.
- Paying needs USDC on Base through an x402 client. People can try it 5 times a day free on the listing page. Not investment advice.
The product
Questions
Is SEC financial data free for commercial use?
The SEC publishes EDGAR data for public access at no cost. Check the SEC's own terms for your use case; the fair-access rules on request rate still apply.
Why is a company missing revenue in companyfacts?
It probably tags revenue under a different concept name. Search its us-gaap keys for "Revenue" and pick the one used in its latest 10-K.
Can I get private company financials?
Not from the SEC. Private companies generally don't file public financial statements.
Related
Updated 2026-12-01
