# How do I get financial statement data from SEC filings?

Canonical: https://sec-api.dev/questions/how-to-get-xbrl-financial-data

> Use the XBRL data the SEC extracts from 10-K and 10-Q filings: GET /api/v1/facts/{cik}?concept=Revenues returns each reported value with its period, unit, form and accession number. Values are as reported, so the same concept can appear in several filings when periods repeat or are restated.

Different companies use different concepts for similar lines; revenue alone has several common tags. See the XBRL concept pages for definitions and real values.

API: GET https://sec-api.dev/api/v1/facts/320193?taxonomy=us-gaap&concept=NetIncomeLoss&unit=USD&limit=5

- [XBRL concepts](https://sec-api.dev/xbrl-concepts)
- [Companyfacts API](https://sec-api.dev/xbrl-companyfacts-api)

---
Independent. Not affiliated with, endorsed by, or sponsored by the U.S. Securities and Exchange Commission. Data is reproduced from public SEC filings and datasets. Not investment advice.
API: https://sec-api.dev/docs · ChatGPT app: https://chatgpt.com/plugins/plugin_asdk_app_6ae0ef2436ac8191941dae8a4d732669 · Free key: https://sec-api.dev/sign-up
