Python example

Company Filings API Client

A client pattern for company detail pages, diligence queues, and research tools that need recent public SEC filing metadata for one issuer without maintaining an EDGAR ingestion pipeline.

GET /v1/sec/company/AAPL/filings?limit=25
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"],
}

response = requests.get(
    f"{API_HOST}/v1/sec/company/AAPL/filings",
    headers=HEADERS,
    params={"limit": 25},
    timeout=20,
)
response.raise_for_status()

for filing in response.json()["data"]:
    print(
        filing["ticker"],
        filing["form"],
        filing["filedAt"],
        filing["accessionNo"],
    )

Implementation Steps

This example is designed for self-serve evaluation before a buyer subscribes or imports generated snippets from RapidAPI.

Endpoints Used

The recipe stays inside the live SEC Event Intelligence product surface so it can be tested immediately.

Example FAQ

Can this back a company profile page?

Yes. The endpoint returns recent issuer filing metadata for a ticker or CIK-backed company page.

Does this replace official SEC documents?

No. It returns normalized metadata and source links so callers can route users to the public filing when needed.

Data infrastructure only. This example retrieves public SEC filing data and does not provide investment advice, recommendations, ratings, or personalized financial guidance.