# SEC Insider Trading Tracker – Form 4 Buys & Sells by Ticker (`gazidev/sec-insider-trades`) Actor

Insider buys and sells from official SEC Form 4 filings: by ticker, CIK or market-wide for the last days. One row per trade with insider, role, code, shares, price, value, holdings after and 10b5-1 flag. Filter by code and minimum value. $0.80 per 1,000 trades.

- **URL**: https://apify.com/gazidev/sec-insider-trades.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 insider trades

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 Buys & Sells by Ticker

Get **insider buys and sells** of US public companies straight from the official **SEC Form 4** filings on EDGAR. Give it tickers (or CIKs), or switch on **market-wide** mode to read every Form 4 filed in the last few days. You get **one clean row per trade**: company, insider, role (CEO, CFO, director, 10% owner), transaction code, shares, price, dollar value, shares owned after, direct/indirect ownership, the Rule 10b5-1 plan flag, the footnotes and the link to the filing.

**$0.80 per 1,000 trades.** Filings that have no trade matching your filters are free.

### What it does

- **By ticker or CIK:** lists the company's Form 4 / 4/A filings of the last `daysBack` days (SEC submissions API) and parses each filing's `ownershipDocument` XML.
- **By insider CIK:** put a person's CIK (for example 1214156, Tim Cook) in `ciks` to see that person's trades in every company.
- **Market-wide:** reads the EDGAR daily index for the last 1–14 days and parses every Form 4. Use it with `transactionCodes: ["P"]` and `minValueUsd` to find **large open-market insider purchases** across the whole market.
- **Filters:** transaction codes (default **P = open-market buy, S = open-market sale** only, so grants, option exercises and tax withholding do not flood your data), minimum trade value, officers only, derivative transactions (options/RSUs) on or off, 4/A amendments, Form 5.

### Use cases

- Insider-buying signals and screens ("which CEOs bought their own stock this week?").
- Daily alerts for a watchlist of tickers (schedule the Actor and send the dataset to Slack, Sheets or a webhook).
- Backtests and research datasets of insider trades with clean numbers.
- Compliance and IR monitoring of Section 16 filings for your own company or peers.
- Feeding an AI agent with structured insider data instead of raw EDGAR HTML.

### Input

| Field | Default | Notes |
|---|---|---|
| `tickers` | prefill NVDA, TSLA, AAPL | Issuer tickers. `BRK.B` and `BRK-B` both work. |
| `ciks` | – | Company or insider CIKs (digits). |
| `marketWide` | `false` | Every Form 4 filed in the last `daysBack` days (max 14). |
| `daysBack` | 90 (companies), 3 (market-wide) | By filing date. Max 365 for companies. |
| `transactionCodes` | `["P","S"]` | Empty list = all codes (A, M, F, G, D, C, X, ...). |
| `minValueUsd` | 0 | shares x price. Trades without a reported price count as 0. |
| `officersOnly` | `false` | Only officers (skip pure directors and 10% owners). |
| `includeDerivative` | `false` | Add Table II rows (options, RSUs, warrants) with exercise price, expiration and underlying shares. |
| `includeAmendments` | `true` | Also Form 4/A. |
| `includeForm5` | `false` | Also Form 5 (annual statement). |
| `maxFilings` | 200 (prefill 8) | Filings parsed per run, newest first, round-robin across companies. 0 = no limit. |

Example – large insider buys across the market in the last 3 days:

```json
{"marketWide": true, "daysBack": 3, "transactionCodes": ["P"], "minValueUsd": 100000, "maxFilings": 0}
```

### Output (one row per transaction)

