# SEC Form 4 Insider Trading & Cluster Buy Signals Scraper (`desastreger/sec-form4-insider-cluster-signals`) Actor

Scrape real-time US corporate insider purchases & sales from official SEC EDGAR Form 4 XML filings. Detects C-suite open-market buys outside Rule 10b5-1 plans, computes clusterBuyCount & signalScore (0-100), and supports ticker/CIK lookups or market-wide scans. Early-bird $0.80/1k. +MCP.

- **URL**: https://apify.com/desastreger/sec-form4-insider-cluster-signals.md
- **Developed by:** [Ignacio De Saeger](https://apify.com/desastreger) (community)
- **Categories:** Lead generation, Agents, MCP servers
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 sec form 4 insider signals

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 EDGAR Form 4 Insider Trading & Cluster Buy Signals Scraper (+MCP)

Extract real-time US corporate insider purchases, sales, and multi-insider cluster buy signals directly from official **SEC EDGAR Form 4** (`<ownershipDocument>`) XML filings and SEC Submissions/EFTS APIs (`17 U.S.C. § 105`). Filter market-wide Form 4 filings or target specific stock tickers (`NVDA`, `AAPL`, `MSFT`) and CIKs, isolate discretionary open-market purchases (`transactionCode: "P"`), exclude scheduled **Rule 10b5-1** plans (`aff10b5One`), compute multi-insider `clusterBuyCount`, and rank high-conviction C-suite buys with a deterministic `0–100` `signalScore`. Runs in 128 MB RAM with native Streamable HTTP MCP Standby Server support. Zero external API keys or proxies required.

### Use cases

- **Quant & Equity Research:** Detect multi-insider cluster buying (`clusterBuyCount >= 2`) by CEOs, CFOs, and Directors purchasing shares with their own cash outside Rule 10b5-1 trading plans.
- **Event-Driven Trading & Alerts:** Monitor daily Form 4 filings for high-dollar open-market buys (`minTransactionValueUsd`) within minutes of SEC EDGAR publication.
- **Executive & Governance Intelligence:** Track C-suite equity ownership changes, option exercises (`M`), Rule 10b5-1 scheduled sales (`S`), and post-transaction share holdings (`sharesOwnedAfter`).
- **Autonomous AI Agents via MCP:** Connect Claude Desktop, Cursor, VS Code, or Google Antigravity via 1-Click OAuth MCP or direct Standby `/mcp` to run insider dossiers and cluster buy scans on demand.

***

### Launch Pricing (Pay-Per-Event)

> \[!IMPORTANT]
> **Early-Adopter Launch Rate (`$0.80 / 1,000 signals`):** Temporary promotional pricing (`$0.0008 / signal`) for early Store adopters & MCP integrations.

| Event | Description | Early-Adopter Launch (FREE) | Bronze | Silver | Gold |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **`insider-form4-signal`** *(primary)* | Parsed SEC Form 4 insider trading signal with issuer ticker, insider role, Rule 10b5-1 plan flag, transaction breakdown, `clusterBuyCount`, and `signalScore` | **$0.0008 / signal ($0.80 / 1k)** | $0.00065 | $0.00055 | $0.00045 |

***

### 1-Click JSON Input Example

```json
{
  "tickers": [],
  "daysBack": 7,
  "openMarketPurchasesOnly": true,
  "exclude10b51Plans": true,
  "minTransactionValueUsd": 25000,
  "maxResults": 25
}
```

For specific ticker lookups:

```json
{
  "tickers": ["NVDA", "AAPL"],
  "daysBack": 30,
  "openMarketPurchasesOnly": false,
  "maxResults": 10
}
```

***

### Sample Output JSON

```json
{
  "accessionNumber": "0002122129-26-000002",
  "filingType": "4",
  "isAmendment": false,
  "filingDate": "2026-11-24",
  "periodOfReport": "2026-11-16",
  "cik": "0001049659",
  "issuerName": "NATIONAL STEEL CO",
  "ticker": "SID",
  "rptOwnerCik": "0002122129",
  "rptOwnerName": "Daher Filho Tufi",
  "isDirector": false,
  "isOfficer": true,
  "isTenPercentOwner": false,
  "officerTitle": "Executive Officer",
  "insiderRole": "Officer (Executive Officer)",
  "aff10b5One": false,
  "primaryTransactionCode": "P",
  "hasOpenMarketPurchase": true,
  "totalSharesPurchased": 40000,
  "totalPurchaseValueUsd": 26486,
  "sharesOwnedAfter": 40000,
  "clusterBuyCount": 1,
  "signalScore": 74,
  "signalTier": "MEDIUM",
  "edgarXmlUrl": "https://www.sec.gov/Archives/edgar/data/2122129/000212212926000002/primary_doc.xml",
  "edgarFilingUrl": "https://www.sec.gov/Archives/edgar/data/2122129/000212212926000002/0002122129-26-000002-index.htm"
}
```

***

### API Quickstart (cURL, Node.js, Python)

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/desastreger~sec-form4-insider-cluster-signals/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"daysBack": 7, "openMarketPurchasesOnly": true, "exclude10b51Plans": true, "maxResults": 10}'
```

#### Node.js (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('desastreger/sec-form4-insider-cluster-signals').call({
  tickers: ['NVDA'],
  daysBack: 30,
  maxResults: 10,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("desastreger/sec-form4-insider-cluster-signals").call(
    run_input={"daysBack": 7, "openMarketPurchasesOnly": True, "maxResults": 10}
)
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

***

### Model Context Protocol (MCP) Standby Server

#### Option A: 1-Click OAuth MCP (Zero-Token Setup)

Connect directly in OAuth-capable MCP clients via Apify's managed OAuth gateway:

`https://mcp.apify.com/?tools=desastreger/sec-form4-insider-cluster-signals`

