SEC Form 4 Insider Trading Scraper & XML Parser API avatar

SEC Form 4 Insider Trading Scraper & XML Parser API

Pricing

from $5.00 / 1,000 extracted insider transactions

Go to Apify Store
SEC Form 4 Insider Trading Scraper & XML Parser API

SEC Form 4 Insider Trading Scraper & XML Parser API

Extract real-time SEC EDGAR Form 4 insider trading filings and parse raw XML into clean JSON, CSV, or Excel. Track CEO, CFO, Director & 10% Owner open-market stock purchases (P) and sales (S), exact share counts, prices, and total dollar values. Built for n8n, Make & MCP AI agents.

Pricing

from $5.00 / 1,000 extracted insider transactions

Rating

0.0

(0)

Developer

Mehdad Sharifi

Mehdad Sharifi

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Security

Limited permissions

Share

SEC Form 4 Insider Trading Scraper & XML Parser API (Exact Shares, Price & Dollar Value)

Extract real-time SEC EDGAR Form 4 insider trading transactions directly into clean JSON, CSV, or Excel datasets. Unlike basic index scrapers that only give you a link to a messy SEC filing, this Actor parses the raw Form 4 XML to deliver exact Insider Names, Executive Titles (CEO, CFO, Director, 10% Owner), Transaction Codes (P Buy / S Sell), Share Counts, Share Prices, Total Dollar Values ($), and Post-Trade Holdings.

Built for algorithmic traders, financial newsletters, hedge fund analysts, n8n and Make automation workflows, and AI agents (Claude MCP / Cursor)—with zero SEC API keys or residential proxies required.


Why Choose This SEC Form 4 Insider Trading Scraper?

FeatureWhat You Get
Deep XML Transaction ParsingAutomatically strips SEC XSLT wrappers and parses raw XML nonDerivativeTransaction and derivativeTransaction nodes into flat, ready-to-use rows.
Calculated Dollar Value FilterFilter out tiny administrative trades and extract only high-conviction insider buys (e.g., minDollarValue: $50,000+).
Open Market Buy/Sell FilteringIsolate genuine open-market purchases (P) and sales (S) from routine stock awards (A) or tax withholdings (F) with one click.
Zero Proxy or API Key CostsConnects directly to official SEC EDGAR endpoints with compliant rate-limiting—keeping your run costs near zero.
AI Agent & MCP Server ReadyPlug directly into Claude Desktop, Cursor, LangChain, n8n, Make, or Zapier for automated daily C-suite cluster-buy alerts.

What Data Does This Actor Extract? (Sample JSON Output)

Every insider trade inside a Form 4 filing is flattened into its own structured record:

{
"ticker": "NVDA",
"companyName": "NVIDIA CORP",
"cik": "0001045810",
"filingDate": "2026-10-28",
"transactionDate": "2026-10-26",
"insiderName": "HUANG JEN HSUN",
"insiderRole": "President and CEO, Director",
"insiderCik": "0001197649",
"isOfficer": true,
"isDirector": true,
"isTenPercentOwner": false,
"securityType": "Common Stock",
"isDerivative": false,
"transactionCode": "P",
"transactionLabel": "Open Market Purchase",
"acquiredOrDisposed": "Acquired (Buy/Add)",
"shares": 25000.0,
"pricePerShare": 138.5,
"totalDollarValue": 3462500.0,
"sharesOwnedAfterTrade": 75420000.0,
"ownershipType": "Direct",
"accessionNumber": "0001045810-26-000142",
"rawXmlUrl": "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000142/form4.xml",
"humanFilingUrl": "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000142/xslF345X05/form4.xml"
}

How to Use SEC Form 4 Insider Trading Scraper

  1. Enter Stock Tickers: Add one or more US stock tickers (e.g., NVDA, AAPL, TSLA, PLTR). The Actor resolves tickers to 10-digit SEC Central Index Keys (CIKs) automatically.
  2. Choose Transaction Codes: Keep the default ["P", "S"] to focus purely on open-market cash purchases and sales, or clear the list to capture all 20 SEC transaction codes (including M option exercises and A grants).
  3. Set Minimum Dollar Value: Optional—set minDollarValue (for example, 100000) to capture only trades worth $100,000 or more.
  4. Run & Export: Click Start and download your data in JSON, CSV, Excel, or XML, or pull it automatically via the Apify REST API.

SEC Form 4 Transaction Codes Reference

CodeMeaningSignal Strength for Traders
POpen Market PurchaseHighest Bullish Signal — Insider spent personal cash to buy shares on the open market.
SOpen Market SaleBearish / Liquidity Signal — Insider sold shares on the open market for cash.
MOption ExerciseModerate — Insider converted stock options into shares.
AGrant or AwardNeutral — Routine executive compensation package.
FTax WithholdingNeutral — Shares surrendered automatically to pay tax on vesting awards.

Transparent Pay-Per-Event Pricing

You only pay for the exact filtered insider transactions that match your criteria:

  • Actor Startup (apify-actor-start): $0.01 per run.
  • Extracted Transaction (transaction-extracted): $0.005 per parsed insider trade ($5.00 per 1,000 transactions).
  • Free Tier Friendly: With Apify's free $5.00 monthly credit, you can extract nearly 1,000 parsed insider trades every month for free.

Top Use Cases

  • Insider Cluster-Buy Alert Bots: Connect this Actor to n8n, Make, or Telegram and Discord webhooks to alert your trading community within minutes when 3+ executives buy shares in the same company.
  • Quantitative Alpha Models: Backtest and feed live C-suite net buy/sell dollar ratios into Python trading strategies.
  • Financial Newsletter Automation: Automatically generate "Top 10 CEO Stock Buys of the Week" tables for Substack or Beehiiv subscribers.
  • AI Financial Research Agents (MCP): Give Claude Desktop or Cursor live access to verified SEC Form 4 ownership filings via Apify's Model Context Protocol (MCP) server.

Frequently Asked Questions (FAQ)

What is SEC Form 4 Insider Trading?

SEC Form 4 (Statement of Changes in Beneficial Ownership) is a mandatory filing with the U.S. Securities and Exchange Commission whenever a company insider—such as a CEO, CFO, corporate officer, board director, or 10%+ beneficial shareholder—buys or sells shares in their own company. Insiders must file Form 4 within two business days of the transaction.

Why filter for Transaction Code P (Open Market Purchase)?

Most raw Form 4 filings are routine stock grants (Code A), option exercises (Code M), or tax withholdings (Code F). Transaction Code P isolates genuine Open Market Purchases where an executive spent their own personal cash to buy stock at current market prices—widely considered the strongest bullish insider signal in quantitative finance.

How can I connect this SEC Form 4 API to Python, Google Sheets, or n8n?

You can trigger this Actor via the official Apify REST API, the apify-client Python or JavaScript SDK, or the native Apify integration node inside n8n, Make, and Zapier to stream parsed insider trades directly into Google Sheets, Slack, Telegram, or PostgreSQL.


Explore Our Complete SEC EDGAR & B2B Intelligence API Suite