SEC EDGAR Data API: Insider Trades, 13F and Fund Holdings

SEC EDGAR holds every insider trade, ownership stake and fund holdings report filed in the US, but in its raw form that is millions of XML and text documents. AuraStream turns them into time series you can request by ticker, each row stamped at the moment the filing became public, so you can backtest on them without look-ahead.

What you get

  • Insider trades (Form 4): open-market purchases and sales with shares and value, the insider’s role, holdings afterwards and whether the trade was under a 10b5-1 plan.
  • Planned insider sales (Form 144): who intends to sell, how many shares, the planned date and the broker. Electronic filings from 2023.
  • 5% ownership stakes (Schedules 13D and 13G): filer, percent of class, and whether the holder is activist (13D) or passive (13G).
  • Institutional holdings (Form 13F): every position of a manager by quarter, requested by the manager’s CIK (for example 1067983 for Berkshire Hathaway).
  • Mutual fund and ETF holdings (Form N-PORT): full portfolios, net assets and quarterly flows, requested by fund ticker such as SPY or ARKK. From late 2019.
  • Also: fund proxy votes (Form N-PX), 8-K events including earnings releases, reported financials from XBRL, and fails-to-deliver.

Example: insider purchases and sales

import requests
import pandas as pd

URL = "https://api.aurastream.unbiased-alpha.com/timeseries"
HEADERS = {"x-api-key": "YOUR_AURASTREAM_API_KEY"}

data = requests.post(URL, headers=HEADERS, json={
    "tickerlist": ["AAPL"],
    "start": "2024-01-01",
    "end": "2025-01-01",
    "interval": "1d",
    "source": "edgar",
    "dataset": "insider",
    "credentials": {"user_agent": "Your Company contact@yourcompany.com"},
}).json()

trades = pd.DataFrame.from_dict(data["AAPL"], orient="index")
print(trades[["owner", "officer_title", "buy_value", "sell_value", "plan_10b5_1"]])

The SEC asks every automated request to identify the sender with a name and contact email. That is the user_agent above: no registration or SEC key is needed. Change dataset to "144", "13dg", "13f", "nport", "events", "earnings", "financials" or "ftd" for the other filings.

From Claude or ChatGPT

With the AuraStream MCP server you can ask an assistant “Which Apple insiders sold shares in 2024, and were the sales under 10b5-1 plans?” and it fetches the filings itself. Add https://aurastream.unbiased-alpha.com/mcp to your client with your API key, or install it with pip install aurastream-mcp.

Pricing

The free plan includes 500 calls a month without a credit card. EDGAR content is free to reuse under SEC policy.

Get a free API key EDGAR source documentation

Questions

How are the rows timestamped?

At the SEC acceptance time of each filing, which is when it became public. Fails-to-deliver rows are the exception: they are stamped at the settlement date and published about two weeks after each half-month period.

Can I get a hedge fund’s 13F holdings over several years?

Yes, by the manager’s CIK. Large managers file thousands of positions per quarter, so request a year or less at a time.

Is this real-time data?

No. AuraStream is a historical data API. Filings appear once the SEC has accepted them.