#### Option B: Direct Standby Streamable HTTP MCP

Connect **Claude Desktop**, **Cursor**, or **Google Antigravity** directly to the Actor's Standby `/mcp` endpoint:

```json
{
  "mcpServers": {
    "sec-form4-insider-cluster-signals": {
      "url": "https://desastreger--sec-form4-insider-cluster-signals.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer <APIFY_TOKEN>"
      }
    }
  }
}
```

#### Available MCP Tools (`readOnlyHint: true`)

- `search_form4_insider_trades`: Query Form 4 insider buys & sales market-wide or by ticker/CIK, filtering by open-market `P` purchases, Rule 10b5-1 exclusion, and minimum USD size.
- `get_company_insider_dossier`: Pull a complete company insider dossier by ticker or CIK with net buy/sell dollar flow, 10b5-1 ratio, and filing history.
- `detect_insider_cluster_buys`: Scan recent Form 4 filings for multi-insider open-market cluster buys (`clusterBuyCount >= 2`) outside Rule 10b5-1 plans.

***

### Data Legality & Provenance

100% of data is retrieved from official US Federal Government APIs (`sec.gov`, `efts.sec.gov`, `data.sec.gov`) and is in the **US public domain (`17 U.S.C. § 105`)**, compliant with SEC EDGAR Fair Access guidelines (`<= 5 req/sec`).

# Actor input Schema

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

Optional list of US stock tickers (e.g., \["NVDA", "AAPL", "MSFT"]). Leave empty for market-wide recent Form 4 filings.

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

Optional list of SEC CIK numbers (e.g., \["0001045810"]). Combined with tickers if both are provided.

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

Number of past days to scan when Start Date is not specified (1 to 365).

## `startDate` (type: `string`):

Optional explicit start date (YYYY-MM-DD). Overrides Days Back when set.

## `endDate` (type: `string`):

Optional explicit end date (YYYY-MM-DD). Defaults to today (UTC).

## `openMarketPurchasesOnly` (type: `boolean`):

When enabled, returns only Form 4 filings containing at least one open-market purchase (transactionCode = 'P'), filtering out sales, option exercises, and tax withholdings.

## `exclude10b51Plans` (type: `boolean`):

Exclude trades executed under pre-arranged Rule 10b5-1 trading plans (aff10b5One = true) to isolate discretionary insider conviction.

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

Include amended Form 4/A filings in addition to original Form 4 filings.

## `minTransactionValueUsd` (type: `integer`):

Minimum single-filing dollar transaction value in USD (e.g., 25000 for $25k+).

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

Maximum number of Form 4 insider signals to return (1 to 1000).

## `searchQuery` (type: `string`):

Optional keyword, company name, or insider name filter.

## Actor input object example

```json
{
  "tickers": [],
  "ciks": [],
  "daysBack": 7,
  "openMarketPurchasesOnly": false,
  "exclude10b51Plans": false,
  "includeAmendments": false,
  "minTransactionValueUsd": 0,
  "maxResults": 3
}
```

# Actor output Schema

## `signals` (type: `string`):

No description

## `runSummary` (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": [],
    "daysBack": 7,
    "openMarketPurchasesOnly": false,
    "exclude10b51Plans": false,
    "minTransactionValueUsd": 0,
    "maxResults": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("desastreger/sec-form4-insider-cluster-signals").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": [],
    "daysBack": 7,
    "openMarketPurchasesOnly": False,
    "exclude10b51Plans": False,
    "minTransactionValueUsd": 0,
    "maxResults": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("desastreger/sec-form4-insider-cluster-signals").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": [],
  "daysBack": 7,
  "openMarketPurchasesOnly": false,
  "exclude10b51Plans": false,
  "minTransactionValueUsd": 0,
  "maxResults": 3
}' |
apify call desastreger/sec-form4-insider-cluster-signals --silent --output-dataset

```

## MCP server setup

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

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/zgNUtBhZFOAM7XwwF/builds/XSUDFgRt7NHIuzaja/openapi.json
