SEC Insider Trading Scraper & Form 4 API: Insider Buying Data avatar

SEC Insider Trading Scraper & Form 4 API: Insider Buying Data

Pricing

from $2.50 / 1,000 insider trade saveds

Go to Apify Store
SEC Insider Trading Scraper & Form 4 API: Insider Buying Data

SEC Insider Trading Scraper & Form 4 API: Insider Buying Data

Every insider buy and sell from SEC Form 4 filings on EDGAR: ticker, insider name and title, shares, price, trade value, shares owned after, % change in holding and 10b5-1 plan flag. Daily feed, any ticker or insider, history back to 2003. No API key.

Pricing

from $2.50 / 1,000 insider trade saveds

Rating

0.0

(0)

Developer

Epic Scrapers

Epic Scrapers

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

17 days ago

Last modified

Features

Limited permissions

Share

SEC Insider Trading Scraper & Form 4 API: every insider buy and sell from EDGAR, as a daily feed or a full history

SEC Insider Trading Scraper turns SEC Form 4 filings into clean insider trading data: open market buys and sells by CEOs, directors and 10% owners, with price, value and holdings after the trade

SEC Insider Trading Scraper turns SEC Form 4 filings into a spreadsheet of insider trades. Every time a CEO, CFO, director or 10% owner buys or sells their company's stock, they must file a Form 4 with the SEC within two business days. This Actor reads those filings straight from EDGAR and gives you one clean row per trade: ticker, insider name and title, shares, price, trade value, shares owned after the trade, the % change in their holding, and whether it was a pre-planned 10b5-1 trade.

Use it as an insider trading tracker for the whole market, for a watchlist of tickers, or for specific insiders and funds. It works like OpenInsider or secform4, but as raw data you can filter, schedule and feed into your own tools, and it's a simpler alternative to the SEC EDGAR API, which gives you the XML filings but not a table of trades.

  • Insider buying and selling, without the noise. By default you get open market purchases (P) and sales (S), the trades insiders make with their own money. Option grants, RSU vesting and tax withholding, about two thirds of all Form 4 lines, are left out unless you ask for them.
  • One row per trade. A sale filled at 27 prices is one row with the total shares, the weighted average price and the price range, not 27 rows.
  • Filter by role and size. Only CEOs, only CFOs, only directors or 10% owners, only trades over $100,000, only trades outside a 10b5-1 plan.
  • A daily feed. Turn on Only new filings, save the input as a task and schedule it. Each run returns only the trades filed since the last one.
  • History back to 2003. Every Form 4 filed electronically, for any ticker or the whole market.
  • $4 per 1,000 trades, no start fee. Filings that don't match your filters are free. Official SEC data, no API key, no proxy.

What can you do with SEC Insider Trading Scraper?

GoalHow
Find stocks insiders are buyingRun the whole market with Transaction types = Open market purchase and Minimum trade value = 100,000. Group by ticker to spot several insiders buying the same stock.
Track insider trading at companies you ownPut your tickers in Tickers (for example NVDA, TSLA, AAPL) and schedule a daily run with Only new filings.
Follow an investor or fundPut a name or CIK in Insiders, for example Berkshire Hathaway or Musk Elon, to see every purchase and sale they report.
Get alertsSend each run's new trades to Slack, email or Google Sheets with Apify integrations, Make, Zapier or n8n.
Backtest insider signalsPull years of history for a ticker list and join transactionDate, pricePerShare and ownershipChangePercent with your price data.
Write a newsletter or screen ideasA weekly run of the largest CEO and director purchases is a ready-made "insider buying this week" list.
Compliance and researchEvery row links to the filing on sec.gov (filingUrl) and carries its footnotes and accession number.

Quick start

  1. Click Try for free and sign in to Apify.
  2. Leave the defaults for a first run: open market purchases and sales filed in the last 7 days, all companies, up to 100 rows.
  3. Click Start. When the run finishes, open the Output tab and export to CSV, Excel or JSON.
{
"daysBack": 7,
"transactionTypes": ["P", "S"],
"maxResults": 100
}

Only insider buying by CEOs and CFOs, over $50,000, in the last 30 days:

{
"daysBack": 30,
"transactionTypes": ["P"],
"insiderRoles": ["ceo", "cfo"],
"minValue": 50000,
"maxResults": 0
}

How it compares

What you needSEC Insider Trading ScraperOpenInsider, secform4SEC EDGAR API
DataEvery Form 4, from EDGARForm 4, from EDGAREvery filing, as raw XML
FormatRows in JSON, CSV, Excel, or through the APIWeb pages, some CSVXML per filing, you parse it
One row per trade (lots merged, weighted price)Yes, or every line as filedYesNo
Filter by ticker, insider, role, value, typeYesYesBy company or filer only
10b5-1 plan flagYes (checkbox and footnotes)PartlyYou parse it
Only new trades on each runYes, per taskNoYou track it
HistoryBack to 2003VariesBack to 2003
Schedules, webhooks, Sheets, SlackYes, built into ApifyNoYou build it

