Insider trades by API: SEC Form 4 data
Form 4 is the filing an officer, director or 10% holder makes after trading the company's stock. Agent402 reads those filings from SEC EDGAR and serves them by API, paid per call from an agent's wallet with no account or key.
List the Form 4 filings against a company
GET /api/edgar-insider-trades costs $0.005 a call. It takes ticker, cik, days and limit, and returns the Form 4 filings where the company is the issuer.
curl -i "https://agent402.tools/api/edgar-insider-trades?ticker=AAPL&days=30"The first answer is HTTP 402 with the price and the ways to pay. An x402 client signs the payment and sends the same request again; the answer is the list below.
What comes back
The top-level fields, cik, name, windowDays, total, returned, startDate, endDate and source, name the company, the window and the source. Each row in trades carries accessionNumber, form, filedDate, cik, displayNames, url and primaryDocument: url is the filing on sec.gov, and cik there is the insider's own filer number. The published example, shortened to one row, uses a made-up issuer, filer and accession number; a live answer names the company asked for:
{
"cik": "0000000000",
"name": "Example Issuer Inc.",
"windowDays": 30,
"total": 8,
"returned": 8,
"trades": [
{
"accessionNumber": "0000000000-00-000000",
"form": "4",
"filedDate": "2025-11-04",
"cik": "0000000001",
"displayNames": [
"EXAMPLE FILER A (CIK 0000000001)"
],
"url": "https://www.sec.gov/Archives/edgar/data/1/000000000000000000/xslF345X05/wf-form4.xml",
"primaryDocument": "xslF345X05/wf-form4.xml"
}
]
}Get the transactions, read and summarized
A filing row says who filed and when; the shares, prices and transaction codes are inside the filing. POST /v1/insider-report ($0.60 a call, model-backed) reads every Form 4 in the window, separates open-market buys and sales from awards, option exercises and tax withholding, totals them per insider and as a net flow, and a model writes a cited report with the transactions as a table. It runs as a job: send Prefer: respond-async, then poll the Location link it answers (free) until the report is ready.
curl -i -X POST https://agent402.tools/v1/insider-report \
-H 'Content-Type: application/json' \
-H 'Prefer: respond-async' \
-d '{"ticker":"AAPL","days":90}'People can buy the same report by card at Reports.
From an agent
Over MCP, the hosted connector at https://agent402.tools/mcp reaches each of them: catalog.find with a task such as "insider trades for a ticker" returns the route, its input schema and its price, and catalog.call runs it. Over HTTP, /api/find answers the same question.
Source and use
Form 4 filings are public records published by the U.S. Securities and Exchange Commission on EDGAR; each row of a live answer links the filing itself, so every figure can be checked at the source. Agent402 reads them with a declared User-Agent, as SEC's access rules ask. Agent402 is not affiliated with or endorsed by the SEC.
Information only, not investment advice. A Form 4 reports a trade after it happened, and says nothing about why it was made.