# SEC Form 4 Insider Transactions (Official EDGAR) (`veritable_frieze/sec-form4-insider-transactions`) Actor

Parse official SEC EDGAR Form 4 and Form 4/A insider trades by ticker or CIK into one clean row per transaction. No API key, no HTML scraping. $0.005 per transaction.

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

## Pricing

from $5.00 / 1,000 insider transaction rows

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 Form 4 Insider Transactions (Official EDGAR)

Pull official SEC Form 4 and Form 4/A insider trades by ticker or CIK into one clean row per transaction, ready for a spreadsheet, a model, or a newsletter. The Actor reads the SEC's public EDGAR submissions API and ownership XML. There is no API key, no login, and no HTML scraping.

You pay $0.005 per parsed insider-transaction row ($5 per 1,000 rows), plus Apify's tiny per-run start fee. Holdings-only lines, failed lookups, and filtered-out rows are not charged. This Actor is not affiliated with the U.S. Securities and Exchange Commission and is not investment advice.

### Example output

One open-market sale row looks like this (fields trimmed):

```json
{
  "status": "ok",
  "issuerTicker": "AAPL",
  "issuerName": "Apple Inc.",
  "issuerCik": "0000320193",
  "reportingOwnerName": "Newstead Jennifer",
  "officerTitle": "SVP, GC and Government Affairs",
  "isOfficer": true,
  "transactionDate": "2026-11-17",
  "transactionCode": "S",
  "transactionCodeLabel": "Open market or private sale of non-derivative security",
  "isOpenMarketOrPrivate": true,
  "isClusterBuy": false,
  "acquiredOrDisposed": "D",
  "shares": 2398,
  "pricePerShare": 352.77,
  "transactionValueUsd": 845942.46,
  "sharesAfter": 25200,
  "aff10b5One": true,
  "formType": "4",
  "filingDate": "2026-11-19",
  "accessionNumber": "0001140361-26-044952",
  "documentUrl": "https://www.sec.gov/Archives/edgar/data/320193/000114036126044952/0001140361-26-044952-index.html",
  "source": "SEC EDGAR official API and filing archives"
}
```

A first try with the default input (recent Apple Form 4s, two filings, non-derivative trades only) usually finishes in seconds and costs a few cents.

### Who it is for

- **Quants and researchers** who want a ticker or CIK watchlist of official Form 4 transaction rows, including footnotes and Rule 10b5-1 flags, without building an EDGAR parser.
- **Journalists** who need a source-linked table of insider buys and sells they can check against the original filing.
- **Investor newsletters** that publish recent insider activity and want CSV or Excel output on a schedule.
- **Compliance and diligence teams** that export a documented trail (accession number, official index URL, and source XML) for a company or a short list of names. This is not a certified compliance product.

### What you get

Each successful row includes:

- Issuer name, ticker and CIK
- Reporting owner name, CIK, role (director, officer, 10% owner) and officer title
- Transaction date, official transaction code, and a short plain-language label
- Shares, price per share, and shares × price when both figures are present
- Acquired or disposed (A/D), shares held after the transaction, and direct or indirect ownership
- Whether the filing marked the transaction as pursuant to a Rule 10b5-1 plan (`aff10b5One`)
- `isOpenMarketOrPrivate` for official codes P and S (the SEC defines these as open-market or private purchases and sales)
- `isClusterBuy`, set when at least two different insiders have code-P purchases of the same issuer whose trade dates fall within your cluster window, among the filings fetched in this run
- Filing date, accession number, and links to the official index page and the source XML
- Footnotes that apply to that transaction

Holdings-only lines (no transaction) are ignored, so you are not charged for a "still holds X shares" row.

### How to use it

1. Enter one or more tickers or CIKs, for example `AAPL` or `0000320193`.
2. Enter a real contact email in **Contact email for the SEC User-Agent**. The SEC requires automated requests to identify themselves with a User-Agent that includes a contact address. That email is sent only in the request header, not written to the dataset. Replace the placeholder if you are not comfortable with it.
3. Optionally narrow by filing date, trade date, form type, transaction code (for example only `P` and `S`), or a minimum dollar value. Turn on derivative transactions if you also want options and convertibles.
4. Run the Actor, then download the dataset as JSON, CSV or Excel, or pull it with the Apify API.

