vøiddo guidesAll Actors on Apify

Insider Trades Scraper: how to get SEC EDGAR Form 4 by Ticker as JSON/CSV (API, Python, no code)

Pull clean, parsed Form 4 insider trades from SEC EDGAR by ticker. This guide shows the output fields, a working input, and Python, JavaScript and cURL code for the Actor v0iddo/sec-form4-insider-trades on Apify.

Open Insider Trades Scraper on Apify

What data you get

One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.

FieldLabelTypeExample
tickerTickertextAAPL
companyCikCompany Ciknumber320193
companyNameCompany NametextApple Inc.
insiderNameInsider Nametext
insiderCikInsider Ciknumber
insiderRolesInsider Roleslist
officerTitleOfficer Titletext
accessionNumberAccession Numbertext0001140361-26-040540
filingDateFiling Datedate2026-10-22
periodOfReportPeriod Of Reportdate2026-10-20
filingUrlFiling UrlURLhttps://www.sec.gov/Archives/edgar/data/320193/000114036126040540/0...
xmlUrlXml UrlURLhttps://www.sec.gov/Archives/edgar/data/320193/000114036126040540/f...
transactionDatetext2026-10-20
transactionCodetextS
transactionCodeLabeltextOpen market sale
securityTitletextCommon Stock
sharesnumber2399
pricePerSharenumber339.62
totalValueUsdnumber814748.38
acquiredOrDisposedtextD
sharesOwnedAfterTransactionnumber34795
isDerivativetrue/falsefalse

Input example

This is the input that is pre-filled on the Actor page. Change the values for your own run.

{
  "tickers": [
    "AAPL",
    "META"
  ]
}
Input fieldTypeWhat it does
tickers (required)arrayStock tickers, e.g. AAPL, META.
sinceDaysintegerHow many days back from today to scan filings.
sincestringOverrides 'sinceDays' if set.
untilstringInclusive. Defaults to today.
includeDerivativesbooleanMost Form 4s are common-stock.
userAgentstringSEC requires a contact in the UA header.

Output sample

Real rows from a run of the Actor. Fields that name people are left out of the sample.

[
  {
    "ticker": "AAPL",
    "companyCik": 320193,
    "companyName": "Apple Inc.",
    "accessionNumber": "0001140361-26-040540",
    "filingDate": "2026-10-22",
    "periodOfReport": "2026-10-20",
    "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000114036126040540/0001140361-26-040540-index.htm",
    "xmlUrl": "https://www.sec.gov/Archives/edgar/data/320193/000114036126040540/form4.xml",
    "transactionDate": "2026-10-20",
    "transactionCode": "S",
    "transactionCodeLabel": "Open market sale",
    "securityTitle": "Common Stock",
    "shares": 2399,
    "pricePerShare": 339.62,
    "totalValueUsd": 814748.38,
    "acquiredOrDisposed": "D",
    "sharesOwnedAfterTransaction": 34795,
    "isDerivative": false
  },
  {
    "ticker": "AAPL",
    "companyCik": 320193,
    "companyName": "Apple Inc.",
    "accessionNumber": "0001140361-26-040127",
    "filingDate": "2026-10-19",
    "periodOfReport": "2026-10-15",
    "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000114036126040127/0001140361-26-040127-index.htm",
    "xmlUrl": "https://www.sec.gov/Archives/edgar/data/320193/000114036126040127/form4.xml",
    "transactionDate": "2026-10-15",
    "transactionCode": "M",
    "transactionCodeLabel": "Exercise of derivative",
    "securityTitle": "Common Stock",
    "shares": 1714,
    "acquiredOrDisposed": "A",
    "sharesOwnedAfterTransaction": 40451,
    "isDerivative": false
  }
]

Code: Python, JavaScript and cURL

Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/sec-form4-insider-trades.

Python (apify-client)

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {'tickers': ['AAPL', 'META']}

run = client.actor("v0iddo/sec-form4-insider-trades").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

JavaScript (apify-client)

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const input = {
  "tickers": [
    "AAPL",
    "META"
  ]
};

const run = await client.actor('v0iddo/sec-form4-insider-trades').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

cURL

curl -X POST "https://api.apify.com/v2/acts/v0iddo~sec-form4-insider-trades/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"tickers": ["AAPL", "META"]}'

Price

$2.32 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $1.62 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.

FAQ

What data does the Insider Trades Scraper return?

Each result is one row in an Apify dataset. Fields include ticker, companyCik, companyName, insiderName, insiderCik, insiderRoles, officerTitle, accessionNumber, and more. The table above shows every field with an example value.

How do I use the Insider Trades Scraper from Python?

Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/sec-form4-insider-trades with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.

Can I use it without writing code?

Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.

How much does it cost?

$2.32 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $1.62 per 1,000. A new Apify account gets $5 of platform credit every month.

How do I limit the number of results?

Set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.

Can I send the results to Google Sheets, Make, Zapier or n8n?

Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.

Open Insider Trades Scraper on Apify

Related guides