Quickstart
Five minutes from key to first answer. Base URL: https://api.form4lens.com. Interactive OpenAPI docs: https://api.form4lens.com/docs.
1. Authenticate
Send your key in the X-API-Key header. Self-serve checkout is not live yet; request a key at mjpozz@gmail.com.
curl -H "X-API-Key: $API_KEY" \ "https://api.form4lens.com/v1/insider-transactions?side=buy&plan=exclude&min_value=100000&limit=5"
Responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-Plan. Over the limit you get 429 with Retry-After.
2. Endpoints
| Endpoint | What it returns | Key params |
|---|---|---|
GET /v1/insider-transactions | Form 4 rows, newest filing first | ticker, insider_cik, side, code, plan (any|only|exclude), since, until, min_value, as_of, with_footnotes, include_derivative, include_superseded |
GET /v1/insider-clusters | Cluster buying with signal_at and nearby 8-Ks | window_days, min_insiders, since, until, as_of, exclude_plan, exclude_ten_percent_only, min_value_per_trade, ticker |
GET /v1/8k-events | 8-K filings, one row per item | ticker, item, category, since, until, as_of, insider_window_days |
GET /v1/company/{ticker} | Buys/sells summary, plan vs discretionary selling, recent trades, clusters, 8-Ks | days, as_of |
GET /v1/filings/{accession} | One parsed filing with footnotes and amendment chain |
3. The 10b5-1 fields
| plan.status | Meaning | is_10b5_1 |
|---|---|---|
checkbox_and_footnote | Filing checkbox ticked and a footnote on this row mentions Rule 10b5-1 | true |
footnote_only | Row footnote mentions a 10b5-1 plan but the box is not ticked (often a plan adopted before the 2023 amendments) | true |
checkbox_only | Box ticked, no 10b5-1 footnote anywhere. The box covers the whole filing, so this row may not be a plan trade | true |
checkbox_and_unreferenced_footnote / unreferenced_footnote_only | A 10b5-1 footnote exists in the filing but is not attached to any row | true |
explicitly_not_plan | Row footnote says the trade was not under a 10b5-1 plan | false |
none | No signal | false |
plan.attribution is transaction when the evidence is attached to the row and document when it only applies to the filing as a whole. plan.adoption_date is extracted from footnote text when stated; plan.days_adoption_to_trade lets you check cooling-off periods yourself.
4. Point-in-time
Every row has accepted_at (UTC, from EDGAR's acceptance datetime). as_of=2026-11-10T14:30:00Z returns only filings accepted by then, and shows an original Form 4 rather than a later 4/A if the amendment came after that instant. Without as_of, amended filings are replaced by their latest amendment; add include_superseded=true to see both.
curl -H "X-API-Key: $API_KEY" \ "https://api.form4lens.com/v1/insider-clusters?min_insiders=3&window_days=14&as_of=2026-11-15"
5. Python
import requests
r = requests.get("https://api.form4lens.com/v1/company/NVDA",
headers={"X-API-Key": ""}, params={"days": 90})
s = r.json()["summary"]["open_market_sales"]
print(s["value"], "sold;", s["plan_share_of_value"], "of it under 10b5-1 plans")
6. MCP (Claude Desktop, Cursor, Claude Code)
A hosted MCP endpoint is not public yet. You can run the MCP server locally against your own checkout of the data:
{
"mcpServers": {
"form4lens": {
"command": "python",
"args": ["-m", "form4lens.mcp_server"],
"cwd": "/path/to/sec-api"
}
}
}
Tools: get_insider_transactions, get_insider_clusters, get_8k_events, get_company_insider_summary, get_filing.
7. Data notes
- Source: SEC EDGAR daily form indexes, full Form 4 submissions, 8-K
.hdr.sgmlheaders and company submissions JSON. Fetched with a declared User-Agent at 8 requests/second, under the SEC's 10/second limit. value= shares × price as reported. Weighted-average prices stay as reported; the price range is in the footnotes.- One insider per filing = the first reporting owner; joint filers are listed in
insider.joint_filers. - 4/A matching: same issuer, an overlapping reporting owner, original filed on the amendment's
dateOfOriginalSubmission. An amendment whose original is outside our window is kept but unlinked. - Tickers come from the SEC's company_tickers.json, falling back to the symbol in the filing.