Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Keyless, but the SEC asks every automated client to declare a User-Agent with a name and contact email; set SEC_EDGAR_USER_AGENT.
- Fair access: at most 10 requests per second across all your machines; heavier use is throttled.
- CIKs in data.sec.gov paths are zero-padded to 10 digits (CIK0000320193). Map a ticker to its CIK with tickers.list.
- XBRL data covers standard taxonomies (us-gaap, ifrs-full, dei, srt) only, not company-custom tags. For bulk work the SEC publishes nightly companyfacts.zip and submissions.zip instead.
Endpoints
List tickers and CIKs
- A single file of all companies; filter it locally. Updated periodically, accuracy not guaranteed by the SEC.
Get a company’s filings
- Holds at least one year or the 1,000 most recent filings, whichever is more; older ones are in additional files the response lists.
Get all XBRL facts of a company
- Returns every concept in one response; use facts.concept for one line item.
Get one XBRL concept of a company
Get one concept across companies
- Each filer contributes one fact, from its most recent filing that best fits the calendar period, so start and end dates differ across companies.