# SEC Form 4 Insider Trades Scraper (Buys, Sells & 10b5-1) (`guiltless_beanstalk/sec-insider-trades-form4`) Actor

Track SEC Form 4 insider buys & sells from EDGAR: ticker, insider, role, transaction code, shares, price, dollar value, holdings after & 10b5-1 flag. Filter by ticker, trade type, role & min value. Official SEC EDGAR data, no login, no API key.

- **URL**: https://apify.com/guiltless_beanstalk/sec-insider-trades-form4.md
- **Developed by:** [Professor](https://apify.com/guiltless_beanstalk) (community)
- **Categories:** Business, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 insider transactions

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SEC Insider Trades Tracker: Form 4 buys and sells

Track what company insiders (CEOs, CFOs, directors, 10% owners) are buying and selling. This Actor reads **SEC Form 4** filings directly from **EDGAR** and returns one clean row per transaction: ticker, insider name and title, buy or sell, shares, price, dollar value, shares owned after, and whether the trade was under a 10b5-1 plan.

No API key, no login. Official public SEC data, typically available within minutes of filing.

### Use cases

- **Insider-buying screens**: open-market purchases (code P) over $50k, the classic "insiders are buying" signal.
- **Watchlists**: daily insider activity for your tickers, piped to Sheets, Slack, Discord or email.
- **Quant and research datasets**: historical Form 4 transactions for backtests and dashboards.
- **Newsletters and fintech apps**: feed "notable insider trades of the day" content.

### Filters

| Filter | Example |
|---|---|
| Tickers | AAPL, NVDA, TSLA (empty = whole market) |
| Date range / look-back days | last 3 days |
| Transaction types | P (buy), S (sell), A (award), M (option exercise), F (tax withholding), G (gift)... default P + S |
| Insider roles | Director, Officer, 10% Owner |
| Minimum transaction value | 50000 |
| Include derivative transactions (options/RSUs) | optional |
| Include amendments (4/A) | optional |

### Output fields

`issuerName`, `ticker`, `issuerCik`, `insiderName`, `insiderCik`, `insiderRoles`, `insiderTitle`, `additionalReportingOwners`, `formType`, `filingDate`, `periodOfReport`, `rule10b5_1Plan`, `transactionDate`, `transactionCode`, `transactionType`, `acquiredOrDisposed`, `securityTitle`, `shares`, `pricePerShare`, `transactionValue`, `sharesOwnedAfter`, `directOrIndirect`, `isDerivative`, `exercisePrice`, `underlyingSecurity`, `accessionNumber`, `filingUrl`, `xmlUrl`.

#### Sample record

```json
{
  "ticker": "LEGN",
  "issuerName": "Legend Biotech Corp",
  "insiderName": "Zhang Ingrid",
  "insiderTitle": "Chief Executive Officer",
  "transactionDate": "2026-11-20",
  "transactionCode": "P",
  "transactionType": "Open-market purchase",
  "shares": 20000,
  "pricePerShare": 8.16,
  "transactionValue": 163200,
  "filingUrl": "https://www.sec.gov/Archives/edgar/data/1964342/000196434226000006/0001964342-26-000006-index.htm"
}
```

### Example inputs

All open-market insider buys over $50k filed yesterday:

```json
{"lookbackDays": 1, "transactionCodes": ["P"], "minTransactionValue": 50000, "maxResults": 500}
```

Watchlist, last 30 days, buys and sells:

```json
{"tickers": ["AAPL", "NVDA", "MSFT", "TSLA"], "lookbackDays": 30}
```

### Schedule it

Add an Apify **Schedule** (e.g. weekdays 7 PM) with `lookbackDays: 1` and pipe new trades into **Google Sheets, Slack, Discord, webhooks, Zapier, Make, or n8n**.

> Also tracking private funding rounds? See our companion [SEC Form D Funding Leads Scraper](https://apify.com/guiltless_beanstalk/sec-form-d-funding-leads).

### Pricing

Pay per result: **$1.50 per 1,000 insider transactions saved** ($0.0015 per transaction + $0.00005 Actor start). Filings removed by your filters are **free**.

### Data source and disclaimer

Data comes from the SEC's public EDGAR system. The Actor identifies itself with a User-Agent and stays under the SEC's 10 requests/second fair-access limit. Insider home addresses in the filings are intentionally **not** included. This is data, not investment advice; Form 4 filings can be late, amended or contain filer errors, so always check the linked filing before acting.

### FAQ

**Why is a price empty?** Awards, gifts and some conversions have no price, so `transactionValue` is empty too.
**A trade appears twice?** Different rows are separate transaction lines in the same filing (`transactionIndex`).
**Can I get 13D/13G or Form 3/5?** Not in this Actor.

# Actor input Schema

## `tickers` (type: `array`):

Stock tickers to track, e.g. AAPL, NVDA. Leave empty to get every insider trade filed in the date range.

## `lookbackDays` (type: `integer`):

Used when no From date is set.

## `dateFrom` (type: `string`):

Optional. Overrides Look back.

## `dateTo` (type: `string`):

Optional. Defaults to today.

## `transactionCodes` (type: `array`):

Default: real open-market buys and sells only. Empty list keeps every type.

## `insiderRoles` (type: `array`):

Keep only insiders with any of these roles. Leave empty for all.

## `minTransactionValue` (type: `integer`):

Shares x price. Drops smaller trades and those without a price.

## `includeDerivativeTransactions` (type: `boolean`):

Also return option, RSU and other derivative transactions.

## `includeAmendments` (type: `boolean`):

Also return amended filings.

## `maxResults` (type: `integer`):

Maximum number of records to save.

## `userAgent` (type: `string`):

SEC asks automated tools to identify themselves with a name and contact email. Leave empty to use the Actor default.

## Actor input object example

```json
{
  "tickers": [
    "AAPL",
    "NVDA",
    "TSLA"
  ],
  "lookbackDays": 30,
  "transactionCodes": [
    "P",
    "S"
  ],
  "includeDerivativeTransactions": false,
  "includeAmendments": false,
  "maxResults": 100
}
```

# Actor output Schema

## `transactions` (type: `string`):

Form 4 transactions found.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tickers": [
        "AAPL",
        "NVDA",
        "TSLA"
    ],
    "lookbackDays": 30,
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("guiltless_beanstalk/sec-insider-trades-form4").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "tickers": [
        "AAPL",
        "NVDA",
        "TSLA",
    ],
    "lookbackDays": 30,
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("guiltless_beanstalk/sec-insider-trades-form4").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tickers": [
    "AAPL",
    "NVDA",
    "TSLA"
  ],
  "lookbackDays": 30,
  "maxResults": 100
}' |
apify call guiltless_beanstalk/sec-insider-trades-form4 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,guiltless_beanstalk/sec-insider-trades-form4"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/wCpLa4nPmgQgymj6v/builds/GqfrhAdAAhW9nv4ij/openapi.json
