SEC API docs ▾

Form 4 API: insider buys and sales as JSON

Uses Insider trading

A Form 4 is due within two business days of an insider's trade. The SEC publishes it as XML inside a filing, with one row per transaction and codes for what kind of trade it was. The insider trades endpoint parses that into one record per filing and insider, with the purchases and sales already added up in dollars.

The fields you'll filter on most

  • transactionCodes: P is an open-market purchase, S a sale, M an option exercise, A a grant, F shares withheld for tax, G a gift. Only P and S are trades the insider chose to make at market.
  • purchased.valueUsd and sold.valueUsd: the filing's purchases and sales in dollars, so a filter like purchased.valueUsd:>250000 works without parsing each row.
  • reportingOwner.cik: the insider's own CIK. Names are spelled differently from filing to filing; the CIK isn't.
  • reportingOwner.isOfficer, isDirector, isTenPercentOwner and officerTitle: who they are at the company.
  • rule10b51: true when the trades were made under a pre-arranged 10b5-1 plan, which makes a sale much less informative.

Large open-market buys

Which insiders bought more than $1 million of their own company's stock in the last 30 days?

Large open-market buys are the insider signal most studies find worth watching.

shell
curl -X POST https://www.quantisnow.com/api/v1/insider-trades \
  -H "Authorization: Bearer $QUANTISNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "formType:4 AND transactionCodes:P AND purchased.valueUsd:>1000000 AND filedAt:[2026-10-25 TO 2026-11-24]",
  "from": 0,
  "size": 5,
  "sort": [
    {
      "purchased.valueUsd": {
        "order": "desc"
      }
    }
  ]
}'

136 matches, first 5

  1. MGM logo
    MGMKeith A. Meister bought $51.7MForm 4 · MGM Resorts International · Nov 3, 2026$51.7M
  2. ROL logo
    ROLR. Randall Rollins Voting Trust U/A dated August 25, 1994 bought $50.0MForm 4/A · Rollins Inc · Nov 2, 2026$50.0M
  3. ROL logo
    ROLLor Inc bought $50.0MForm 4 · Rollins Inc · Nov 2, 2026$50.0M
  4. BBTX logo
    BBTXRA Capital Management, L.P. bought $46.6MForm 4 · Bambusa Therapeutics, Inc. · Nov 3, 2026$46.6M
  5. KNOP logo
    KNOPTrygve Seglem bought $43.5MForm 4 · KNOT Offshore Partners LP · Nov 4, 2026$43.5M
