Python guide
SEC API Python Guide
A Python SEC API example for developers searching for SEC API Python usage, pricing, and documentation before wiring filing changes into scripts, alert workers, or dashboards.
GET /v1/sec/changes?since=2026-07-01&form=8-K&limit=25
import os
import requests
host = "https://sec-event-intelligence.p.rapidapi.com"
headers = {
"x-rapidapi-host": "sec-event-intelligence.p.rapidapi.com",
"x-rapidapi-key": os.environ["RAPIDAPI_KEY"],
}
params = {"since": "2026-07-01", "form": "8-K", "limit": 25}
response = requests.get(
f"{host}/v1/sec/changes",
headers=headers,
params=params,
timeout=20,
)
response.raise_for_status()
for row in response.json()["data"]:
filing = row["filing"]
print(filing["ticker"], filing["form"], filing["filedAt"])
Implementation Steps
This guide shows language-specific setup steps for calling the live SEC endpoints through the RapidAPI subscription path.
- Subscribe on RapidAPI and copy the generated key into RAPIDAPI_KEY.
- Use Python requests for direct HTTPS calls; no generated SDK package is required.
- Start with /v1/sec/changes for a simple SEC API Python example, then add watchlist polling when the response fits.
Endpoints Used
Start with one polling endpoint and expand only after the response shape fits your workflow.
GET /v1/sec/changesGET /v1/sec/watchlist/changesGET /v1/sec/forms/{accessionNo}/summary
SDK FAQ
Can I use this as a SEC API Python example?
Yes. The page shows a minimal Python requests call against the live SEC Event Intelligence endpoint through RapidAPI.
Is this a raw SEC.gov EDGAR wrapper?
No. It returns normalized public filing metadata for application workflows rather than raw filing documents.
/downloads/sec-event-intelligence-python-client.py.