What data can you extract?

Every row is one trade, with the company and the insider on it:

GroupFields
TradetransactionDate, transactionCode, transactionType, acquiredDisposed, shares, pricePerShare, priceMin, priceMax, value, transactionCount
HoldingsharesOwnedAfter, ownershipChangePercent, directOrIndirect, ownershipNature (for example "by Trust")
Planis10b5One (trade made under a Rule 10b5-1 trading plan)
Companyticker, companyName, companyCik, sicCode
InsiderinsiderName, insiderCik, insiderTitle, officerTitle, isDirector, isOfficer, isTenPercentOwner, reportingOwners (everyone on a joint filing)
SecuritysecurityTitle, isDerivative, exercisePrice, expirationDate, underlyingSecurity, underlyingShares
FilingfilingDate, formType, isAmendment, accessionNumber, filingUrl, xmlUrl, footnotes, remarks, scrapedAt

Form 4 transaction codes

Every Form 4 line has a one-letter code. Pick the ones you want in Transaction types; each row also has the code (transactionCode) and its meaning (transactionType).

CodeMeaningSignal
POpen market or private purchaseThe insider spent their own money. The one most investors watch.
SOpen market or private saleOften planned (see 10b5-1) or for taxes and diversification.
AGrant or award from the companyCompensation, not a decision to buy.
MExercise or conversion of an option or RSUOften followed by an S or F line the same day.
FShares withheld to pay tax or the exercise priceAutomatic.
GGiftOften to family trusts or charity.
DSale or transfer back to the companyBuybacks, forfeitures.
CConversion of a derivative security
X / OExercise of an in-the-money / out-of-the-money derivative
JOther acquisition or disposition (explained in a footnote)
I, W, L, E, H, K, U, ZDiscretionary, inheritance, small acquisition, derivative expirations, equity swap, tender, voting trustRare.

What is a 10b5-1 plan, and why filter it out?

A Rule 10b5-1 plan is a trading plan an insider sets up in advance: sell 10,000 shares on the first of every month, for example. Trades under the plan happen automatically, so they say little about what the insider thinks of the stock today. Since April 2023, Form 4 has a checkbox for these trades, and many filers also name the plan in a footnote.

is10b5One is true when either is present. Turn on Exclude 10b5-1 plan trades to keep only trades the insider decided on at the time. In our test week, half of open market sales were plan trades.

Insider buying feed: get new trades every day

1. Save your input as a task

Set your filters, turn on Only new filings, then click Save as a new task. Each task keeps its own memory of the filings it has returned, so you can have one task for your watchlist and another for market-wide CEO buying.

2. Schedule it

In Apify Console, open Schedules, click Create new and add your task. Insiders file through the day and EDGAR publishes until 10 pm Eastern, so an evening or early-morning run catches each business day. See Schedules.

Use caseFrequencyCron expression
Watchlist alertsEvery 2 hours on weekdays0 */2 * * 1-5
Daily insider buying listEvery morning0 7 * * *
Weekly newsletterSaturday0 8 * * 6

3. Send the trades somewhere

Use the task's Integrations tab for Google Sheets, Slack, email, Make, Zapier, n8n or a webhook. A run with no new trades has an empty dataset, which is easy to filter out.

Input reference

FieldTypeDefaultEffect
tickersArray of stringsAll companiesTickers such as NVDA or BRK.B, or company CIK numbers.
insidersArray of stringsAll insidersInsider names as filed (last name first, for example Musk Elon) or their CIK numbers. Funds work too (Berkshire Hathaway).
daysBackInteger7Filing dates in the last N days, counting today. Ignored when startDate is set.
startDate, endDateDateEmptyFiling date range, YYYY-MM-DD, any date from mid-2003.
transactionTypesArray of codes["P", "S"]Form 4 transaction codes to keep (see the table above). Empty keeps every type.
insiderRolesArrayAllceo, cfo, officer, director, tenPercentOwner, other. CEO and CFO are matched on the officer title (CEO, President, Principal Executive Officer; CFO, Treasurer, Principal Financial Officer).
minValueInteger0Only trades worth at least this many US dollars.
excludePlannedTradesBooleanfalseDrop trades made under a 10b5-1 plan.
includeDerivativeTransactionsBooleanfalseAlso return option, RSU and warrant lines from the derivative table.
includeAmendmentsBooleanfalseAlso return Form 4/A amendments.
combineTransactionsBooleantrueOne row per trade (same security, day, type and holding). Off returns every line as filed.
onlyNewFilingsBooleanfalseSkip filings returned by earlier runs of the same task.
maxResultsInteger100Maximum rows. 0 means no limit.

