Guide
Included with Signal8 Pro, $29.50/mo or $294/yr. One API key covers the REST API, the MCP server and the streams.
Every endpoint takes a CIK, the 10-digit number EDGAR gives each filer, written with its leading zeros. SEC says the JSON is updated throughout the day as filings are disseminated.
| Endpoint | What it returns |
|---|---|
https://data.sec.gov/submissions/CIK##########.json | One filer's filing history: form type, accession number, filing and acceptance times, primary document and, on 8-Ks, the item numbers. The newest filings are in filings.recent. |
https://data.sec.gov/api/xbrl/companyfacts/CIK##########.json | Every XBRL fact a company has reported, across all its filings. |
https://data.sec.gov/api/xbrl/companyconcept/CIK##########/us-gaap/AccountsPayableCurrent.json | One concept (here accounts payable) for one company over time. |
https://data.sec.gov/api/xbrl/frames/us-gaap/AccountsPayableCurrent/USD/CY2019Q1I.json | One concept for every company in one period. Periods are written CY2019 (a year), CY2019Q1 (a quarter) or CY2019Q1I (a balance on one date). |
submissions.zip and companyfacts.zip (sec.gov/Archives/edgar/daily-index) | The whole of the two APIs as bulk files, republished nightly at about 3:00 a.m. ET. |
https://www.sec.gov/files/company_tickers.json | SEC's ticker to CIK mapping, the usual first step when you start from a ticker. |
Sample Company Name [email protected]. Requests without one are refused.This looks up a ticker's CIK and prints its five most recent filings. It needs only the requests package.
# pip install requests
import requests
# SEC asks every automated client to name itself and give a contact address.
HEADERS = {"User-Agent": "Example App [email protected]"}
def cik_for(ticker):
"""Look up a ticker's 10-digit CIK in the SEC's own ticker file."""
rows = requests.get("https://www.sec.gov/files/company_tickers.json", headers=HEADERS, timeout=30).json()
for row in rows.values():
if row["ticker"] == ticker.upper():
return str(row["cik_str"]).zfill(10)
raise KeyError(ticker)
def recent_filings(cik, limit=5):
url = f"https://data.sec.gov/submissions/CIK{cik}.json"
recent = requests.get(url, headers=HEADERS, timeout=30).json()["filings"]["recent"]
for i in range(limit):
yield recent["form"][i], recent["accessionNumber"][i], recent["acceptanceDateTime"][i]
cik = cik_for("AAPL")
for form, accession, accepted in recent_filings(cik):
print(form, accession, accepted)
Note what came back for an issuer like Apple: its own filings and the Form 4s and 144s its insiders filed about it, because EDGAR lists an ownership filing under the issuer as well as the filer.
If the job is "tell me as soon as a filing I care about appears", polling is the expensive part. The Signal8 SEC filings stream pushes every EDGAR filing over one WebSocket as soon as we see it, filtered on our side by ticker, CIK, form family, 8-K item, market cap, exchange and security type, with a 24-hour replay after a disconnect and an optional AI event with event type, significance and summary. It is included with Signal8 Pro.
Use the free API for history and XBRL financials; it is the source of record and costs nothing. Use a stream for what is new.
| Free SEC EDGAR API | Signal8 filings stream | |
|---|---|---|
| Price | Free | Included with Signal8 Pro |
| How new filings reach you | You poll | Pushed over a WebSocket |
| Scope of one call | One filer (submissions) | Every filing that matches your filters |
| Filters | By filer, or form type on the feed | Ticker, CIK, form with * families, 8-K item, market cap, exchange, security type |
| After downtime | Re-poll and reconcile | Resume from a cursor, up to 24 h replayed |
| Insider and ownership forms | Listed under issuer and filer | One event: issuer as subject, filer in reporting_owner |
| Analysis | None | Optional AI event (filings under 72 h old) |
| Limits | 10 requests per second | 2 connections per key; events are not metered |
| History and XBRL financials | Yes, the full record | No, live events plus a 24 h replay |
Open one WebSocket, send one subscribe message, and filings and press releases arrive as events. Resume with a cursor after a disconnect and the server replays up to 24 hours.
Included with Signal8 Pro, $29.50/mo or $294/yr. One API key covers the REST API, the MCP server and the streams.