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 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

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.

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.