A scheduled daily run on a watchlist of tickers is the usual pattern: keep `maxFilingsPerCompany` small (for example 5–10) and set `filedFrom` to yesterday or to the last date you already collected.

#### Example input

```json
{
  "identifiers": ["AAPL"],
  "userAgentContact": "research@example.com",
  "userAgentName": "ExampleResearchBot",
  "formTypes": ["4", "4/A"],
  "maxFilingsPerCompany": 2,
  "maxTotalFilings": 10,
  "includeDerivativeTransactions": false,
  "clusterWindowDays": 30
}
```

### Pricing

Pay per event. You pay only for parsed insider transaction rows that are written to the dataset.

| Event | When it is charged | Price |
| --- | --- | --- |
| `insider-transaction` (primary) | One successful transaction row | **$0.005** ($5 per 1,000 rows) |
| Actor start | Once per run (platform synthetic event; one event per GB of memory, minimum one) | $0.00005 at the default 512 MB |
| Failed lookups, failed downloads, empty companies, filtered-out rows | Never | Free |

Worked examples (plus the tiny start fee):

- Two recent Apple Form 4s that contain four transactions: **$0.02**
- 50 companies, 2 filings each, about 2 transactions per filing (200 rows): **$1.00**
- A daily watch of 20 names that produces 8 new transaction rows: **$0.04**

Platform usage for this Actor is intended to be covered by those event prices: it only makes small JSON and XML requests, uses 512 MB of memory, and stays well under the SEC's published 10 requests-per-second maximum.

### How it compares (honest)

