EDGAR insider trades (Form 4)
GET /api/edgar-insider-tradesRecent Form 4 insider transactions filed against a company (officer, director, or 10% holder trades). Send GET /api/edgar-insider-trades with no required fields (4 optional) and pay $0.005 per call over x402 or MPP (there is no free tier). It returns a JSON object with cik, name, windowDays, total, returned and 1 more.
Backed by EDGAR's full-text search (efts.sec.gov) filtered by subject-company CIK - Form 4 is owned by each insider's CIK, not the company's, so this is the only single-call path. ?ticker=AAPL&days=30
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | no | US stock ticker (alternative to cik) |
cik | string | no | SEC CIK of the subject company (alternative to ticker) |
days | number | no | Lookback window in days, 1-365 (default 30) |
limit | number | no | Max filings to return, 1-100 (default 25) |
Example request
curl -i "https://agent402.tools/api/edgar-insider-trades?ticker=AAPL&days=30"
Without payment this returns HTTP 402 Payment Required with the exact price for edgar-insider-trades; any x402 v2 or MPP client pays it and retries.
Example response
{
"cik": "0000320193",
"name": "Apple Inc.",
"windowDays": 30,
"total": 8,
"returned": 8,
"trades": [
{
"accessionNumber": "0001127602-25-009999",
"form": "4",
"filedDate": "2025-11-04",
"cik": "0001214128",
"displayNames": [
"COOK TIMOTHY D (CIK 0001214128)"
],
"url": "https://www.sec.gov/Archives/edgar/data/1214128/000112760225009999/xslF345X05/wf-form4.xml",
"primaryDocument": "xslF345X05/wf-form4.xml"
}
]
}
| Field | Type | Always present | In the example |
|---|---|---|---|
cik | string | yes | 0000320193 |
name | string | yes | Apple Inc. |
windowDays | number | yes | 30 |
total | number | yes | 8 |
returned | number | yes | 8 |
trades | array of objects | yes | 1 item in the example |
From an MCP client
catalog.call {
"slug": "edgar-insider-trades",
"params": {
"ticker": "AAPL",
"days": 30
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for edgar-insider-trades; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
POSTwith a JSON body to /api/edgar-insider-trades is served as this GET, with the body as the input. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/edgar-insider-trades?ticker=AAPL&days=30");
Part of these workflows
EDGAR insider trades (Form 4) is one step in these 5 skill packs, each sold as a single call:
- Financial research - Pull SEC filings, the latest close, historical prices, and macro context for a single ticker in one pass.
- SEC filings deep-dive - Pull the full EDGAR picture of a US public company in one workflow: recent filings, key financial time series, insider trades, and full-text search across the corpus.
- SEC regulatory monitoring - The 'who just filed / who just bought / what just IPO'd / what does the full-text search say' monitoring loop. Five EDGAR tools composed: full-text search for a keyword, surface recent filings on the matched companies, pull insider Form 4 transactions, pull 13F institutional holdings changes, and check the IPO calendar. Different from sec-filings-deep-dive (which goes deep on one company's earnings) - this is the wide-and-recent radar.
- Company dossier - Comprehensive company research report in one call: latest close, financials, SEC filings, insider trades, and recent news - all in parallel.
- Insider alert - Insider buying/selling activity for a stock: Form 4 trades, the latest close, and recent SEC filings in one call.
Related tools
Insider flow report (Form 4 transactions)
POST /v1/insider-reportName a US ticker and get one cited insider-flow report: every Form 4 against the company in the window with the actual t…
EDGAR recent filings
GET /api/edgar-filingsRecent SEC filings for a company by ticker or CIK, newest first. Optionally filter by form type (10-K, 10-Q, 8-K, 4, S-1…
Ticker pack: dossier, insider flow and institutional holders
POST /v1/ticker-packOne ticker, one purchase, the full picture. Runs the company due-diligence dossier (SEC filings, XBRL financials, ground…
Company financials summary
GET /api/company-financialsKey financial metrics (Revenue, Net Income, Operating Income, Total Assets, Liabilities, Equity, EPS, Operating Cash Flo…
EDGAR Form 13F data set head (one table, bounded)
GET /api/edgar-13f-dataset-headA bounded head of ONE table in a Form 13F data set, read with two byte-range requests against sec.gov (the archive's cen…
EDGAR Form 13F data sets (index)
GET /api/edgar-13f-datasetsThe SEC's bulk Form 13F Data Sets: every quarterly (2013Q2-2023Q4) and rolling three-month (2024-) archive the SEC publi…