The JSON it returned
200 OK · 136 matches · first 5
{
  "total": {
    "value": 136,
    "relation": "eq"
  },
  "data": [
    {
      "id": "0001011438-26-000643:0001307631",
      "accessionNo": "0001011438-26-000643",
      "formType": "4",
      "amendment": false,
      "restatesEarlier": false,
      "filedAt": "2026-11-03T16:35:59-05:00",
      "transactionDate": "2026-11-02",
      "issuer": {
        "cik": "0000789570",
        "name": "MGM Resorts International",
        "ticker": "MGM"
      },
      "reportingOwner": {
        "cik": "0001307631",
        "name": "Meister Keith A.",
        "officerTitle": null,
        "isDirector": true,
        "isOfficer": false,
        "isTenPercentOwner": false
      },
      "transactionCodes": [
        "P"
      ],
      "purchased": {
        "shares": 1745592,
        "valueUsd": 51740827.48
      },
      "sold": {
        "shares": 0,
        "valueUsd": 0
      },
      "sharesOwnedAfter": null,
      "rule10b51": false,
      "linkToFilingIndex": "https://www.sec.gov/Archives/edgar/data/789570/000101143826000643/0001011438-26-000643-index.htm"
    },
    {
      "id": "0001104659-26-121503:0001820515",
      "accessionNo": "0001104659-26-121503",
      "formType": "4/A",
      "amendment": true,
      "restatesEarlier": false,
      "filedAt": "2026-11-02T17:47:09-05:00",
      "transactionDate": "2026-10-29",
      "issuer": {
        "cik": "0000084839",
        "name": "Rollins Inc",
        "ticker": "ROL"
      },
      "reportingOwner": {
        "cik": "0001820515",
        "name": "R. Randall Rollins Voting Trust U/A dated August 25, 1994",
        "officerTitle": null,
        "isDirector": false,
        "isOfficer": false,
        "isTenPercentOwner": true
      },
      "transactionCodes": [
        "P"
      ],
      "purchased": {
        "shares": 1444402,
        "valueUsd": 49956665.33
      },
      "sold": {
        "shares": 0,
        "valueUsd": 0
      },
      "sharesOwnedAfter": null,
      "rule10b51": false,
      "linkToFilingIndex": "https://www.sec.gov/Archives/edgar/data/84839/000110465926121503/0001104659-26-121503-index.htm"
    },
    {
      "id": "0001104659-26-121502:0001212243",
      "accessionNo": "0001104659-26-121502",
      "formType": "4",
      "amendment": false,
      "restatesEarlier": false,
      "filedAt": "2026-11-02T17:45:33-05:00",
      "transactionDate": "2026-10-29",
      "issuer": {
        "cik": "0000084839",
        "name": "Rollins Inc",
        "ticker": "ROL"
      },
      "reportingOwner": {
        "cik": "0001212243",
        "name": "LOR INC",
        "officerTitle": null,
        "isDirector": false,
        "isOfficer": false,
        "isTenPercentOwner": true
      },
      "transactionCodes": [
        "P"
      ],
      "purchased": {
        "shares": 1444402,
        "valueUsd": 49956665.33
      },
      "sold": {
        "shares": 0,
        "valueUsd": 0
      },
      "sharesOwnedAfter": 146728468,
      "rule10b51": false,
      "linkToFilingIndex": "https://www.sec.gov/Archives/edgar/data/84839/000110465926121502/0001104659-26-121502-index.htm"
    },
    {
      "id": "0001231919-26-001533:0001346824",
      "accessionNo": "0001231919-26-001533",
      "formType": "4",
      "amendment": false,
      "restatesEarlier": false,
      "filedAt": "2026-11-03T18:10:31-05:00",
      "transactionDate": "2026-11-02",
      "issuer": {
        "cik": "0002044950",
        "name": "Bambusa Therapeutics, Inc.",
        "ticker": "BBTX"
      },
      "reportingOwner": {
        "cik": "0001346824",
        "name": "RA CAPITAL MANAGEMENT, L.P.",
        "officerTitle": null,
        "isDirector": true,
        "isOfficer": false,
        "isTenPercentOwner": true
      },
      "transactionCodes": [
        "C",
        "P"
      ],
      "purchased": {
        "shares": 2953820,
        "valueUsd": 46639957.19
      },
      "sold": {
        "shares": 0,
        "valueUsd": 0
      },
      "sharesOwnedAfter": null,
      "rule10b51": false,
      "linkToFilingIndex": "https://www.sec.gov/Archives/edgar/data/2044950/000123191926001533/0001231919-26-001533-index.htm"
    },
    {
      "id": "0001104659-26-122691:0001681573",
      "accessionNo": "0001104659-26-122691",
      "formType": "4",
      "amendment": false,
      "restatesEarlier": false,
      "filedAt": "2026-11-04T16:16:26-05:00",
      "transactionDate": "2026-11-03",
      "issuer": {
        "cik": "0001564180",
        "name": "KNOT Offshore Partners LP",
        "ticker": "KNOP"
      },
      "reportingOwner": {
        "cik": "0001681573",
        "name": "Seglem Trygve",
        "officerTitle": null,
        "isDirector": true,
        "isOfficer": false,
        "isTenPercentOwner": false
      },
      "transactionCodes": [
        "P"
      ],
      "purchased": {
        "shares": 2083333,
        "valueUsd": 43499993.04
      },
      "sold": {
        "shares": 0,
        "valueUsd": 0
      },
      "sharesOwnedAfter": null,
      "rule10b51": false,
      "linkToFilingIndex": "https://www.sec.gov/Archives/edgar/data/1564180/000110465926122691/0001104659-26-122691-index.htm"
    }
  ]
}
Edit this query in the playground

One person's sales, by CIK

How much Snowflake stock has Frank Slootman sold in the last six months?

Follow one person across every filing by their CIK, not their name, which is spelled differently from form to form.

shell
curl -X POST https://www.quantisnow.com/api/v1/insider-trades \
  -H "Authorization: Bearer $QUANTISNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "reportingOwner.cik:0001402348 AND sold.valueUsd:>0 AND filedAt:[2026-05-28 TO 2026-11-24]",
  "from": 0,
  "size": 5,
  "sort": [
    {
      "filedAt": {
        "order": "desc"
      }
    }
  ]
}'

