Python guide
Python SEC API Guide
A pip-free Python requests guide for developers evaluating SEC Event Intelligence through RapidAPI before wiring it into alert workers, dashboards, or data pipelines.
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 change in response.json()["data"]:
filing = change["filing"]
print(filing["ticker"], filing["form"], filing["filedAt"])
Implementation Steps
This guide is part of the live SEC product funnel. It tracks language-specific developer interest before pricing or endpoint changes are made.
- Install requests if your environment does not already include it.
- Store the RapidAPI key in RAPIDAPI_KEY, not in source code.
- Start with /v1/sec/changes or /v1/sec/watchlist/changes for polling workflows.
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/companies/search
SDK FAQ
Is there an official Python package?
No package is required. The API is plain HTTPS JSON and works with requests or any HTTP client.
Where do I get the key?
Subscribe on RapidAPI, then use the generated RapidAPI key in the request headers.
/downloads/sec-event-intelligence-python-client.py.