```json
{
  "issuerCik": 320193,
  "issuerName": "Apple Inc.",
  "ticker": "AAPL",
  "insiderCik": 1780525,
  "insiderName": "Newstead Jennifer",
  "isDirector": false,
  "isOfficer": true,
  "officerTitle": "SVP, GC and Government Affairs",
  "isTenPercentOwner": false,
  "relationship": "SVP, GC and Government Affairs",
  "table": "non-derivative",
  "securityTitle": "Common Stock",
  "transactionDate": "2026-11-17",
  "transactionCode": "S",
  "transactionLabel": "Open-market or private sale",
  "shares": 2398.0,
  "pricePerShare": 352.77,
  "valueUsd": 845942.46,
  "acquiredDisposed": "disposed",
  "sharesOwnedAfter": 25200.0,
  "directIndirect": "direct",
  "footnotes": "[F1] This transaction was made pursuant to a Rule 10b5-1 trading plan adopted by the reporting person on May 5, 2026.",
  "priceIsFootnoted": false,
  "is10b51": true,
  "formType": "4",
  "filingDate": "2026-11-19",
  "accessionNumber": "0001140361-26-044952",
  "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000114036126044952/0001140361-26-044952-index.htm",
  "xmlUrl": "https://www.sec.gov/Archives/edgar/data/320193/000114036126044952/form4.xml",
  "source": "SEC EDGAR (public domain)"
}
```

Derivative rows also have `exercisePrice`, `exerciseDate`, `expirationDate`, `underlyingSecurity` and `underlyingShares`. The run summary (record `OUTPUT`) has the totals of open-market buys and sales, counts of skipped filings and any tickers that were not found.

### Pricing

| Event | Price |
|---|---|
| Insider trade row (`trade`) | **$0.0008** ($0.80 per 1,000) |
| Actor start | $0.00005 |

Free: filings with no matching trade, filings that fail to download or parse, unknown tickers. You can set a maximum total charge per run; the Actor stops cleanly when it is reached.

| Actor (Store, Nov 2026) | Price |
|---|---|
| **This Actor** | $0.0008 per trade |
| ryanclinton/sec-insider-trading | $0.002 per trade |
| gochujang | $0.001 |
| straightforward_hydra | $0.005 |
| scrapemint | $0.025 per filing |

### How this differs from our other SEC listings

