Docs

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 [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.

2. Endpoints

EndpointWhat it returnsKey params
GET /v1/insider-transactionsForm 4 rows, newest filing firstticker, insider_cik, side, code, plan (any|only|exclude), since, until, min_value, as_of, with_footnotes, include_derivative, include_superseded
GET /v1/insider-clustersCluster buying with signal_at and nearby 8-Kswindow_days, min_insiders, since, until, as_of, exclude_plan, exclude_ten_percent_only, min_value_per_trade, ticker
GET /v1/8k-events8-K filings, one row per itemticker, item, category, since, until, as_of, insider_window_days
GET /v1/company/{ticker}Buys/sells summary, plan vs discretionary selling, recent trades, clusters, 8-Ksdays, as_of
GET /v1/filings/{accession}One parsed filing with footnotes and amendment chain

3. The 10b5-1 fields

plan.statusMeaningis_10b5_1
checkbox_and_footnoteFiling checkbox ticked and a footnote on this row mentions Rule 10b5-1true
footnote_onlyRow footnote mentions a 10b5-1 plan but the box is not ticked (often a plan adopted before the 2023 amendments)true
checkbox_onlyBox ticked, no 10b5-1 footnote anywhere. The box covers the whole filing, so this row may not be a plan tradetrue
checkbox_and_unreferenced_footnote / unreferenced_footnote_onlyA 10b5-1 footnote exists in the filing but is not attached to any rowtrue
explicitly_not_planRow footnote says the trade was not under a 10b5-1 planfalse
noneNo signalfalse

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