# SEC Insider Trading (Form 4) & 13F Hedge Fund Holdings API (`mintspread/sec-insider-13f-tracker`) Actor

- **URL**: https://apify.com/mintspread/sec-insider-13f-tracker.md
- **Developed by:** [Thomas McCluskey](https://apify.com/mintspread) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 extracted sec form 4 or 13f records

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/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) & 13F Hedge Fund Holdings API (Official SEC XML + MCP)

Parse live **SEC Form 4 insider buys & sells** (executive name, title, transaction code, shares, price per share, total dollar value, post-trade ownership, 10b5-1 trading plan flag) and **Form 13F-HR hedge fund portfolios** (issuer name, CUSIP, exact dollar value, share count, implied price, portfolio weight %) directly from official **SEC EDGAR XML filings**.

Built by **[MintSpread](https://mintspread.com)** — zero API keys, zero proxies, zero HTML scraping, automatic XSLT/namespace XML parsing, and **MCP-ready** for financial & quant AI agents.

***

### Why This Actor?

Most SEC tools only return filing index links. This Actor fetches and parses the **raw SEC XML documents** automatically:

- **Form 4 Insider Trading:** Strips SEC XSLT prefixes (`xslF345X06/`), parses every non-derivative (and optional derivative) transaction, computes exact `totalValueDollars`, flags `10b5-1` pre-scheduled plans, and filters open-market buys (`P`) and sales (`S`).
- **13F Hedge Fund Tracker:** Automatically discovers each fund's Information Table XML via EDGAR `index.json`, aggregates multi-manager sub-rows by CUSIP, computes `portfolioWeightPct` & `impliedPricePerShare`, and includes built-in shortcuts for major funds (`BERKSHIRE`, `BRIDGEWATER`, `SCION`, `PERSHING`, `CITADEL`, `RENAISSANCE`, `APPALOOSA`, `DUQUESNE`, `BAUPOST`, `TIGER`, `COATUE`, `VANGUARD`, `BLACKROCK`) plus any 10-digit SEC CIK.

***

### Connect via MCP Server (Claude Desktop / Cursor / Windsurf)

```json
{
  "mcpServers": {
    "apify-sec-insider-13f": {
      "url": "https://mcp.apify.com/?actors=mintspread/sec-insider-13f-tracker",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

### Example Input (Form 4 + 13F Combined)

```json
{
  "mode": "both",
  "tickers": ["AAPL", "NVDA", "MSFT"],
  "transactionCodes": ["P", "S"],
  "maxForm4FilingsPerTicker": 5,
  "funds": ["BERKSHIRE", "SCION"],
  "aggregateByCusip": true,
  "maxHoldingsPerFund": 25
}
```

### Example Form 4 Output Record

```json
{
  "recordType": "form4_transaction",
  "ticker": "AAPL",
  "issuerName": "Apple Inc.",
  "insiderName": "Khan Sabih",
  "officerTitle": "COO",
  "isOfficer": true,
  "is10b51Plan": false,
  "transactionDate": "2026-11-25",
  "transactionCode": "S",
  "transactionTypeLabel": "Open Market Sale",
  "shares": 10000,
  "pricePerShare": 235.5,
  "totalValueDollars": 2355000,
  "sharesOwnedAfter": 45000
}
```

### Example 13F-HR Output Record

```json
{
  "recordType": "13f_holding",
  "rank": 1,
  "fundName": "BERKSHIRE HATHAWAY INC",
  "fundCik": "0001067983",
  "reportDate": "2026-09-30",
  "issuerName": "APPLE INC",
  "cusip": "037833100",
  "putCall": "EQUITY",
  "valueDollars": 69900000000,
  "shares": 300000000,
  "impliedPricePerShare": 233,
  "portfolioWeightPct": 26.24
}
```

### Pricing

Simple **Pay-per-event** pricing (**$0.004 per extracted transaction or holding** / `$4.00 per 1,000 records`) with **free platform compute** — zero monthly rental fees.

*Explore more financial tools & calculators at [MintSpread.com](https://mintspread.com).*

# Actor input Schema

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

Choose 'form4' to parse executive Form 4 insider trades by stock ticker/CIK, '13f' to parse hedge fund 13F-HR portfolio holdings, or 'both'.

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

U.S. stock tickers (e.g., AAPL, NVDA, MSFT, TSLA) or 10-digit SEC CIKs to extract parsed Form 4 insider transactions.

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

Filter Form 4 transactions by SEC code: P (Open Market Buy), S (Open Market Sale), M (Option Exercise), A (Grant/Award), F (Tax Withholding), G (Gift). Leave empty for all codes.

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

Include derivative table transactions (stock options, RSUs, warrants) in addition to common stock transactions.

## `maxForm4FilingsPerTicker` (type: `integer`):

Maximum number of recent Form 4 XML filings to fetch and parse per ticker.

## `funds` (type: `array`):

Built-in aliases (BERKSHIRE, BRIDGEWATER, SCION, PERSHING, CITADEL, RENAISSANCE, APPALOOSA, DUQUESNE, BAUPOST, TIGER, COATUE, VANGUARD, BLACKROCK) or any institutional 10-digit SEC CIK.

## `aggregateByCusip` (type: `boolean`):

Combine multi-manager sub-rows for the same CUSIP and equity/option type, compute portfolioWeightPct, and sort largest holdings first.

## `minPositionValueDollars` (type: `integer`):

Only return 13F holdings with market value greater than or equal to this dollar amount (0 for all).

## `maxHoldingsPerFund` (type: `integer`):

Maximum number of top 13F holdings to output per fund.

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

Only process filings submitted on or after this date (YYYY-MM-DD).

## Actor input object example

```json
{
  "mode": "form4",
  "tickers": [
    "AAPL",
    "NVDA",
    "MSFT"
  ],
  "transactionCodes": [
    "P",
    "S"
  ],
  "includeDerivatives": false,
  "maxForm4FilingsPerTicker": 5,
  "funds": [
    "BERKSHIRE",
    "SCION"
  ],
  "aggregateByCusip": true,
  "minPositionValueDollars": 0,
  "maxHoldingsPerFund": 50,
  "sinceDate": ""
}
```

# Actor output Schema

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

// Run the Actor and wait for it to finish
const run = await client.actor("mintspread/sec-insider-13f-tracker").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("mintspread/sec-insider-13f-tracker").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 mintspread/sec-insider-13f-tracker --silent --output-dataset

```

## MCP server setup

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

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/RxTsfscAoi7ZLvcch/builds/mCwtgrrtE5MmaKgXS/openapi.json
