Quickstart
Five minutes from key to first answer. Base URL: https://api.form4lens.com. Interactive OpenAPI docs: https://api.form4lens.com/docs.
1. Try without a key
A public sample is available with no API key. It covers a short list of large-cap tickers (NVDA, AAPL, MSFT, TSLA, AMZN, META, GOOGL, JPM, PLTR, AMD, NFLX) and only filings EDGAR accepted at least 48 hours ago. Limits are 10 requests/minute and 50/day per client. It is meant for a quick look, not for production backtests.
curl "https://api.form4lens.com/v1/sample/insider-clusters?min_insiders=3" curl "https://api.form4lens.com/v1/sample/company/NVDA?days=90"
Need current data, other tickers, or point-in-time as_of replay? Request a key at [email protected].
2. Authenticate
Send your key in the X-API-Key header. Self-serve checkout is not live yet; request a key at [email protected].
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.
3. 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 |
4. 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.
5. 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"
6. 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")
7. Excel, Google Sheets, and n8n
There is no official add-on. The API expects an X-API-Key header, so spreadsheet IMPORTDATA / WEBSERVICE formulas will not work on their own.
Google Sheets. Use a short Apps Script function and call it from a cell, for example =FORM4LENS_CLUSTERS():
function FORM4LENS_CLUSTERS() {
const key = PropertiesService.getScriptProperties().getProperty("F4L_API_KEY");
const url = "https://api.form4lens.com/v1/insider-clusters?min_insiders=3&window_days=14&limit=20";
const res = UrlFetchApp.fetch(url, {headers: {"X-API-Key": key}});
const rows = [["ticker", "insiders", "value", "first", "last"]];
for (const c of JSON.parse(res.getContentText()).data) {
rows.push([c.issuer.ticker, c.insider_count, c.total_value, c.first_trade_date, c.last_trade_date]);
}
return rows;
}
Excel. In Power Query: New Source → Web → Advanced, paste the same URL, and add an HTTP header X-API-Key with your key. Expand the data list.
n8n. Use an HTTP Request node: method GET, URL https://api.form4lens.com/v1/insider-clusters, header X-API-Key. Self-hosted n8n can run this with no paid n8n plan. Zapier can do the same with a Webhooks by Zapier or Web API request, which may require a paid Zapier plan; we have not listed a Zapier app.
8. MCP (Claude Desktop, Cursor, Claude Code)
The hosted MCP server is at https://mcp.form4lens.com/mcp (Streamable HTTP). It uses the same API keys, rate limits, and usage counts as the REST API. Send your key in the X-API-Key header. The public sample endpoints are REST-only; MCP always requires a key.
{
"mcpServers": {
"form4lens": {
"url": "https://mcp.form4lens.com/mcp",
"headers": { "X-API-Key": "" }
}
}
}
To run it locally against your own checkout of the data (stdio, no key):
{
"mcpServers": {
"form4lens": {
"command": "python",
"args": ["-m", "form4lens.mcp_server"],
"cwd": "/path/to/form4lens"
}
}
}
Tools: get_insider_transactions, get_insider_clusters, get_8k_events, get_company_insider_summary, get_filing. Point-in-time as_of on the hosted server is a Pro feature, same as the API.
9. 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.