# SEC Form 4 Insider Trading Data API by Ticker or CIK (`scrape_api/sec-insider-trading`) Actor

SEC Form 4 insider trading data and Form 4 filings by ticker or CIK: one row per reported transaction with reporting owners, roles, direction, shares, prices, transaction dates, derivatives, amendments and official SEC document links. $0.002 per delivered transaction row.

- **URL**: https://apify.com/scrape_api/sec-insider-trading.md
- **Developed by:** [Scrape_API](https://apify.com/scrape_api) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 transaction rows

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/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

## SEC Form 4 Insider Trading Data API by Ticker or CIK

Get SEC Form 4 insider trading data for one company and filing-date window: one dataset row per reported transaction, with reporting owners, roles, direction, shares, price, transaction date and a link to the official filing. This Actor reads the public ownership documents that issuers file with the SEC, so every row stays checkable against its source document.

Analysts, portfolio researchers, data engineers and compliance teams use it to follow disclosed insider activity without building their own Form 4 parser: the recent purchases and sales of a watch list, every transaction a named officer filed during a quarter, or a table of transactions ready to join to another company dataset. It includes ordinary securities and, when requested, derivative transactions from Table II. Holdings that do not represent a transaction are excluded.

### What this SEC Form 4 Actor does

- **One company per run.** Give a ticker such as `AAPL` or a CIK such as `0000320193` plus a filing-date window, and the Actor collects that company's Form 4 filings in the window.
- **One row per transaction.** Table I and, when enabled, Table II become separate rows carrying quantity, price, direction and the transaction code the filer reported.
- **Owners and roles on the row.** Every reporting owner keeps their name, owner CIK, director and officer flags, ten-percent-owner flag and reported officer title, so a row answers who filed it without a second lookup.
- **Source context preserved.** Accession number, filing date, exact form, primary document link, filing index link, footnotes and signature details stay attached to the transaction.
- **Resumable collection.** Long windows continue across continuation pages automatically; standalone API clients receive a `next_cursor` and repeat the original selection with it.

### Input: choose a company and filing dates

Provide exactly one identifier: `ticker`, such as `AAPL`, or `cik`, such as `0000320193`. CIK input accepts leading zeroes or a `CIK` prefix. A ticker is resolved using the SEC company list; matching is exact after trimming spaces and converting letters to uppercase. Company-name search and portfolio input are outside this Actor's scope.

`date_from` and `date_to` select filing dates, inclusive. If omitted, `date_to` is the current UTC date and `date_from` is thirty calendar days earlier. The earliest supported filing-date start is 2004-01-01. Historical submissions are searched when their dates overlap your requested window.

The filing date is the date a disclosure was submitted. It may differ from the date the insider completed the transaction. Optional `transaction_date_from` and `transaction_date_to` apply an additional transaction-date filter within the selected filings. They do not expand the filing search window. To find late disclosures, select a sufficiently broad filing-date window.

Set `transaction_codes` to an array of exact SEC codes, or leave it empty to include all reported codes. For example, `P` selects purchases and `S` selects sales. Codes for awards, gifts, exercises and tax withholding remain available and retain their original meaning.

`include_derivatives` defaults to true and includes Table II as well as Table I. `include_amendments` also defaults to true. Amendments remain separate filings with their own accession numbers; they are not treated as complete replacements for an original disclosure. `max_results` defaults to 100 and sets the total transaction limit for the entire run, from 1 to 5,000.

### Output: SEC Form 4 transactions with source context

Every transaction includes the issuer's normalized ten-digit CIK, issuer name, source ticker, accession number, filing date, exact form, raw document link and filing index link. The `date` field is the filing date. The separate `transaction_date` field comes from the ownership document.

`reporting_owners` preserves reporting names, owner CIKs, director and officer flags, ten-percent-owner and other relationship flags, and reported officer titles. The format retains every reporting owner without multiplying a transaction into multiple dataset rows. Joint-owner documents have not yet been validated against a captured joint-filing example.

Transaction fields include `transaction_code`, `direction`, `shares`, `price_per_share`, calculated `transaction_value`, `shares_owned_after`, ownership nature and security title. Direction is `buy` for P, `sell` for S and `other` for all other codes. Acquisition or disposition is retained separately; acquiring shares through an award is not automatically labelled a purchase.

A missing or footnote-only price is null. A reported zero remains zero. Fractional shares are preserved. The calculated value multiplies the reported quantity and price using decimal arithmetic; it is not a guaranteed cash-flow amount. A weighted average reported in the document remains that reported price, with its explanatory footnote.

Derivative rows additionally retain exercise or conversion price, exercise date, expiry date, underlying security title and underlying quantity. Derivative quantity is never replaced with underlying shares. Footnotes, references from individual fields, filing remarks and signatures remain available for checking source qualifications.

#### Example transaction row

A real row returned by this Actor for `cik` `320193` over a single filing date, abbreviated here to its main fields (the delivered row also carries `source`, `fetched_at`, `filing_type`, `source_form`, `primary_document`, `acceptance_datetime`, `is_amendment`, `period_of_report`, `original_submission_date`, `transaction_id`, `transaction_table`, `transaction_index`, `deemed_execution_date`, `direct_or_indirect`, `nature_of_ownership`, `equity_swap_involved`, `derivative`, `aff10b5_one`, `footnotes`, `footnote_refs`, `remarks` and `signatures`):

```json
{
  "jurisdiction": "US",
  "registry_id": "0000320193",
  "accession_number": "0001140361-26-042149",
  "date": "2026-11-05",
  "issuer_name": "Apple Inc.",
  "ticker": "AAPL",
  "document_url": "https://www.sec.gov/Archives/edgar/data/320193/000114036126042149/form4.xml",
  "filing_url": "https://www.sec.gov/Archives/edgar/data/320193/000114036126042149/0001140361-26-042149-index.htm",
  "reporting_owners": [
    {
      "cik": "0001780525",
      "name": "Newstead Jennifer",
      "is_director": false,
      "is_officer": true,
      "is_ten_percent_owner": false,
      "officer_title": "SVP, GC and Government Affairs"
    }
  ],
  "transaction_code": "S",
  "direction": "sell",
  "security_title": "Common Stock",
  "transaction_date": "2026-11-03",
  "acquired_disposed_code": "D",
  "shares": 2399,
  "price_per_share": 325.75,
  "transaction_value": 781474.25,
  "shares_owned_after": 29997
}
```

The input for that row was one CIK and one filing date. Run context (`query`, `next_cursor`, `partial`, `stop_reason`, `warnings`) lives in the run output beside the dataset, so a dataset consumer never has to parse it out of the rows.

### Continuation and completeness

The Actor automatically follows continuation pages. Standalone API clients receive `next_cursor` and repeat the original company and filters with that cursor. Resolved default dates remain fixed when a request continues across midnight. A modified cursor or changed selection is rejected.

Rows sort by filing date descending, accession ascending, Table I before Table II, then source transaction order. Each `transaction_id` identifies the issuer, filing, table and original transaction index. This keeps separate transactions distinct even when their dates and prices are identical.

Read `partial`, `stop_reason` and `warnings` before treating a run as complete. A result cap can leave additional source transactions uncollected. If a later document fails, already collected rows remain available and the affected filing is named in a warning. An exhausted selection without matching transactions returns a clear no-results error. Source availability and publication timing can affect freshness; this is not a real-time trade feed.

### Use cases

- **Watch-list monitoring.** Pull the last month of Form 4 filings for a set of tickers, one run per company, and alert on new purchases or sales by officers and directors.
- **Research and screening.** Filter a date window to code `P` or `S`, keep `shares`, `price_per_share` and `transaction_value`, and rank disclosed buys and sells across a sector.
- **Due diligence and compliance.** Reconstruct what a named insider reported for an issuer, with officer title, ten-percent-owner flag, footnotes and the original document links for review.
- **Dashboards and data pipelines.** Load one flat row per transaction into a table or index; join on `registry_id` for issuer data, `accession_number` for filing data and owner CIK for person data.
- **Model and agent context.** Hand a language model a bounded, structured set of transactions with their source links instead of raw ownership XML.

### How this Actor compares

The SEC's own EDGAR site publishes every Form 4 document for free, and its submissions API lists a company's filings by form type and date. Neither hands you parsed transactions: you still resolve identifiers, download each ownership document, and interpret tables, transaction codes, footnotes and amendments yourself. That is the cheapest route if you only need one company occasionally, and the one you outgrow when the window widens.

Free screeners such as [OpenInsider](http://openinsider.com/) and [InsiderScreener](https://www.insiderscreener.com/en/sec-form-4) show the same filings as a browsable table, which is enough for a quick look at one company or one insider. They are built for reading on screen: turning what you see there into rows you can store or join still means copying by hand, while this Actor returns each transaction as JSON with owner CIKs, transaction codes, footnotes and document links intact. Commercial feeds such as [sec-api.io](https://sec-api.io/) also sell parsed Form 4 transactions as a data feed; check their current pricing against the flat per-row price below.

[`s-r/sec-edgar-scraper`](https://apify.com/s-r/sec-edgar-scraper) covers the neighbouring problem: filing metadata and full-text search across EDGAR, without an ownership parser. Use it to find and link filings, and this Actor when the answer has to be the transactions themselves. Its rows join to these on `registry_id` and `accession_number`.

Other Actors in this Store sell the same filings under a different billing unit. Measured against their live pricing models on 12 November 2026: [`ryanclinton/sec-insider-trading`](https://apify.com/ryanclinton/sec-insider-trading) charges $0.002 per `trade-fetched` event plus an actor-start fee, and [`scrapemint/sec-form4-insider-tracker`](https://apify.com/scrapemint/sec-form4-insider-tracker) charges $0.025 per `filing_row` event, with its first two rows per run free. Check their Store pages for current terms; their event names describe their own units.

This Actor bills one unit: the delivered transaction row, at $0.002 per row. A document with several transactions produces several rows, and owners, derivatives, amendments, footnotes and links ride along in the same row instead of arriving as separately billed objects. Choose it when you want the underlying transactions with filing metadata you can join elsewhere; choose a monitoring or signal Actor when you want classifications, clusters or alerts computed for you.

### Pricing and limits

Billing is per delivered transaction row: $0.002 per row, about $2.00 per 1,000 delivered transactions, as shown on this Actor's Store pricing tab. A document containing several transactions produces several transaction rows. Holdings, reporting-owner objects, warnings and continuation metadata are not additional billable rows. The Actor does not charge a product start event, and an empty result has no transaction charge.

Accounts subject to the introductory volume limit receive at most ten transactions across the entire run, continuation pages included. That is a delivery limit: rows the Actor delivers under the cap are still billed at the listed row price, and transactions beyond the cap are not delivered and not billed. All delivered rows retain their source fields, including derivatives, footnotes and original filing links. Use a small `max_results` to validate a selection before starting a larger collection, and review the displayed Store pricing before a broad run.

### FAQ

#### What is SEC Form 4?

Form 4 is the statement companies file with the SEC when a director, officer or ten-percent owner reports a change in beneficial ownership. It states who transacted, on which security, how many shares, at what price and on what date, together with the filing metadata that identifies the document.

#### Can I search with a ticker instead of a CIK?

Yes. Supply one exact ticker or one issuer CIK. CIK input avoids ambiguity when tickers change; the output ticker still reflects the symbol reported in each document.

#### Does every acquired share count as an insider purchase?

No. Only source code P is labelled buy and S is labelled sell. Awards, exercises, gifts and other reported transaction codes retain direction other and their original code.

#### Why can the price be null?

The source may omit a numeric price or refer only to a footnote. The Actor retains null and the relevant note rather than inferring a price from prose or current market quotes.

#### Does an amendment replace the original filing?

No. A Form 4/A may describe corrections or additions without restating every transaction. Both accessions remain separate so you can interpret the amendment in context.

#### Can these rows join other company datasets?

Yes. Use `registry_id` for issuer CIK joins and `accession_number` for filing joins. Owner CIK identifies the reporting person or entity separately. A ticker can support market-data joins when you also account for its date and exchange context.

# Actor input Schema

## `ticker` (type: `string`):

Exact SEC ticker. Supply either ticker or cik, never both.

## `cik` (type: `string`):

Issuer CIK as text, 1 to 10 digits, optionally prefixed CIK. Leading zeroes are optional.

## `date_from` (type: `string`):

First filing date, inclusive, on or after 2004-01-01. Defaults to 30 calendar days before date_to.

## `date_to` (type: `string`):

Last filing date, inclusive. Defaults to the current UTC date.

## `transaction_date_from` (type: `string`):

Optional inclusive transaction-date postfilter inside the filing-date search window.

## `transaction_date_to` (type: `string`):

Optional inclusive transaction-date postfilter; does not extend filing coverage.

## `transaction_codes` (type: `array`):

Exact SEC transaction codes. Empty includes all source codes.

## `include_derivatives` (type: `boolean`):

Include Table II transactions as well as Table I.

## `include_amendments` (type: `boolean`):

Include Form 4/A as separate filings; original filings are not replaced.

## `max_results` (type: `integer`):

Total transaction delivery limit across all continuation pages.

## `cursor` (type: `string`):

Opaque signed continuation. Repeat the original company and filters; resolved defaults remain fixed.

## Actor input object example

```json
{
  "cik": "320193",
  "date_from": "2026-11-05",
  "date_to": "2026-11-05",
  "transaction_codes": [],
  "include_derivatives": true,
  "include_amendments": true,
  "max_results": 100
}
```

# Actor output Schema

## `transactions` (type: `string`):

One row per source transaction.

## `output` (type: `string`):

Query, counts, warnings and continuation status.

# 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 = {
    "cik": "320193",
    "date_from": "2026-11-05",
    "date_to": "2026-11-05"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrape_api/sec-insider-trading").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 = {
    "cik": "320193",
    "date_from": "2026-11-05",
    "date_to": "2026-11-05",
}

# Run the Actor and wait for it to finish
run = client.actor("scrape_api/sec-insider-trading").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 '{
  "cik": "320193",
  "date_from": "2026-11-05",
  "date_to": "2026-11-05"
}' |
apify call scrape_api/sec-insider-trading --silent --output-dataset

```

## MCP server setup

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

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/FmU7aGby5v70yyn6b/builds/jk2TEu2WIh1LV4q2y/openapi.json
