SEC EDGAR is the canonical upstream source for both Crunchbase's early-stage US funding rounds (Form D) and OpenInsider's corporate insider buying feeds (Form 4) — and its official XML/JSON feeds are completely free. Instead of scraping HTML tables or paying enterprise data-broker fees, developers and quant teams can parse SEC Form D, Form 4, and Form 8-K filings directly in Go or Python.
However, raw EDGAR APIs have subtle quirks that silently drop filings, corrupt position-change math, and flood startup feeds with SPVs. After building FilingSignal (sec-edgar-funding-insider-mcp) and benchmarking live SEC runs on November 24, 2026, here are the five real-world engineering traps we uncovered and how to handle them in production.
Live Open SEC Dataset (Nov 2026): We parsed 33 SPV-filtered US startup Form D rounds, 47 VWAP-consolidated Form 4 insider trades, 3 multi-insider cluster buys, and 30 Form 8-K catalysts directly from official SEC EDGAR XML/JSON. Explore & download MIT CSV: Live SEC Form D & Form 4 Cluster Buys Explorer · Run locally via 6-tool MCP: npx -y github:yun87457-web/sec-edgar-funding-insider-mcp
| SEC Filing Feed | Raw Filings / Rows | Clean Signal Output | Key Normalization Applied |
|---|---|---|---|
| Form D (Startup Raises) | ~130 raw Reg D filings |
33 US operating startups | Dual-layer SPV / 3(c)(7) fund classifier stripped ~75% fund noise |
| Form 4 (Insider Trades) | Multi-fill XML transactions | 47 VWAP-consolidated trades | Partial fills merged (e.g., TYL 9 fills -> 1 row,$8.27M ) |
| Form 4 Cluster Buys | Multi-insider open-market buys | 3 cluster buy signals | Grouped by issuer + window + OTC kill-switch filter |
| Form 8-K (Catalysts) | Latest corporate event filings | 30 Form 8-K catalysts | -index.htm exhibit table lookup for opaqueEX-99.1 filenames |
forms=D,D/A & forms=4,4/A Query Bug Drops 99% of Filings
When querying https://efts.sec.gov/LATEST/search-index, passing comma-separated amendment syntax like forms=D,D/A or forms=4,4/A causes the search endpoint to silently miss almost all valid filings—dropping roughly 99% of expected results compared to querying base forms (forms=D, forms=4, forms=8-K) cleanly. Always verify hit counts against the daily SEC index and query base form codes rather than mixing /A amendments in a single EFTS parameter string.
When you fetch an accession number (adsh) from EFTS, the intuitive archive URL is https://www.sec.gov/Archives/edgar/data/{ciks[0]}/{adsh_nodash}/.... In practice, 72.6% of filings submitted via third-party filing agents or multi-entity trusts fail with HTTP 404 on ciks[0] because the archive directory is keyed under a secondary CIK in the ciks array. Your fetcher must iterate through ciks[0..n] before constructing the {adsh} XML path, falling back cleanly if the primary filer CIK isn't the archive owner.
Roughly three-quarters of raw Form D filings are not operating startups—they are AngelList syndicates, Sydecar SPVs, StartEngine crowdfunding vehicles, Delaware series LLCs, and Investment Company Act 3(c)(7) / 3(c)(1) pooled investment funds. Without filtering both structured XML fields (investmentFundInfo.isInvestmentFundType, federalExemptionsExclusions) and entity-name / industry-group heuristics, any "newly funded startups" feed becomes unusable for VC sourcing or B2B sales.
NaN/ Inf Guards & OTC Kill-Switch
One executive buy order frequently executes across 5–15 partial broker fills inside a single Form 4 XML (nonDerivativeTransaction), splitting a single trade into noisy rows. Consolidating fills by (insider, transactionCode, transactionDate) with volume-weighted average price (VWAP) collapses fragments cleanly—for example, merging 9 partial fills on TYL into 1 unified $8.27M row.
Two additional safeguards are mandatory for quant pipelines:
preShares == 0 0 prior shares. Computing delta / preShares without a zero guard throws company_tickers_exchange.json OTC kill-switch:Nasdaq, NYSE, or CBOE and drops OTC penny stocks before cluster-buy scoring.EX-99.1 Opaque Filename Discovery via -index.htm
Press releases and material event exhibits (Item 2.02, Item 7.01, Item 8.01) are rarely named ex99-1.htm. Filers upload arbitrary slugs like d849201dex991.htm or q3earningsrelease.htm. Reliable Form 8-K extraction requires fetching the filing's -index.htm table first, locating the row labeled EX-99.1, and resolving its exact href.
You can run the full Go/Python pipeline with built-in SPV filtering, multi-CIK fallback, VWAP consolidation, and SEC User-Agent rate limiting directly via apify-client:
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
form_d_run = client.actor("spiky_closet/sec-funding-insider-mcp").call(run_input={
"mode": "form_d_startups",
"lookbackDays": 7,
"minRaisedUsd": 500000,
"excludeFundsAndSpvs": True,
"maxResults": 35,
})
for deal in client.dataset(form_d_run["defaultDatasetId"]).iterate_items():
print(
f"{deal['issuerName']} ({deal.get('state')}) | "
f"raised=${deal.get('totalAmountSold', 0):,.0f} | "
f"filed={deal['filingDate']}"
)
cluster_run = client.actor("spiky_closet/sec-funding-insider-mcp").call(run_input={
"mode": "form_4_cluster_buys",
"lookbackDays": 14,
"excludeOtc": True,
"minTotalBuyUsd": 100000,
})
for cluster in client.dataset(cluster_run["defaultDatasetId"]).iterate_items():
print(
f"{cluster['ticker']} | insiders={cluster['insiderCount']} | "
f"total=${cluster['totalValueUsd']:,.0f} | vwap=${cluster['vwapPrice']:.2f}"
)
Connect all 6 SEC EDGAR tools (Form D startups, Form 4 VWAP insider buys, cluster-buy detector, Form 8-K EX-99.1 catalysts, CIK/ticker resolver, and filing inspector) locally with zero Python environment setup:
{
"mcpServers": {
"sec-edgar-funding-insider": {
"command": "npx",
"args": ["-y", "github:yun87457-web/sec-edgar-funding-insider-mcp"]
}
}
}
transactionDate vs. filingDate). npx): spiky_closet/sec-funding-insider-mcp):