# SEC Insider Trading Tracker (Form 4) — Buys & Sells (`il-open-data/sec-insider-trades`) Actor

Track insider buying and selling from official SEC EDGAR Form 4 filings. Watch tickers or the live feed of all filings, filter by open-market purchases/sales and dollar value, get clean transaction rows plus per-company net buy/sell summary.

- **URL**: https://apify.com/il-open-data/sec-insider-trades.md
- **Developed by:** [IL Open Data](https://apify.com/il-open-data) (community)
- **Categories:** Business, News, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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 Trading Tracker (Form 4)

Turn raw **SEC EDGAR Form 4 filings** into a clean table of **insider buys and sells**: who traded, their role, how many shares, at what price, the dollar value, what they still own, and whether it was a pre-planned 10b5-1 sale. One row per transaction, ready for spreadsheets, alerts or trading models.

**Step-by-step guide with a real run and copy-paste inputs:** https://agent.zbang.net/guides/track-sec-insider-buying/

### Why use it

- **Official source only.** Data comes straight from SEC EDGAR (`data.sec.gov` + `sec.gov/Archives`), public-domain U.S. government data. No third-party aggregators, no logins.
- **Two modes.** Watch a list of tickers, or scan the **live feed of the newest Form 4 filings across all companies**. Schedule it daily to get a fresh insider-buying list.
- **Signal-ready.** Filter by transaction type (e.g. only `P` open-market purchases), minimum dollar value, and get a `SUMMARY` with **net insider buying/selling per company**.
- **Honest parsing.** Handles multiple reporting owners, direct and indirect ownership, amendments (4/A), and optional derivative transactions.

### Input example

```json
{
  "mode": "latest",
  "daysBack": 3,
  "transactionCodes": ["P"],
  "minValueUsd": 10000,
  "maxFilings": 200,
  "maxResults": 100
}
```

Watch tickers instead:

```json
{ "mode": "tickers", "tickers": ["AAPL", "NVDA", "TSLA"], "daysBack": 45, "transactionCodes": ["P", "S"] }
```

### Output example (one row)

```json
{
  "issuer_ticker": "AAPL",
  "issuer_name": "Apple Inc.",
  "insider_name": "LEVINSON ARTHUR D",
  "insider_roles": "Director",
  "transaction_date": "2026-11-16",
  "filed_date": "2026-11-18",
  "transaction_code": "S",
  "transaction_type": "Open-market sale",
  "direction": "disposed",
  "security": "Common Stock",
  "shares": 36792,
  "price_per_share": 352.26,
  "value_usd": 12960349.92,
  "shares_owned_after": 3662784,
  "ownership": "direct",
  "is_10b5_1_plan": false,
  "filing_url": "https://www.sec.gov/Archives/edgar/data/320193/.../...-index.htm"
}
```

The key-value store record `SUMMARY` lists every issuer with `buys_usd`, `sells_usd`, `net_usd`, number of transactions and the insiders involved, sorted by absolute net flow.

### Transaction codes

`P` purchase · `S` sale · `A` grant/award · `M` option exercise · `F` tax withholding · `G` gift · `D` disposition to issuer · `C` conversion · `X` derivative exercise · `J` other.

### Pricing

Pay per result: **$0.003 per transaction row** ($3 per 1,000) via the standard dataset-item event. You only pay for rows you get; set `maxResults` to cap the cost of a run. A daily scan of all new open-market purchases is typically 20–80 rows (≈ $0.06–$0.24 per day).

### Use cases

Insider-buying screeners · alerting bots (Slack/Telegram via Apify integrations) · quant research features · compliance monitoring · investor newsletters.

### Notes and limits

- Respects the SEC fair-access policy (declared User-Agent, ~6 requests/second).
- Prices of `0` or empty usually mean grants/awards or transfers, not market trades.
- This Actor provides data, not investment advice.

### Source and licence

U.S. Securities and Exchange Commission, EDGAR. Public-domain U.S. government information. Not affiliated with or endorsed by the SEC.

### Related tools

- [Company Jobs Tracker: open roles from Greenhouse, Lever and Ashby](https://apify.com/il-open-data/ats-jobs-aggregator)
- [Website Contact & Tech Enricher: emails, phones and socials from company sites](https://apify.com/il-open-data/website-contact-enricher)
- [SAM.gov Contract Opportunities: US federal bids, small-business set-asides](https://apify.com/il-open-data/sam-gov-opportunities)

All tools by this publisher: https://apify.com/il-open-data

# Actor input Schema

## `mode` (type: `string`):

Watch a list of tickers, or scan the live EDGAR feed of the newest Form 4 filings across all US-listed companies.

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

Stock tickers (e.g. AAPL) or numeric SEC CIKs. Used in 'Watch specific tickers' mode.

## `daysBack` (type: `integer`):

Only filings filed within this many days.

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

SEC transaction codes to keep. Leave empty for all. 'P' (open-market purchases) is the classic bullish insider signal.

## `minValueUsd` (type: `integer`):

Drop transactions below this dollar value (shares × price).

## `includeDerivatives` (type: `boolean`):

Also return options/warrants/RSU transactions (Table II of Form 4).

## `maxFilings` (type: `integer`):

Upper bound on Form 4 filings parsed (per ticker in ticker mode).

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

Stop after this many transaction rows (you pay per row).

## `contactEmail` (type: `string`):

SEC asks automated clients to declare a contact in the User-Agent. Leave empty to use the Actor's default contact.

## Actor input object example

```json
{
  "mode": "tickers",
  "tickers": [
    "AAPL",
    "NVDA",
    "TSLA"
  ],
  "daysBack": 14,
  "transactionCodes": [
    "P",
    "S"
  ],
  "minValueUsd": 0,
  "includeDerivatives": false,
  "maxFilings": 100,
  "maxResults": 500
}
```

# Actor output Schema

## `results` (type: `string`):

All results of the run as a table (also downloadable as JSON, CSV or Excel).

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("il-open-data/sec-insider-trades").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",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("il-open-data/sec-insider-trades").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"
  ]
}' |
apify call il-open-data/sec-insider-trades --silent --output-dataset

```

## MCP server setup

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

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/9b2uN3BSnGgWBqgkc/builds/EO3buTV9LXm21ZJUE/openapi.json
