# US SEC Form 4 Insider Trading & 13F Fund Holdings Scraper (`grimbles/us-sec-insider-trading-13f-intel`) Actor

Extract real-time US SEC Form 4 insider transactions (buys, sales, CEO/CFO titles, share counts, USD values) and Form 13F-HR institutional portfolio holdings directly from official SEC EDGAR EFTS, Submissions, XML & XBRL APIs. Built for FinTech, quant teams, wealth advisors & AI agents.

- **URL**: https://apify.com/grimbles/us-sec-insider-trading-13f-intel.md
- **Developed by:** [Grimbles Data Labs](https://apify.com/grimbles) (community)
- **Categories:** Lead generation, Automation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.35 / 1,000 sec form 4 / 13f filing extracteds

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

## US SEC Form 4 Insider Trading & 13F Fund Holdings Scraper

**Track real-time US corporate insider buys & sales (Form 4: CEO, CFO, Directors, 10% Owners) and institutional hedge fund quarterly portfolios (Form 13F-HR) directly from the official US SEC EDGAR XML, Submissions, and EFTS REST APIs.**

Built for **FinTech & quantitative trading pipelines, wealth management & private banking liquidity prospecting, corporate intelligence platforms, and AI financial agents (MCP / n8n)** — 100% official SEC EDGAR open government APIs with zero third-party data markups and zero API keys required.

***

### Key Features

- **Real-Time SEC Form 4 XML Parsing**: Parses raw `<ownershipDocument>` XML directly from EDGAR Archives to extract `insiderOrManagerName`, `insiderRole` (`CEO`, `CFO`, `Director`, `10% Owner`), `transactionCode` (`P` Purchase, `S` Sale, `M` Option Exercise, `A` Award), `sharesTransacted`, `pricePerShareUsd`, `totalValueUsd`, `sharesOwnedAfter`, and Rule `10b5-1` trading plan flags.
- **Form 13F-HR Hedge Fund Portfolio Extraction**: Parses Form 13F-HR cover sheets and `<informationTable>` XML holdings to extract fund manager name, report period, total portfolio value ($), holding count, and top 15 positions (issuer, CUSIP, USD value, share count).
- **Ticker & Submissions Enrichment**: Resolves stock tickers (`NVDA`, `AAPL`, `MSFT`, etc.) via `sec.gov/files/company_tickers.json` and enriches SIC industry, state, and stock exchange from `data.sec.gov/submissions/CIK{cik}.json`.
- **Actionable `signalScore` (`0–100`)**: Scores filings by open-market purchase/sale signal, C-suite seniority, USD transaction magnitude, and completeness.

***

### Sample Output JSON

```json
{
  "formType": "4",
  "filingDate": "2026-11-18",
  "transactionDate": "2026-11-16",
  "periodOfReport": "2026-11-16",
  "issuerCik": "0001045810",
  "issuerName": "NVIDIA CORP",
  "ticker": "NVDA",
  "insiderOrManagerName": "SMITH JANE",
  "insiderCik": "0001999999",
  "insiderRole": "Chief Financial Officer (Officer)",
  "transactionCode": "P",
  "transactionAction": "Open-Market Purchase",
  "sharesTransacted": 12500.0,
  "pricePerShareUsd": 142.5,
  "totalValueUsd": 1781250.0,
  "sharesOwnedAfter": 215000.0,
  "is10b51Plan": false,
  "industry": "SEMICONDUCTORS & RELATED DEVICES",
  "exchange": "Nasdaq",
  "state": "CA",
  "accessionNumber": "0001045810-26-000123",
  "signalScore": 95,
  "filingUrl": "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000123/form4.xml"
}
```

***

### AI Agent (MCP) & n8n Automation Integration

#### Apify MCP Server (Claude Desktop / Cursor / Windsurf)

```json
{
  "mcpServers": {
    "us-sec-insider-trading-13f-intel": {
      "url": "https://mcp.apify.com/?tools=grimbles/us-sec-insider-trading-13f-intel",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

#### n8n / Make HTTP Run-Sync Integration

```json
{
  "method": "POST",
  "url": "https://api.apify.com/v2/acts/grimbles~us-sec-insider-trading-13f-intel/run-sync-get-dataset-items",
  "headers": {
    "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>",
    "Content-Type": "application/json"
  },
  "body": {
    "mode": "form4_insider",
    "transactionCodes": ["P", "S"],
    "minTransactionValueUsd": 100000,
    "daysBack": 14,
    "maxResults": 25
  }
}
```

# Actor input Schema

## `mode` (type: `string`):

Choose Form 4 Insider Transactions, Form 13F-HR Institutional Hedge Fund Holdings, or both.

## `tickersOrCompanies` (type: `array`):

Optional list of stock tickers (e.g. 'NVDA', 'AAPL', 'MSFT') or institution names (e.g. 'Berkshire Hathaway'). Leave empty for latest market-wide filings.

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

Optional Form 4 transaction codes: 'P' (Purchase), 'S' (Sale), 'M' (Option Exercise), 'A' (Award). Leave empty for all transactions.

## `minTransactionValueUsd` (type: `number`):

Optional minimum USD value threshold for Form 4 transactions or 13F portfolios.

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

Number of calendar days back to query in SEC EDGAR.

## `enrichSubmissions` (type: `boolean`):

Fetch issuer SIC industry, state, and exchange metadata from data.sec.gov/submissions.

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

Maximum number of parsed Form 4 / 13F-HR records to deliver.

## Actor input object example

```json
{
  "mode": "form4_insider",
  "tickersOrCompanies": [],
  "transactionCodes": [],
  "minTransactionValueUsd": 0,
  "daysBack": 14,
  "enrichSubmissions": true,
  "maxResults": 25
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing parsed SEC Form 4 insider transactions and Form 13F-HR institutional fund holdings.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("grimbles/us-sec-insider-trading-13f-intel").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("grimbles/us-sec-insider-trading-13f-intel").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 '{}' |
apify call grimbles/us-sec-insider-trading-13f-intel --silent --output-dataset

```

## MCP server setup

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

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/oi6oS0EPu505TTX0I/builds/8xgs0npLiuK9I8kAa/openapi.json
