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

Options side by side

SourceCoverageCost model
SEC XBRL APIUS SEC filers, everything they taggedFree; you normalise it
Financial Modeling PrepNormalised statements, many marketsFree tier and monthly plans, API key
Alpha VantageFundamentals plus pricesFree tier with key, paid plans
EODHDGlobal fundamentals and pricesMonthly 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

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