No key, but there are rules
The SEC's EDGAR APIs on data.sec.gov need no account and no API key. Two access rules apply to every request. First, the SEC's fair-access limit is currently 10 requests per second across all your traffic. Second, automated requests must declare a User-Agent header naming your organization and a contact email. Requests without one are refused with HTTP 403.
data.sec.gov does not support Cross-Origin Resource Sharing (CORS), so a browser page cannot call it directly. Call it from a server or script and cache what you fetch.
curl -H "User-Agent: Example Research admin@example.com" \
https://data.sec.gov/submissions/CIK0000789019.jsonThe four data.sec.gov endpoints
Each endpoint takes a 10-digit CIK, zero-padded (Microsoft's CIK 789019 becomes CIK0000789019).
| Endpoint | Returns |
|---|---|
| /submissions/CIK##########.json | Company details and filing history: form, accession, filing date, report date, primary document |
| /api/xbrl/companyfacts/CIK##########.json | Every XBRL fact the company reported, grouped by taxonomy and tag |
| /api/xbrl/companyconcept/CIK##########/{taxonomy}/{tag}.json | All values of one tag for one company |
| /api/xbrl/frames/{taxonomy}/{tag}/{unit}/{period}.json | One value per company for a calendar period: CY2019 (annual), CY2019Q1 (quarter), CY2019Q1I (instant) |
https://data.sec.gov/submissions/CIK0000789019.json
https://data.sec.gov/api/xbrl/companyfacts/CIK0000320193.json
https://data.sec.gov/api/xbrl/companyconcept/CIK0000320193/us-gaap/AccountsPayableCurrent.json
https://data.sec.gov/api/xbrl/frames/us-gaap/AccountsPayableCurrent/USD/CY2019Q1I.jsonRead the submissions response correctly
filings.recent holds at least one year of filings or the latest 1,000, whichever is more, as parallel arrays: index i of form, accessionNumber, filingDate and primaryDocument describe the same filing. Older filings live in extra files listed under filings.files, each with its date range. For Microsoft, filings.recent holds 1,000 filings and an extra file covers 2008 to 2020.
The SEC updates the submissions API with a typical delay under a second after a filing is disseminated, and the XBRL APIs within about a minute.
Find a company's CIK
The SEC publishes a ticker-to-CIK mapping at www.sec.gov/files/company_tickers.json. Pad the CIK to 10 digits for data.sec.gov URLs. Tickers change (FB became META) and can be reused, so store the CIK, not the ticker, as your company key.
Accession numbers and filing URLs
An accession number such as 0001193125-15-118890 uniquely identifies one accepted submission. The first ten digits are the CIK of the entity that submitted it, which is often a filing agent rather than the company. The middle two digits are the year, and the last six are a sequence number.
Filing documents live under the EDGAR Archives. Remove the dashes from the accession for the folder name; the index page keeps them.
https://www.sec.gov/Archives/edgar/data/{CIK}/{accession-without-dashes}/{primaryDocument}
https://www.sec.gov/Archives/edgar/data/{CIK}/{accession}-index.html
https://www.sec.gov/Archives/edgar/data/789019/000119312526323660/msft-20260630.htmFull-text search
EDGAR full-text search covers filings submitted electronically since 2001, including exhibits. It supports exact phrases in double quotes, Boolean operators and wildcards; it is not natural-language search. The website at efts.sec.gov/LATEST/search-index is backed by a JSON endpoint that takes parameters such as q, forms, ciks, dateRange=custom with startdt and enddt, and from for paging. The SEC does not document this endpoint as a public API, so its behavior can change without notice. Pagination ends at 10,000 results.
Bulk downloads instead of thousands of calls
If you need data for many companies, download the nightly bulk files instead of looping over the API: companyfacts.zip (all company-facts and frames data) and submissions.zip (all filing histories), both republished at about 3:00 a.m. ET. This keeps you well inside the rate limit.
Common errors
- 403 Forbidden: missing or generic User-Agent. Declare an organization name and contact email.
- Requests suddenly refused after heavy use: you exceeded the fair-access rate. Pause, then reduce your request rate and add caching.
- 404 on a companyconcept call: the company never reported that tag. Missing is not zero; companies change tags over time.
- Browser errors calling data.sec.gov: no CORS support. Call from a server.
Skip the plumbing
EdgarStack wraps these endpoints in MCP tools for Claude and ChatGPT. It handles the rate limit, CIK lookup, tag changes, fiscal periods and source accessions, so you can ask for a company's revenue or its latest risk-factor changes in plain English and get the filing reference with every number.
Frequently asked questions
Does the SEC EDGAR API need an API key?
No. The data.sec.gov APIs are free and need no key or account. You must send a User-Agent header with your organization name and a contact email, and stay within the fair-access rate of 10 requests per second.
What is the SEC EDGAR rate limit?
The SEC's current maximum is 10 requests per second across all of your requests. The SEC reserves the right to limit traffic that exceeds it.
What User-Agent should I send to SEC EDGAR?
A string naming your company or project and a contact email, for example 'Example Research admin@example.com'. Requests without a declared User-Agent are refused.
Why does my browser get blocked calling data.sec.gov?
data.sec.gov does not support CORS, so browsers block direct calls from web pages. Make the request from a server or script.
Official sources
Use these SEC resources to confirm filing requirements, API behavior, and company-reported facts.