# SEC Insider Transactions (Form 4) (`peak-app-rd/sec-insider-transactions`) Actor

Ticker or CIK in, every insider purchase, sale, award, exercise and gift reported on SEC Forms 4 and 5 out, one row per transaction, with owners, roles, 10b5-1 flag and footnotes.

- **URL**: https://apify.com/peak-app-rd/sec-insider-transactions.md
- **Developed by:** [Peak App Research and Development](https://apify.com/peak-app-rd) (community)
- **Categories:** Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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 Transactions (Form 4)

Every insider purchase, sale, grant, option exercise and gift that company directors, officers
and 10% owners report to the SEC on Forms 4 and 5. Each row is one transaction, parsed from the
XML the insider filed on EDGAR. Every value traces back to the filing's accession number.

### What you get

One dataset item per reported transaction, newest first:

- **Who:** the reporting owners with CIK, name and role (director, officer with title, 10% owner,
  other). Joint filers who report the same transaction together share one row, not one row each.
- **What:** security, transaction date, transaction code with its official SEC description
  (`P` open-market purchase, `S` sale, `A` award, `M` exercise, `F` tax withholding, `G` gift, ...),
  shares, price per share, acquired or disposed, and holdings after the transaction.
- **Value:** `value_usd` = shares × price, only when both are reported. Gifts and many awards have no
  price, so their value stays empty. It is never guessed.
- **Derivatives:** exercise price, exercise and expiration dates, underlying security and shares.
  Turn off `includeDerivative` for stock-only rows.
- **Context:** the Rule 10b5-1 plan checkbox (filings from April 2023; it's one checkbox per filing,
  so it appears on every row of that filing, and footnotes usually say which trades the plan
  covered), late-filing flag,
  direct vs indirect ownership (for example "By Trust"), and every footnote resolved to its text on
  the field it annotates, such as weighted-average price ranges.
- **Filing:** form (4, 4/A, 5, 5/A), filing date, accession. Amendments are flagged with the
  original submission date.

A per-company summary (filings found and parsed, plus any warnings) is saved to the run's
key-value store under `SUMMARY`.

### Input

```json
{ "identifiers": ["AAPL", "TSLA"], "since": "2025-01-01", "until": "2025-06-30", "includeDerivative": true }
```

- `identifiers`: issuer tickers or SEC CIK numbers, up to 100 per run.
- `since` / `until`: filing-date range (YYYY-MM-DD). The default is the last 365 days, and the maximum is 5 years.

### How it works

The Actor lists the company's Forms 4, 4/A, 5 and 5/A from EDGAR's submissions index and reads
each filing's raw XML. Requests are rate-limited under the SEC's fair-access policy, so a company
with hundreds of filings in range takes a minute or two. Parsing is regression-tested against real
filings from Apple, Tesla, Reddit, JPMorgan Chase, Berkshire Hathaway and DaVita, including
amendments and joint filings, cross-checked against the SEC's own quarterly Insider Transactions
Data Sets.

### Pricing

Pay per event:

- **$0.00005 per run**: Apify's standard run-start event, which waives the first 5 seconds of compute
- **$0.003 per transaction returned**

A year of Apple insider filings (about 130 transactions) costs about $0.39. Lookups
that fail (unknown ticker, invalid range) are returned as error items and are never charged. Set a
maximum charge on the run to cap spend. The Actor stops cleanly when the cap is reached.

### Limits

- Amendments are reported as filed and flagged, not merged into the original filing. EDGAR doesn't
  link an amendment to the filing it amends.
- Holdings-only rows (positions reported without a transaction) are not included.
- An option exercise and the sale of the resulting shares appear as separate rows. The Actor does
  not guess which rows belong together.
- Filings from before mid-2003 are not in XML and are skipped, with a warning in `SUMMARY`.

# Actor input Schema

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

Companies whose insiders' filings you want. Examples: AAPL, TSLA, 320193.

## `since` (type: `string`):

Filing date range start. Default: 365 days before 'until'. Range is limited to 5 years.

## `until` (type: `string`):

Filing date range end. Default: today.

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

Options, RSUs and other derivative securities (exercises, grants, conversions). One result is billed per transaction returned.

## Actor input object example

```json
{
  "identifiers": [
    "AAPL"
  ],
  "includeDerivative": true
}
```

# 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 = {
    "identifiers": [
        "AAPL"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("peak-app-rd/sec-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"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,peak-app-rd/sec-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/4pC8dwf4fQfJo7OKF/builds/OoTFj9t7Af4aqLDPE/openapi.json