13 matches, first 5

  1. SNOW logo
    SNOWFrank Slootman sold $84.4MForm 4 · Snowflake Inc. · Nov 20, 2026$84.4M
  2. SNOW logo
    SNOWFrank Slootman sold $100.3MForm 4 · Snowflake Inc. · Sep 22, 2026$100.3M
  3. SNOW logo
    SNOWFrank Slootman sold $2.6MForm 4 · Snowflake Inc. · Sep 16, 2026$2.6M
  4. SNOW logo
    SNOWFrank Slootman sold $97.4MForm 4 · Snowflake Inc. · Aug 20, 2026$97.4M
  5. SNOW logo
    SNOWFrank Slootman sold $82.3MForm 4 · Snowflake Inc. · Jul 22, 2026$82.3M
The JSON it returned
200 OK · 13 matches · first 5
{
  "total": {
    "value": 13,
    "relation": "eq"
  },
  "data": [
    {
      "id": "0001402348-26-000021:0001402348",
      "accessionNo": "0001402348-26-000021",
      "formType": "4",
      "amendment": false,
      "restatesEarlier": false,
      "filedAt": "2026-11-20T19:04:09-05:00",
      "transactionDate": "2026-11-19",
      "issuer": {
        "cik": "0001640147",
        "name": "Snowflake Inc.",
        "ticker": "SNOW"
      },
      "reportingOwner": {
        "cik": "0001402348",
        "name": "Slootman Frank",
        "officerTitle": null,
        "isDirector": true,
        "isOfficer": false,
        "isTenPercentOwner": false
      },
      "transactionCodes": [
        "M",
        "S"
      ],
      "purchased": {
        "shares": 0,
        "valueUsd": 0
      },
      "sold": {
        "shares": 300000,
        "valueUsd": 84365360.07
      },
      "sharesOwnedAfter": 19024,
      "rule10b51": true,
      "linkToFilingIndex": "https://www.sec.gov/Archives/edgar/data/1640147/000140234826000021/0001402348-26-000021-index.htm"
    },
    {
      "id": "0001628280-26-063114:0001402348",
      "accessionNo": "0001628280-26-063114",
      "formType": "4",
      "amendment": false,
      "restatesEarlier": false,
      "filedAt": "2026-09-22T19:18:29-04:00",
      "transactionDate": "2026-09-21",
      "issuer": {
        "cik": "0001640147",
        "name": "Snowflake Inc.",
        "ticker": "SNOW"
      },
      "reportingOwner": {
        "cik": "0001402348",
        "name": "Slootman Frank",
        "officerTitle": null,
        "isDirector": true,
        "isOfficer": false,
        "isTenPercentOwner": false
      },
      "transactionCodes": [
        "M",
        "S"
      ],
      "purchased": {
        "shares": 0,
        "valueUsd": 0
      },
      "sold": {
        "shares": 300000,
        "valueUsd": 100345541.19
      },
      "sharesOwnedAfter": 19024,
      "rule10b51": true,
      "linkToFilingIndex": "https://www.sec.gov/Archives/edgar/data/1640147/000162828026063114/0001628280-26-063114-index.htm"
    },
    {
      "id": "0001402348-26-000018:0001402348",
      "accessionNo": "0001402348-26-000018",
      "formType": "4",
      "amendment": false,
      "restatesEarlier": false,
      "filedAt": "2026-09-16T20:36:26-04:00",
      "transactionDate": "2026-09-16",
      "issuer": {
        "cik": "0001640147",
        "name": "Snowflake Inc.",
        "ticker": "SNOW"
      },
      "reportingOwner": {
        "cik": "0001402348",
        "name": "Slootman Frank",
        "officerTitle": null,
        "isDirector": true,
        "isOfficer": false,
        "isTenPercentOwner": false
      },
      "transactionCodes": [
        "F",
        "S"
      ],
      "purchased": {
        "shares": 0,
        "valueUsd": 0
      },
      "sold": {
        "shares": 8191,
        "valueUsd": 2608915.41
      },
      "sharesOwnedAfter": 19024,
      "rule10b51": true,
      "linkToFilingIndex": "https://www.sec.gov/Archives/edgar/data/1640147/000140234826000018/0001402348-26-000018-index.htm"
    },
    {
      "id": "0001402348-26-000017:0001402348",
      "accessionNo": "0001402348-26-000017",
      "formType": "4",
      "amendment": false,
      "restatesEarlier": false,
      "filedAt": "2026-08-20T19:51:49-04:00",
      "transactionDate": "2026-08-19",
      "issuer": {
        "cik": "0001640147",
        "name": "Snowflake Inc.",
        "ticker": "SNOW"
      },
      "reportingOwner": {
        "cik": "0001402348",
        "name": "Slootman Frank",
        "officerTitle": null,
        "isDirector": true,
        "isOfficer": false,
        "isTenPercentOwner": false
      },
      "transactionCodes": [
        "M",
        "S"
      ],
      "purchased": {
        "shares": 0,
        "valueUsd": 0
      },
      "sold": {
        "shares": 300000,
        "valueUsd": 97425065.04
      },
      "sharesOwnedAfter": 28535,
      "rule10b51": true,
      "linkToFilingIndex": "https://www.sec.gov/Archives/edgar/data/1640147/000140234826000017/0001402348-26-000017-index.htm"
    },
    {
      "id": "0001402348-26-000016:0001402348",
      "accessionNo": "0001402348-26-000016",
      "formType": "4",
      "amendment": false,
      "restatesEarlier": false,
      "filedAt": "2026-07-22T19:52:02-04:00",
      "transactionDate": "2026-07-21",
      "issuer": {
        "cik": "0001640147",
        "name": "Snowflake Inc.",
        "ticker": "SNOW"
      },
      "reportingOwner": {
        "cik": "0001402348",
        "name": "Slootman Frank",
        "officerTitle": null,
        "isDirector": true,
        "isOfficer": false,
        "isTenPercentOwner": false
      },
      "transactionCodes": [
        "M",
        "S"
      ],
      "purchased": {
        "shares": 0,
        "valueUsd": 0
      },
      "sold": {
        "shares": 300000,
        "valueUsd": 82323691.06
      },
      "sharesOwnedAfter": 28535,
      "rule10b51": true,
      "linkToFilingIndex": "https://www.sec.gov/Archives/edgar/data/1640147/000140234826000016/0001402348-26-000016-index.htm"
    }
  ]
}
Edit this query in the playground

