Python example
SEC Filing Alert Worker
A copy-ready pattern for apps that need to check newly observed SEC filings, filter to current reports, and push the result into an alert queue or internal notification system.
GET /v1/sec/changes?since=2026-07-01&form=8-K&limit=50
import os
import requests
API_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": 50}
response = requests.get(
f"{API_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 example is designed for self-serve evaluation before a buyer subscribes or imports generated snippets from RapidAPI.
- Store the last successful polling date in your job state.
- Call the change feed with form and ticker filters that match your workflow.
- Deliver only new records to Slack, email, a queue, or an internal dashboard.
Endpoints Used
The recipe stays inside the live SEC Event Intelligence product surface so it can be tested immediately.
GET /v1/sec/changesGET /v1/sec/latestGET /v1/sec/forms/{accessionNo}/summary
Example FAQ
Can this run as a cron job?
Yes. The change endpoint is designed for scheduled polling by date window.
Does the example make trading recommendations?
No. It only retrieves public SEC filing metadata for your own workflow.