Python example

Insider Filing Monitor

A monitoring pattern for research and compliance tools that need public insider filing metadata without maintaining a separate EDGAR parser.

GET /v1/sec/insider-trades?ticker=MSFT&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"],
}

params = {"ticker": "MSFT", "limit": 25}
response = requests.get(
    f"{API_HOST}/v1/sec/insider-trades",
    headers=HEADERS,
    params=params,
    timeout=20,
)
response.raise_for_status()

for filing in response.json()["data"]:
    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.

Endpoints Used

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

Example FAQ

Does this classify buys and sells?

No. It returns public filing metadata and leaves interpretation to the caller.

Can callers scope insider filings to one issuer?

Yes. Use the ticker parameter to request recent Forms 3, 4, and 5 for one company.

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