In Python

python
import os, requests

BASE = "https://www.quantisnow.com/api/v1"
KEY = os.environ["QUANTISNOW_API_KEY"]

def search(endpoint, query, size=50, sort=None, start=0):
    body = {"query": query, "size": size, "from": start}
    if sort:
        body["sort"] = sort
    res = requests.post(f"{BASE}/{endpoint}", json=body,
                        headers={"Authorization": f"Bearer {KEY}"}, timeout=30)
    res.raise_for_status()
    return res.json()

# Officers buying their own stock in the last two weeks, $100k or more
page = search(
    "insider-trades",
    "formType:4 AND transactionCodes:P AND reportingOwner.isOfficer:true "
    "AND purchased.valueUsd:>=100000 AND filedAt:[2026-11-09 TO 2026-11-23]",
    sort="purchased.valueUsd:desc",
)
for r in page["data"]:
    o = r["reportingOwner"]
    print(r["issuer"]["ticker"], o["name"], o["officerTitle"], round(r["purchased"]["valueUsd"]))

In JavaScript

javascript
const BASE = "https://www.quantisnow.com/api/v1";

async function search(endpoint, query, { size = 50, sort, from = 0 } = {}) {
  const res = await fetch(BASE + "/" + endpoint, {
    method: "POST",
    headers: {
      Authorization: "Bearer " + process.env.QUANTISNOW_API_KEY,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ query, size, from, sort }),
  });
  if (!res.ok) throw new Error((await res.json()).error.message);
  return res.json();
}

// Sales over $5M that were not under a 10b5-1 plan
const page = await search(
  "insider-trades",
  "formType:4 AND transactionCodes:S AND sold.valueUsd:>5000000 AND rule10b51:false",
  { sort: "sold.valueUsd:desc", size: 20 },
);
for (const r of page.data) {
  console.log(r.issuer.ticker, r.reportingOwner.name, Math.round(r.sold.valueUsd));
}

To group purchases into clusters of several insiders buying the same stock, see insider buying clusters. For selling that hasn't happened yet, see Form 144.

Related guides

Run your own queries with a key

Sign up, press one button on the keys page and the key is on your screen, with 20 free calls to try it.

Quantisnow is not affiliated with or endorsed by the U.S. Securities and Exchange Commission. EDGAR is the SEC's filing system; the filings themselves are public records.