- **[SEC EDGAR Filings](https://apify.com/gazidev/sec-edgar-filings)** – filing lists (10-K, 10-Q, 8-K ...), full-text search and XBRL financials. It lists filings; this Actor opens each Form 4 and gives you the individual trades.
- **[SEC EDGAR MCP Server & API](https://apify.com/gazidev/sec-edgar-mcp)** – a Standby MCP server for AI agents with a small "recent insider transactions" tool (max 50 filings, one company). This Actor is the batch version: many tickers, insider CIKs, market-wide mode, filters and a dataset.
- **[Startup Funding Rounds (SEC Form D)](https://apify.com/gazidev/sec-form-d-funding-tracker)** – private placements, not insider trades.
- **[SEC Investment Adviser Leads](https://apify.com/gazidev/sec-investment-adviser-leads)** – RIA firm data.

### Limits (honest)

- Data is what the insider reported. Amended filings (4/A) are separate rows; the Actor does not merge them with the original.
- Some filers put the price only in a footnote (weighted average ranges). Then `pricePerShare` and `valueUsd` are empty, `priceIsFootnoted` is `true` and the footnote text is in `footnotes`.
- `is10b51` is the filing-level Rule 10b5-1 checkbox (added to Form 4 in 2023); older filings have `null`. Footnotes often say it per trade.
- Company mode reads the SEC "recent filings" list, which covers at least the last year or 1,000 filings of the company, so `daysBack` is capped at 365.
- Market-wide mode uses the EDGAR daily index, which appears the evening of the filing day, so today's filings show up from the next run.
- Joint filings (several reporting owners) give one row per trade with the first owner in `insiderName` and the others in `otherReportingOwners`.
- Form 3 (initial holdings) is not parsed, as it has no transactions.

### Data source and fair use

Official SEC EDGAR data (`data.sec.gov` submissions API and `www.sec.gov/Archives`). EDGAR data is US government work in the public domain. The Actor follows the SEC fair-access rules: at most 8 requests per second per run, a declared User-Agent that names this Actor, and back-off on HTTP 403/429. It uses no proxies and stops if the SEC refuses requests.

Insider names are personal data, but they come from statutory Section 16 filings that the SEC publishes. The Actor outputs only what is in the filing (no address, no enrichment). Not investment advice.

### FAQ

**What do the transaction codes mean?** P = open-market or private purchase, S = sale, A = grant/award, M = option exercise, F = shares withheld for tax, G = gift, D = disposition to the issuer, C = conversion, X = in-the-money exercise. Each row has `transactionLabel` in plain words.

**Why did I get fewer rows than filings?** Most Form 4s are grants, exercises or tax withholding. With the default codes P and S they are skipped (and free). Set `transactionCodes` to `[]` for everything.

**How fresh is it?** Company mode sees a Form 4 a few minutes after the SEC accepts it. Market-wide mode lags by up to one day (daily index).

**Can I schedule it?** Yes. Create a Task with your tickers and `daysBack: 2`, schedule it daily and connect an integration (Slack, Google Sheets, webhook).

### Use with AI agents (Apify MCP)

Add this Actor as a tool in the [Apify MCP server](https://mcp.apify.com) (`gazidev/sec-insider-trades`) and ask, for example: "Which officers of NVDA sold stock in the last 30 days and for how much?" The agent gets structured rows instead of HTML. For a ready MCP server with more SEC tools, see [SEC EDGAR MCP](https://apify.com/gazidev/sec-edgar-mcp).

# Actor input Schema

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

US stock tickers (issuers). One row per insider trade reported for these companies. Resolved to CIKs with the SEC ticker list.

## `ciks` (type: `array`):

SEC CIK numbers, e.g. 320193 (Apple). A company CIK lists trades in its stock and Form 4s it filed itself as an owner; an insider's CIK lists that person's trades in every company.

## `marketWide` (type: `boolean`):

Ignore tickers/CIKs and read every Form 4 filed on the last daysBack days from the EDGAR daily index (max 14 days). Combine with minValueUsd and transaction code P to find large insider buys.

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

Filings filed in the last N calendar days. Default 90 for tickers/CIKs (max 365), 3 for market-wide (max 14).

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

Keep only these Form 4 codes. P = open-market buy, S = open-market sale, A = grant/award, M = option exercise, F = tax withholding, G = gift, D = disposition to issuer, C = conversion, X = in-the-money exercise. Empty list = all codes.

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

Skip trades whose shares x price is below this. Trades without a reported price have value 0. 0 = no minimum.

## `officersOnly` (type: `boolean`):

Keep only trades by officers (CEO, CFO, ...). Directors and 10% owners who are not officers are skipped.

## `includeDerivative` (type: `boolean`):

Also output Table II rows (options, RSUs, warrants), with exercise price, expiration and underlying shares.

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

Also parse amended Form 4/A filings.

## `includeForm5` (type: `boolean`):

Also parse Form 5 annual statements (late or exempt transactions).

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

Upper limit of Form 4 filings read per run (newest first, round-robin across companies). Filings without a matching trade are free. 0 = no limit.

## Actor input object example

```json
{
  "tickers": [
    "NVDA",
    "TSLA",
    "AAPL"
  ],
  "marketWide": false,
  "transactionCodes": [
    "P",
    "S"
  ],
  "minValueUsd": 0,
  "officersOnly": false,
  "includeDerivative": false,
  "includeAmendments": true,
  "includeForm5": false,
  "maxFilings": 8
}
```

# Actor output Schema

## `trades` (type: `string`):

No description

## `summary` (type: `string`):

No description

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

No description

# 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": [
        "NVDA",
        "TSLA",
        "AAPL"
    ],
    "transactionCodes": [
        "P",
        "S"
    ],
    "maxFilings": 8
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/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": [
        "NVDA",
        "TSLA",
        "AAPL",
    ],
    "transactionCodes": [
        "P",
        "S",
    ],
    "maxFilings": 8,
}

# Run the Actor and wait for it to finish
run = client.actor("gazidev/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": [
    "NVDA",
    "TSLA",
    "AAPL"
  ],
  "transactionCodes": [
    "P",
    "S"
  ],
  "maxFilings": 8
}' |
apify call gazidev/sec-insider-trades --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/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/Gjdc2Uim29Dmw4Voi/builds/m4n3aCRSJyzgjQxZq/openapi.json