The Apify Store has many Form 4 Actors. A public Store search on 21 November 2026, America/Los_Angeles, showed a crowded field. This table covers the best-known names and the Actors most often mentioned as close substitutes. User counts and prices came from the public [Apify Store API](https://api.apify.com/v2/store?search=form%204). About 28 public runs in 30 days usually means the Store's daily auto-test, not paying customers.

| Actor | Price (primary event) | Users (30 days / total) | Last listing update | What it emphasizes |
| --- | --- | --- | --- | --- |
| **This Actor** (`veritable_frieze/sec-form4-insider-transactions`) | **$0.005 / row** | New | 21 Nov 2026 | Official EDGAR API + ownership XML, footnotes, 10b5-1 flag, in-run cluster-buy flag, no charge for holdings or errors |
| [ryanclinton/sec-insider-trading](https://apify.com/ryanclinton/sec-insider-trading) | $0.002 / trade fetched | 8 / 63 | 11 Nov 2026 | Largest user base. Behavioral signal classification, cluster detection, compensation-noise suppression |
| [scrapemint/sec-form4-insider-tracker](https://apify.com/scrapemint/sec-form4-insider-tracker) | $0.025 / filing row (first 2 free) | 5 / 18 | 9 Nov 2026 | Most-used specialist tracker. Filters by ticker, CIK, code, role, min value, age. One 5-star review. 219 successful public runs in 30 days |
| [fetch_cat/sec-form-4-insider-trades-scraper](https://apify.com/fetch_cat/sec-form-4-insider-trades-scraper) | $0.000575 / result | 4 / 5 | 1 Nov 2026 | Lowest list price in this set. Ticker or CIK, footnotes optional, derivative toggle |
| [pink_comic/sec-insider-trading-tracker](https://apify.com/pink_comic/sec-insider-trading-tracker) | $0.002 / dataset item | 2 / 5 | 11 Nov 2026 | Diligence-oriented buys, sells, and option exercises |
| [datasignalslab/sec-form4-insider-buying-clusters](https://apify.com/datasignalslab/sec-form4-insider-buying-clusters) | $0.02 / cluster signal | 0 / 4 | 16 Sep 2026 | Cluster-only: scored open-market buy clusters, not a raw transaction dump |
| [parseforge/sec-form4-scraper](https://apify.com/parseforge/sec-form4-scraper) | $0.04999 / result | 1 / 4 | 26 Oct 2026 | Ticker, CIK, or market-wide scrape. Highest list price here |
| [kaz_kakyo/sec-filing-alerts](https://apify.com/kaz_kakyo/sec-filing-alerts) | $0.005 / filing alert | 2 / 3 | 27 Oct 2026 | Watchlist alerts for 8-K and Form 4, not a full transaction parser |
| [neuton/sec-form4-insider-transactions-scraper](https://apify.com/neuton/sec-form4-insider-transactions-scraper) | $0.004 / dataset item | 2 / 3 | 8 Sep 2026 | Filing-level rows (accession, dates, URLs) more than a full transaction parse |
| [getascraper/sec-form4-insider-monitor](https://apify.com/getascraper/sec-form4-insider-monitor) | $0.00175 / dataset item | 2 / 3 | 4 Nov 2026 | Filing-change monitor with source links |
| [scrapers_lat/sec-form4-insider-trades-scraper](https://apify.com/scrapers_lat/sec-form4-insider-trades-scraper) | $0.012 / result | 1 / 2 | 11 Nov 2026 | Transaction rows with insider, role, code, shares, and price |
| [pohjastudio/sec-form4-insider-trading-scraper](https://apify.com/pohjastudio/sec-form4-insider-trading-scraper) | $0.005 / transaction | 1 / 2 | 23 Aug 2026 | Same list price as this Actor. Emphasizes open-market vs grant/vesting noise |

**What this Actor does well:** it is 5× cheaper than the most-used specialist (`scrapemint`), it uses the official submissions API and ownership XML rather than search-result HTML, and it keeps footnotes, the 10b5-1 flag, and official source links on every row. Cluster-buy flags are included at no extra charge.

**What it does not claim:** it is not the cheapest Actor in the Store (`fetch_cat` and several others price lower). It is new, so it has no review history and little usage. The cluster-buy flag only looks at filings fetched in that run, with your caps and date filters; it is not a market-wide cluster scanner and it does not assign a 0–100 score. It does not classify compensation noise beyond official transaction codes and the P/S flag. It does not page through every historical submissions file, and it is not a real-time alert product.

### FAQ

**Do I need an SEC API key?** No. The official EDGAR APIs used here do not require a key. You do need to provide a contact email for the User-Agent, which the SEC requires for automated access.

**Why do you ask for an email?** The [SEC Webmaster FAQ](https://www.sec.gov/about/webmaster-frequently-asked-questions) says automated requests must declare a User-Agent that includes a contact address, and must stay at or under 10 requests per second. The address is sent only in the request header.

**Will a first run be expensive?** The default input fetches two recent filings for Apple and skips derivative tables. That is usually a handful of rows (a few cents). Raise `maxFilingsPerCompany` when you want more history.

**What is a cluster buy here?** A code-P purchase is flagged when at least one other distinct insider also has a code-P purchase of the same issuer whose trade date falls within `clusterWindowDays` (default 30), among the rows returned in that run. Two purchases by the same person are not a cluster. This is a convenience flag, not a trading signal.

**Can I get only open-market buys and sells?** Yes. Set `transactionCodes` to `P` and `S`, or filter on `isOpenMarketOrPrivate` after the run. Remember that the SEC defines P and S as open-market or private transactions.

**Does this include options?** Only if you turn on `includeDerivativeTransactions`. Each derivative transaction is its own charged row.

**Is this investment advice or a compliance certification?** No. Footnotes often contain the context that changes the meaning of a row (weighted-average prices, 10b5-1 plans, indirect ownership). Read them before treating a row as a simple open-market trade.

### Input

| Field | Required | Default | Meaning |
| --- | --- | --- | --- |
| `identifiers` | yes | `["AAPL"]` | Tickers or CIKs |
| `userAgentContact` | yes | — (prefill `research@example.com`) | Contact email for the SEC User-Agent |
| `userAgentName` | no | `Form4InsiderTransactionsActor` | Name paired with that email |
| `formTypes` | no | `["4", "4/A"]` | Ownership forms to include |
| `maxFilingsPerCompany` | no | `2` | Newest matching filings per identifier |
| `maxTotalFilings` | no | `10` | Hard cap per run |
| `filedFrom` / `filedTo` | no | — | Inclusive filing-date bounds (`YYYY-MM-DD`) |
| `transactionDateFrom` / `transactionDateTo` | no | — | Inclusive trade-date bounds (`YYYY-MM-DD`) |
| `transactionCodes` | no | all | Official codes to keep (`P`, `S`, `A`, `G`, …) |
| `includeDerivativeTransactions` | no | `false` | Also parse options and other derivatives |
| `minValueUsd` | no | — | Drop rows with a known value below this amount |
| `clusterWindowDays` | no | `30` | Window used for the in-run cluster-buy flag |

### Data source and legal limits

The Actor uses only official, public SEC resources:

- [EDGAR APIs on data.sec.gov](https://www.sec.gov/search-filings/edgar-application-programming-interfaces) (no API key)
- [company_tickers.json](https://www.sec.gov/files/company_tickers.json)
- Ownership XML files in the [EDGAR archives](https://www.sec.gov/search-filings/edgar-search-assistance/accessing-edgar-data)

The SEC states that government-created content on sec.gov and EDGAR public filing content are free to access and reuse, and that automated access is allowed if you declare a User-Agent and stay within the published rate limit of 10 requests per second. See the [Webmaster FAQ](https://www.sec.gov/about/webmaster-frequently-asked-questions).

This Actor:

- Sends a User-Agent in the form `YourProjectName you@example.com`
- Waits at least 0.25 seconds between requests (about 4 per second)
- Does not log in, does not use a password, and does not bypass any access control
- Does not scrape search result HTML
- Stops cleanly at your `maxTotalFilings` cap and at the run's maximum charge

### Honest limits

- Only filings that appear in the company's current official submissions feed are searched. Very old history may sit in additional submissions files that this first version does not page through.
- A ticker must appear in the SEC's official company ticker list. Some funds and issuers have a CIK but no ticker; use the CIK in that case.
- Some older or unusual filings use a different XML shape. Those filings are reported as an uncharged error row instead of a fake transaction.
- Footnotes can contain important context (weighted-average prices, 10b5-1 plans, indirect ownership). Read them before treating a row as a simple open-market trade.
- Shares × price is not always a true "trade value" (grants, gifts and tax-withholding codes are different).
- The cluster-buy flag only sees insiders and dates present in the current run. If your filing cap is small, a real cluster can be missed.
- This is not a certified compliance product, not a real-time alert feed, and not investment advice.

### Local development

This project can be run on your machine with the Apify CLI. It does not need an Apify login to run locally.

```bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
## Edit storage/key_value_stores/default/INPUT.json first.
ACTOR_TEST_PAY_PER_EVENT=true apify run --purge
```

Parser and signal tests (no network):

```bash
python -m pytest tests -q
```

Do not run large identifier lists against EDGAR from a laptop. Keep local tests small, declare a real User-Agent, and respect the rate limit.

### Changelog

- **0.1.4** — Cluster-buy flag and open-market-or-private (P/S) flag; trade-date filters; tighter default input (2 filings, derivatives off) so a first run and the Store daily test stay fast and cheap; README rewritten for Store search and an honest comparison.
- **0.1.0** — First build: official submissions API plus Form 4 / 4/A XML parsing, pay-per-transaction, filing-date and code filters.

# Actor input Schema

## `identifiers` (type: `array`):

One or more stock tickers (for example AAPL) or SEC Central Index Keys (CIKs). CIKs may be given with or without leading zeros.

## `userAgentContact` (type: `string`):

A real email address the SEC can use to contact the person or organization running this Actor. The SEC requires automated requests to identify themselves with a User-Agent that includes a contact address. This address is sent only in the request User-Agent header, not stored in the dataset.

## `userAgentName` (type: `string`):

Short name of your project or organization, included in the User-Agent with your contact email. Letters, numbers, spaces, hyphens and underscores only.

## `formTypes` (type: `array`):

Ownership form types to include. Form 4 is the routine insider transaction report. Form 4/A is an amendment. Forms 3 and 5 are optional initial and annual statements.

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

Maximum number of matching filings to download and parse for each identifier, after date filters, newest first. The default is 2 so a first run finishes quickly and stays cheap. Raise it when you want more history.

## `maxTotalFilings` (type: `integer`):

Hard cap on filings parsed in one run, across all companies. Stops the run cleanly when reached. The default is 10 so a first try stays small.

## `filedFrom` (type: `string`):

Optional inclusive lower bound on the filing date (the date the Form 4 was filed with the SEC, not always the trade date).

## `filedTo` (type: `string`):

Optional inclusive upper bound on the filing date.

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

If set, only rows whose official transaction code is in this list are returned and charged. Leave empty to keep every parsed transaction. Common codes: P (open-market purchase), S (open-market sale), A (grant/award), D (disposition to issuer), F (tax withholding), G (gift), M (option exercise), C (conversion).

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

If true, also parse derivative tables (options, warrants, convertibles). Each derivative transaction is its own charged row. Left off by default so a first run stays cheaper and focuses on non-derivative trades.

## `minValueUsd` (type: `number`):

If set, drop rows whose shares × price is below this amount. Rows with a missing price (for example some gifts or awards) are kept, because value cannot be computed.

## `transactionDateFrom` (type: `string`):

Optional inclusive lower bound on the transaction date (the trade date in the filing, which can differ from the filing date).

## `transactionDateTo` (type: `string`):

Optional inclusive upper bound on the transaction date.

## `clusterWindowDays` (type: `integer`):

A purchase (transaction code P) is flagged isClusterBuy when at least one other distinct insider also has a code-P purchase of the same issuer whose trade date falls within this many days, among the filings fetched in this run. This is not a market-wide scanner.

## Actor input object example

```json
{
  "identifiers": [
    "AAPL"
  ],
  "userAgentContact": "research@example.com",
  "userAgentName": "Form4InsiderTransactionsActor",
  "formTypes": [
    "4",
    "4/A"
  ],
  "maxFilingsPerCompany": 2,
  "maxTotalFilings": 10,
  "includeDerivativeTransactions": false,
  "clusterWindowDays": 30
}
```

# Actor output Schema

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

Dataset with one row per Form 4 transaction.

# 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 = {
    "identifiers": [
        "AAPL"
    ],
    "userAgentContact": "research@example.com",
    "formTypes": [
        "4",
        "4/A"
    ],
    "maxFilingsPerCompany": 2,
    "maxTotalFilings": 10,
    "includeDerivativeTransactions": false,
    "clusterWindowDays": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("veritable_frieze/sec-form4-insider-transactions").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 = {
    "identifiers": ["AAPL"],
    "userAgentContact": "research@example.com",
    "formTypes": [
        "4",
        "4/A",
    ],
    "maxFilingsPerCompany": 2,
    "maxTotalFilings": 10,
    "includeDerivativeTransactions": False,
    "clusterWindowDays": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("veritable_frieze/sec-form4-insider-transactions").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 '{
  "identifiers": [
    "AAPL"
  ],
  "userAgentContact": "research@example.com",
  "formTypes": [
    "4",
    "4/A"
  ],
  "maxFilingsPerCompany": 2,
  "maxTotalFilings": 10,
  "includeDerivativeTransactions": false,
  "clusterWindowDays": 30
}' |
apify call veritable_frieze/sec-form4-insider-transactions --silent --output-dataset

```

## MCP server setup

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

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/nvPMyoYmgReOkoOVj/builds/pjFz2zmkcDMA2dhBE/openapi.json
