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.

Endpoints Used

Start with one polling endpoint and expand only after the response shape fits your workflow.

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.

Data infrastructure only. The SDK guides call public SEC filing data endpoints and do not provide investment advice, recommendations, ratings, or personalized financial guidance. The starter client file is available at /downloads/sec-event-intelligence-python-client.py.