# Insider buying: open-market stock purchases by insiders

**Use case:** 

Every open-market purchase (Form 4 code P) by directors and officers of US companies filed in the last day, with shares, price and value.

## Input

```json
{
  "tickers": [
    "NVDA",
    "AAPL",
    "MSFT",
    "AMZN",
    "META",
    "GOOGL",
    "TSLA",
    "AVGO"
  ],
  "filedWithinDays": 1,
  "transactionCodes": [
    "P"
  ],
  "excludePlannedTrades": false,
  "includeDerivative": false,
  "includeAmendments": false,
  "maxResults": 200,
  "onlyNew": false
}
```

## Output

```json
{
  "filedAt": {
    "label": "Filed on",
    "format": "date"
  },
  "ticker": {
    "label": "Ticker",
    "format": "text"
  },
  "issuerName": {
    "label": "Company",
    "format": "text"
  },
  "insiderName": {
    "label": "Insider",
    "format": "text"
  },
  "insiderRoles": {
    "label": "Role",
    "format": "text"
  },
  "transactionDate": {
    "label": "Trade date",
    "format": "date"
  },
  "transactionCode": {
    "label": "Code",
    "format": "text"
  },
  "transactionType": {
    "label": "Transaction",
    "format": "text"
  },
  "shares": {
    "label": "Shares",
    "format": "number"
  },
  "pricePerShare": {
    "label": "Price (USD)",
    "format": "number"
  },
  "value": {
    "label": "Value (USD)",
    "format": "number"
  },
  "sharesOwnedAfter": {
    "label": "Owned after",
    "format": "number"
  },
  "planned10b5_1": {
    "label": "10b5-1 plan",
    "format": "boolean"
  },
  "filingUrl": {
    "label": "Filing",
    "format": "link"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The SEC Insider Trading Scraper: Form 4 Buys & Sells Actor is ready to run with the inputs already set for "Insider buying: open-market stock purchases by insiders". [Sign up or log in](https://console.apify.com/create-task-from-example/HSNjPhrFJOFwZUlud) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Insider buying: open-market stock purchases by insiders" task

The SEC Insider Trading Scraper: Form 4 Buys & Sells Actor will start running based on the input automatically. You can also change all the input fields, like tickers, filed within (days), and more, to match your specific use case.

### 3. Receive the "Insider buying: open-market stock purchases by insiders" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as filed on, ticker, company, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Insider buying: open-market stock purchases by insiders" task via API](https://apify.com/digital_influx/sec-insider-trades.md).

## FAQ

### What does the SEC Insider Trading Scraper return?

One row per transaction from Form 4 filings: insider, role, company ticker, transaction code, shares, price, value, holdings after the trade and whether it was under a Rule 10b5-1 plan.

### Where does the data come from?

From EDGAR, the SEC's public system: the daily form index and each Form 4 XML. No account or API key is needed. It makes at most 5 requests per second with a declared User-Agent.

### Is it real-time?

No. Insiders have two business days to file and EDGAR publishes each day's index after the day ends, so today's filings appear tomorrow. Daily runs with "Only new" get each filing once.

### How do I speed up a run or narrow results?

Provide tickers, so only those companies' filings are opened. Without them, a day is about 750 filings. You can also filter by transaction code, role, minimum value and exclude planned trades.

## About this Actor

This example demonstrates how to use [SEC Insider Trading Scraper: Form 4 Buys & Sells](https://apify.com/digital_influx/sec-insider-trades.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/digital_influx/sec-insider-trades.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/digital_influx/sec-insider-trades.md

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`).
