> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# SEC Insider Trades API

> SEC Form 4 insider trades with filing URL, form type, filing date and issuer. Pass US tickers (SEC filers only) or filter by transaction code.

`POST /v1/data/sec/insider-trades/run`

**Pricing:** $0.01 per trade ($10.50 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**tickers** `string[]` *required*

One or more US stock tickers, e.g. AAPL or BRK-B. SEC data covers US-listed companies only: non-US listings (RELIANCE.NS) and market indices (NIFTY, SENSEX) are refused with a clear error. One request reads them all.

**daysBack** `integer` (default: 30)

Days Back as a whole number.

Min `1`; max `90`.

**transactionCodes** `string[]`

Which Form 4 transaction codes to include. Leave empty for P and S (open-market purchases and sales); pick All for every code. D, J and other rare codes cannot be filtered here: pick All and filter the Transaction Code column.

Allowed values: `P` (P: Open-market purchase), `S` (S: Open-market sale), `A` (A: Grant or award), `M` (M: Option exercise), `F` (F: Tax withholding), `G` (G: Gift), `C` (C: Conversion), `X` (X: Exercise of in-the-money derivative), `ALL` (All transaction codes).

**includeDerivatives** `boolean` (default: false)

Include Derivatives.

**maxResults** `integer` (default: 100)

How many trades to return in total. Defaults to 100; use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/sec/insider-trades/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "tickers": [
      "MSFT",
      "NVDA",
      "SPOT"
    ],
    "daysBack": 31,
    "transactionCodes": [
      "ALL"
    ],
    "includeDerivatives": true
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/sec/insider-trades/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "tickers": [
        "MSFT",
        "NVDA",
        "SPOT"
    ],
    "daysBack": 31,
    "transactionCodes": [
        "ALL"
    ],
    "includeDerivatives": True
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/sec/insider-trades/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "tickers": [
    "MSFT",
    "NVDA",
    "SPOT"
  ],
  "daysBack": 31,
  "transactionCodes": [
    "ALL"
  ],
  "includeDerivatives": true
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one trade, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `transactionId` | Transaction ID | text |
| `accessionNumber` | Accession Number | text |
| `filingUrl` | Filing URL | text |
| `formType` | Form Type | text |
| `filingDate` | Filing Date | date |
| `issuerTicker` | Issuer Ticker | text |
| `issuerName` | Issuer Name | text |
| `issuerCik` | Issuer Cik | text |
| `insiderName` | Insider Name | text |
| `insiderRole` | Insider Role | text |
| `isDirector` | Is Director | boolean |
| `isOfficer` | Is Officer | boolean |
| `isTenPercentOwner` | Is Ten Percent Owner | boolean |
| `transactionDate` | Transaction Date | date |
| `transactionCode` | Transaction Code | text |
| `transactionType` | Transaction Type | text |
| `securityTitle` | Security Title | text |
| `isDerivative` | Is Derivative | boolean |
| `acquiredDisposed` | Acquired Disposed | text |
| `shares` | Shares | number |
| `pricePerShare` | Price Per Share | number |
| `transactionValue` | Transaction Value | number |
| `sharesOwnedAfter` | Shares Owned After | number |
| `ownershipType` | Ownership Type | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "sec/insider-trades",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "insiderRole": "EVP, Chief Human Resources Off",
      "issuerName": "MICROSOFT CORP",
      "transactionId": "0000789019-26-000228-1",
      "sharesOwnedAfter": 50925.4591,
      "insiderName": "Coleman Amy",
      "transactionCode": "F",
      "accessionNumber": "0000789019-26-000228",
      "issuerCik": "789019",
      "transactionType": "Shares withheld for taxes",
      "isDirector": false,
      "filingUrl": "https://www.sec.gov/Archives/edgar/data/789019/000078901926000228/0000789019-26-000228-index.htm",
      "acquiredDisposed": "D",
      "pricePerShare": 533.69,
      "issuerTicker": "MSFT",
      "isDerivative": false,
      "shares": 31.944,
      "securityTitle": "Common Stock",
      "isOfficer": true,
      "formType": "4",
      "transactionDate": "2026-10-15",
      "isTenPercentOwner": false,
      "ownershipType": "D",
      "filingDate": "2026-10-15",
      "transactionValue": 17048.19
    }
  ]
}
```

## Related APIs

For insider holdings filings (Forms 3 and 5) use [`sec/insider-ownership`](https://docs.mindcase.co/apis/sec/insider-ownership); for 5%+ holders use [`sec/beneficial-ownership`](https://docs.mindcase.co/apis/sec/beneficial-ownership); for trades by members of Congress use [`congress/trades`](https://docs.mindcase.co/apis/congress/trades).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.