Ready-to-run examples

NVDA insider trading this year

{
"tickers": ["NVDA"],
"startDate": "2026-01-01",
"maxResults": 0
}

Add "transactionTypes": [] to see grants, option exercises and gifts too.

Insider trading at your watchlist, every day

{
"tickers": ["NVDA", "TSLA", "AAPL", "MSFT", "AMZN"],
"daysBack": 3,
"onlyNewFilings": true,
"maxResults": 0
}

Save it as a task and schedule it daily.

Large insider purchases outside 10b5-1 plans

{
"daysBack": 7,
"transactionTypes": ["P"],
"minValue": 250000,
"excludePlannedTrades": true,
"maxResults": 0
}

Berkshire Hathaway purchases and sales

{
"insiders": ["Berkshire Hathaway"],
"startDate": "2024-01-01",
"maxResults": 0
}

CEO selling over $1 million

{
"daysBack": 30,
"transactionTypes": ["S"],
"insiderRoles": ["ceo"],
"minValue": 1000000,
"maxResults": 0
}

A full year of insider trading data for backtesting

{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"transactionTypes": ["P", "S"],
"maxResults": 0
}

The Actor reads about 7 filings a second (the SEC's fair-access limit is 10), so a full year of the whole market takes 4 to 6 hours. Tickers and insiders are much faster: only their filings are downloaded.

For AI agents

Call epicscrapers/sec-insider-trading-scraper. With no input it returns open market purchases and sales filed in the last 7 days, market-wide:

{ "tickers": ["NVDA"], "daysBack": 90, "transactionTypes": ["P", "S"], "maxResults": 50 }

Optional: insiders (names as filed or CIKs), insiderRoles (ceo, cfo, officer, director, tenPercentOwner), minValue (USD), excludePlannedTrades, startDate/endDate (YYYY-MM-DD), transactionTypes: [] for every Form 4 code, includeDerivativeTransactions.

One row per trade. Key fields: ticker, companyName, insiderName, insiderTitle, transactionDate, transactionCode (P buy, S sell), shares, pricePerShare, value, sharesOwnedAfter, ownershipChangePercent, is10b5One, filingDate, filingUrl. Unknown tickers are logged and skipped.

SEC EDGAR API alternative: use it from code or an MCP server

The SEC's own EDGAR API gives you each Form 4 as an XML file. This Actor does the searching, downloading, parsing and merging, and returns trades as JSON. Call it through the Apify API or the JavaScript and Python clients:

from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("epicscrapers/sec-insider-trading-scraper").call(run_input={
"daysBack": 7,
"transactionTypes": ["P"],
"minValue": 100000,
"maxResults": 0,
})
for t in client.dataset(run["defaultDatasetId"]).iterate_items():
print(t["transactionDate"], t["ticker"], t["insiderName"], t["insiderTitle"], t["value"])

Or in one HTTP call that waits for the run and returns the trades:

curl -X POST "https://api.apify.com/v2/acts/epicscrapers~sec-insider-trading-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"tickers": ["TSLA"], "daysBack": 365, "maxResults": 0}'

AI assistants such as Claude, ChatGPT or Cursor can use it as a tool through the Apify MCP server (add epicscrapers/sec-insider-trading-scraper).

Output

Results go to the run's default dataset. The Insider trades view shows the main columns, Trade details the price range, holding type and footnotes. Export as JSON, CSV, Excel, XML or HTML.

A real row from the test week (filed 2026-10-27):

{
"filingDate": "2026-10-27",
"transactionDate": "2026-10-26",
"ticker": "NPB",
"companyName": "NORTHPOINTE BANCSHARES INC",
"companyCik": "1336706",
"insiderName": "Williams Charles Alan",
"insiderCik": "2057567",
"insiderTitle": "CHAIRMAN & CEO, Director",
"isDirector": true,
"isOfficer": true,
"isTenPercentOwner": false,
"officerTitle": "CHAIRMAN & CEO",
"transactionCode": "P",
"transactionType": "Open market purchase",
"acquiredDisposed": "Acquired",
"shares": 50000,
"pricePerShare": 15.3235,
"priceMin": null,
"priceMax": null,
"value": 766175,
"sharesOwnedAfter": 2575962,
"ownershipChangePercent": 1.98,
"directOrIndirect": "Indirect",
"ownershipNature": "By trust",
"securityTitle": "Common Stock",
"isDerivative": false,
"exercisePrice": null,
"expirationDate": null,
"underlyingSecurity": null,
"underlyingShares": null,
"is10b5One": false,
"transactionCount": 1,
"footnotes": "Reflects shares of common stock held by the Charles A Williams TR Charles A Williams Trust.",
"remarks": null,
"reportingOwners": [
{
"name": "Williams Charles Alan",
"cik": "2057567",
"title": "CHAIRMAN & CEO, Director"
},
{
"name": "Charles A Williams TR Charles A Williams Trust",
"cik": "2056588",
"title": "10% Owner"
}
],
"formType": "4",
"isAmendment": false,
"accessionNumber": "0001336706-26-000080",
"filingUrl": "https://www.sec.gov/Archives/edgar/data/1336706/000133670626000080/xslF345X06/wk-form4_1793131769.xml",
"xmlUrl": "https://www.sec.gov/Archives/edgar/data/1336706/000133670626000080/wk-form4_1793131769.xml",
"sicCode": "6022",
"scrapedAt": "2026-11-07T15:39:07.668Z"
}

Notes on fields

  • filingDate is when the Form 4 reached the SEC; transactionDate is when the trade happened (up to two business days earlier, sometimes more for late filers).
  • pricePerShare is the weighted average when lines were merged; priceMin and priceMax give the range. value is shares × price, summed over the lines.
  • sharesOwnedAfter is what the insider holds of that security after the trade, in that form of ownership. Indirect holdings (a trust, a fund) are counted separately from direct ones, so the same insider can have several rows on one day.
  • ownershipChangePercent compares the trade with the holding before it: +100 means the insider doubled their position, -50 means they sold half.
  • Names are as filed with the SEC, usually last name first (MUSK ELON).
  • On joint filings (a fund and its general partner, for example), insiderName is the first filer and reportingOwners lists all of them.
  • Values are as filed. Filers make mistakes (our test week had a "purchase" of 3.1 million shares at $3,149 each, $9.9 billion), so sanity-check outliers against filingUrl before acting on them.
  • Missing values are null.

FAQ

How quickly do insider trades show up?

Insiders must file a Form 4 within two business days of the trade. EDGAR makes filings searchable within minutes, and the Actor reads EDGAR directly, so a scheduled run sees a trade as soon as it is filed.

How many insider trades are there?

EDGAR receives roughly 250 to 850 Form 4 filings each business day, more in the weeks after earnings, when trading windows open. In our test week (October 26 to November 1, 2026), 1,436 filings had 753 open market purchases and sales: 238 purchases and 515 sales.

Why are most Form 4 lines not returned?

Most Form 4 lines are compensation: grants (A), option and RSU exercises (M) and shares withheld for tax (F). They are on the form because insiders must report every change in their holdings, but they aren't buying or selling decisions. Add those codes in Transaction types, or leave the field empty, to get everything.

Can I search by ticker or by person?

Yes. Tickers takes symbols (or company CIKs) and Insiders takes names as filed or CIKs. Both can be combined: "tickers": ["TSLA"], "insiders": ["Musk Elon"] returns only Elon Musk's Tesla trades.

What is insider trading, and is this illegal insider trading?

In this context, insider trading means the legal, reported trades of company officers, directors and large shareholders in their own company's stock. Form 4 filings exist so these trades are public. Illegal insider trading, trading on material non-public information, is a different thing and doesn't show up as a labeled filing.

Does it include Form 3, Form 5 and Form 144?

No, only Form 4 and, optionally, Form 4/A. Form 3 is a new insider's first holdings report, Form 5 an annual catch-up, and Form 144 a notice of a planned sale.

Do I need an SEC API key?

No. EDGAR is public and needs no key. The Actor follows the SEC's fair-access rules (a named user agent and under 10 requests a second).

How do "Only new filings" and schedules work together?

The Actor remembers the accession numbers it has returned, per task, in a key-value store in your account (sec-insider-trading-scraper-seen). The next run of the same task skips those filings, so each trade reaches you once. A filing is only remembered once all of its rows were saved, so a run stopped by your spending limit picks up the rest next time.

Why did my run stop before reaching the limit?

If the log says the charge limit was reached, the run hit its maximum cost or your account's spending limit. Everything collected before that is saved.

Cost

Pay per trade saved. Searching, downloading and filtering filings is free, so a narrow filter over a long period costs only what it returns.

EventPricePer 1,000Charged when
Insider trade saved$0.004$4A trade that matched your filters is saved. Higher Apify plans pay less (down to $0.0025).
RunRowsCost
Default input: last 7 days, purchases and sales, first 100100$0.40
A full week market-wide, purchases and sales753$3.01
A full week market-wide, purchases only238$0.95
CEO purchases in a week35$0.14

Prices are for the Free plan. The test week was October 26 to November 1, 2026; it took about 3.5 minutes.