# SEC Insider Trading: Form 4 buys, sells and grants by company (`steadydata/sec-insider-trading`) Actor

Insider transactions from SEC Form 4 per company by ticker or CIK: role and title of the insider, transaction date, code, shares, price, value and shares owned after, derivative and 10b5-1 flags, with links to the filing. Up to 200 companies a run, filter on date. Pay per transaction.

- **URL**: https://apify.com/steadydata/sec-insider-trading.md
- **Developed by:** [Steadydata Team](https://apify.com/steadydata) (community)
- **Categories:** Business, News, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.65 / 1,000 transaction listeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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: Form 4 buys, sells and grants by company

Insider transactions from SEC Form 4 per company by ticker or CIK: role and title of the insider, transaction date, code, shares, price, value and shares owned after, derivative and 10b5-1 flags, with links to the filing. Up to 200 companies a run, filter on date. Pay per transaction.

### Why this scraper

- **Only delivered results are charged.** Inputs that fail come back as clear error
  records at no cost.
- Straight from the SEC's own archive, no third party in between: the company's filing list comes from the SEC JSON API and every Form 4 is read from its raw XML, the same document the insider's lawyer filed. Measured on the platform: 48 transactions from 15 filings of three companies for a fifth of a cent.
- One row per transaction, not per filing. A Form 4 that reports an option exercise, the resulting shares and a tax withholding becomes three rows, each with its own code, shares, price, value and the holding afterwards. The SEC's one-letter transaction codes come with their meaning in words (`S` is "Open market or private sale", `M` "Exercise or conversion of derivative").
- Derivative transactions (options, RSUs, table II of the form) carry exercise price, exercise and expiration dates and the underlying security, and can be switched off with `includeDerivatives` when only share trades matter.
- The role of the insider is on every row: Officer, Director, 10% owner, with the officer's title as declared (Chief Financial Officer, SVP, General Counsel). Rule 10b5-1 plan trades are flagged, so scheduled sales are told apart from discretionary ones.

### Who this is for

Paste tickers, CIKs or EDGAR company URLs in `companies` (up to 200 per run), optionally set `sinceDate` (YYYY-MM-DD) and `maxFilingsPerCompany` (default 20 newest Form 4 filings, ceiling 200). Built for insider-activity monitors, screens for open-market buys and clustered sales, research on executive selling around earnings, and compliance or journalism work that needs the official filing behind every number.

### Who this is not for

The name of the insider is not delivered, nor their personal CIK or address, although the form carries them; a row says "Officer, Chief Financial Officer of Tesla sold 2,000 shares", and the filing behind `documentUrl` says who. If you need rows keyed to a named person, this actor is the wrong tool. Only Form 4 and 4/A are read; the initial holdings statement (Form 3) and the annual Form 5 are not. `pricePerShare` and `valueUsd` are empty when the form has no price (grants, gifts), never estimated. The SEC API carries the latest 1,000 filings per company, which for a heavy filer reaches back a few years. The SEC asks automated readers to identify themselves and to stay under ten requests per second; this actor does both.

### Input example

```json
{
    "companies": [
        "AAPL",
        "NVDA",
        "TSLA"
    ],
    "includeDerivatives": true,
    "maxFilingsPerCompany": 20
}
```

### Output example

- `cik`
- `companyName`
- `ticker`
- `form`
- `filingDate`
- `periodOfReport`
- `accessionNumber`
- `insiderRole`
- `officerTitle`
- `isDirector`
- `isOfficer`
- `isTenPercentOwner`
- `securityTitle`
- `transactionDate`
- `transactionCode`
- `transactionType`
- `acquiredOrDisposed`
- `shares`
- `pricePerShare`
- `valueUsd`
- `sharesOwnedAfter`
- `ownership`
- `ownershipNature`
- `isDerivative`
- `exercisePrice`
- `exerciseDate`
- `expirationDate`
- `underlyingSecurity`
- `underlyingShares`
- `is10b51Plan`
- `documentUrl`
- `indexUrl`

Error codes: `INVALID_COMPANY`, `NOT_FOUND`, `NO_FILINGS`, `DUPLICATE_INPUT`, `BLOCKED`.

One delivered row looks like this:

```json
{
  "cik": "320193",
  "companyName": "Apple Inc.",
  "ticker": "AAPL",
  "form": "4",
  "filingDate": "2026-09-24",
  "accessionNumber": "0001140361-26-037584",
  "documentUrl": "https://www.sec.gov/Archives/edgar/data/320193/000114036126037584/xslF345X06/form4.xml",
  "indexUrl": "https://www.sec.gov/Archives/edgar/data/320193/000114036126037584/0001140361-26-037584-index.htm",
  "periodOfReport": "2026-09-22",
  "insiderRole": "Officer",
  "officerTitle": "SVP, GC and Government Affairs",
  "isDirector": false,
  "isOfficer": true,
  "isTenPercentOwner": false,
  "is10b51Plan": true,
  "securityTitle": "Common Stock",
  "transactionDate": "2026-09-22",
  "transactionCode": "S",
  "transactionType": "Open market or private sale",
  "acquiredOrDisposed": "Disposed",
  "shares": 2399,
  "pricePerShare": 340.06,
  "valueUsd": 815803.94,
  "sharesOwnedAfter": 44391,
  "ownership": "Direct",
  "ownershipNature": null,
  "isDerivative": false,
  "exercisePrice": null,
  "exerciseDate": null,
  "expirationDate": null,
  "underlyingSecurity": null,
  "underlyingShares": null,
  "status": "ok"
}
```

### Related actors from steadydata

- [sec-edgar-filings](https://apify.com/steadydata/sec-edgar-filings): every filing of the same company, 10-K to 8-K, with links
- [sec-13f-holdings](https://apify.com/steadydata/sec-13f-holdings): what the large institutional investors hold, per quarter
- [google-finance-quotes](https://apify.com/steadydata/google-finance-quotes): the share price of the same company, live

### Pricing

Pay per event: one `transaction-listed` event per delivered result. No charge for inputs
that fail, no separate platform-usage surcharge.

**Free Apify plan:** this actor delivers up to 25 rows per run for accounts on the Apify free
plan, and then stops with a message. That limit is set by us, not by Apify. It exists so the
actor keeps paying for itself for the people who do pay. Any paid Apify plan runs it at full
size, billed per delivered row, with failed rows never charged.

**Reviews:** if this actor saves you time, a short review on this page is the one thing that
helps most. Ratings are what other buyers look at first, and we have no other way to ask.

### FAQ

**Is personal data collected?**
No. The row carries the company, the insider's role and title, and the transaction. The reporting person's name, personal CIK and address, which the form contains, are not read into the dataset; they remain in the filing behind `documentUrl`.

**How do I get only new insider trades every day?**
Run with `sinceDate` set to yesterday. Companies without a new Form 4 come back as a free `NO_FILINGS` row, so a daily watchlist of 200 companies costs only the transactions that actually appeared.

**What do the transaction codes mean?**
`P` is an open-market purchase and `S` a sale, the two that most screens look for. `A` is a grant or award, `M` an option exercise or RSU conversion, `F` shares withheld for taxes, `G` a gift, `D` a disposition to the company. Every row carries the code and its meaning in `transactionType`.

**Why does one filing give several rows?**
Because one Form 4 can report several transactions: an exercise (`M`), the shares it produced, and the tax withholding (`F`) on the same day. Each is its own row with its own `sharesOwnedAfter`, so the sequence can be followed.

**What is `is10b51Plan`?**
A Rule 10b5-1 plan is a schedule of trades adopted in advance, when the insider has no inside information. Filers mark such trades on the form; the flag lets you separate planned sales from discretionary ones.

**What does a run cost when a ticker is unknown?**
Nothing. `NOT_FOUND`, `NO_FILINGS`, `INVALID_COMPANY` and `BLOCKED` rows are free; only delivered transactions are charged.

**What happens when the source changes?**
Sources change from time to time; that is the nature of this work. The actor is
monitored daily and fixed fast, and while it is broken you are not charged, because
only delivered results cost anything.

# Changelog

This Actor's version history is a separate document: https://apify.com/steadydata/sec-insider-trading/changelog.md

# Actor input Schema

## `companies` (type: `array`):

One per row, up to 200: a ticker (AAPL), a CIK (320193) or an EDGAR company URL.

## `sinceDate` (type: `string`):

Only Form 4 filings filed on or after this date (YYYY-MM-DD). Empty means the latest filings.

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

Also deliver options, RSUs and other derivative securities (table II of the form). Off means shares only.

## `maxFilingsPerCompany` (type: `integer`):

Cost ceiling per company, newest Form 4 filings first; one filing usually holds one to five transactions.

## Actor input object example

```json
{
  "companies": [
    "AAPL",
    "NVDA",
    "TSLA"
  ],
  "includeDerivatives": true,
  "maxFilingsPerCompany": 20
}
```

# Actor output Schema

## `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 = {
    "companies": [
        "AAPL",
        "NVDA",
        "TSLA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadydata/sec-insider-trading").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 = { "companies": [
        "AAPL",
        "NVDA",
        "TSLA",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("steadydata/sec-insider-trading").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 '{
  "companies": [
    "AAPL",
    "NVDA",
    "TSLA"
  ]
}' |
apify call steadydata/sec-insider-trading --silent --output-dataset

```

## MCP server setup

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

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/kYynSuz0eQPIu2BqT/builds/AjQY69J3dvDUgyE3G/openapi.json
