{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Insider Trading Scraper & Form 4 API: Insider Buying Data",
    "description": "Every insider buy and sell from SEC Form 4 filings on EDGAR: ticker, insider name and title, shares, price, trade value, shares owned after, % change in holding and 10b5-1 plan flag. Daily feed, any ticker or insider, history back to 2003. No API key.",
    "version": "0.0",
    "x-build-id": "ujHNFPacDyclcFY64"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/epicscrapers~sec-insider-trading-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-epicscrapers-sec-insider-trading-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/epicscrapers~sec-insider-trading-scraper/runs": {
      "post": {
        "operationId": "runs-sync-epicscrapers-sec-insider-trading-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/epicscrapers~sec-insider-trading-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-epicscrapers-sec-insider-trading-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "tickers": {
            "title": "Tickers",
            "type": "array",
            "description": "Stock tickers such as AAPL or NVDA (or company CIK numbers). Leave empty for every company: the whole SEC Form 4 feed.",
            "items": {
              "type": "string"
            }
          },
          "insiders": {
            "title": "Insiders",
            "type": "array",
            "description": "Only trades by these insiders: a name as filed (for example Musk Elon, or Berkshire Hathaway) or the insider's SEC CIK number. Leave empty for every insider.",
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Filed in the last N days",
            "minimum": 1,
            "maximum": 9000,
            "type": "integer",
            "description": "How many days back to search, counting today. Ignored when a start date is set. Insiders must file within 2 business days of a trade.",
            "default": 7
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First filing date to include, any date from 2003 on (for example 2025-01-01 for a full history). Overrides 'Filed in the last N days'."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last filing date to include. Defaults to today."
          },
          "transactionTypes": {
            "title": "Transaction types",
            "type": "array",
            "description": "Form 4 transaction codes to keep. The default, open market purchases (P) and sales (S), are the trades insiders chose to make with their own money. Empty keeps every type, including grants, option exercises and tax withholding.",
            "items": {
              "type": "string",
              "enum": [
                "P",
                "S",
                "A",
                "M",
                "F",
                "G",
                "D",
                "C",
                "X",
                "J",
                "I",
                "W",
                "L",
                "E",
                "H",
                "O",
                "K",
                "U",
                "Z"
              ],
              "enumTitles": [
                "P: Open market purchase",
                "S: Open market sale",
                "A: Grant or award",
                "M: Option or RSU exercise",
                "F: Shares withheld for tax",
                "G: Gift",
                "D: Sale back to the company",
                "C: Conversion",
                "X: In-the-money option exercise",
                "J: Other",
                "I: Discretionary",
                "W: Will or inheritance",
                "L: Small acquisition",
                "E: Short derivative expired",
                "H: Long derivative expired",
                "O: Out-of-the-money option exercise",
                "K: Equity swap",
                "U: Tender in change of control",
                "Z: Voting trust"
              ]
            },
            "default": [
              "P",
              "S"
            ]
          },
          "insiderRoles": {
            "title": "Insider roles",
            "type": "array",
            "description": "Only insiders with one of these roles. CEO and CFO are matched on the officer title. Empty keeps everyone.",
            "items": {
              "type": "string",
              "enum": [
                "ceo",
                "cfo",
                "officer",
                "director",
                "tenPercentOwner",
                "other"
              ],
              "enumTitles": [
                "CEO or President",
                "CFO or Treasurer",
                "Any officer",
                "Director",
                "10% owner",
                "Other"
              ]
            }
          },
          "minValue": {
            "title": "Minimum trade value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only trades worth at least this much (shares × price). Trades without a price, such as grants and gifts, are dropped when this is set.",
            "default": 0
          },
          "excludePlannedTrades": {
            "title": "Exclude 10b5-1 plan trades",
            "type": "boolean",
            "description": "Drop trades made under a pre-scheduled Rule 10b5-1 trading plan (checkbox on the form or a footnote naming the plan). What's left are trades the insider decided on at the time.",
            "default": false
          },
          "includeDerivativeTransactions": {
            "title": "Include options and other derivatives",
            "type": "boolean",
            "description": "Also return rows from the derivative table of Form 4 (stock options, RSUs, warrants, convertible notes). Off returns stock trades only.",
            "default": false
          },
          "includeAmendments": {
            "title": "Include amended filings (4/A)",
            "type": "boolean",
            "description": "Also return Form 4/A amendments, which correct an earlier filing.",
            "default": false
          },
          "combineTransactions": {
            "title": "One row per trade",
            "type": "boolean",
            "description": "Merge lines of the same security, day and type into one row with the total shares, the weighted average price and the price range. A sale filled at 27 prices becomes one row. Off returns every line as filed.",
            "default": true
          },
          "onlyNewFilings": {
            "title": "Only new filings",
            "type": "boolean",
            "description": "Skip filings returned by earlier runs of the same task, so a scheduled task delivers each trade once. Memory is kept per task (or per input when run without a task).",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of rows to save. 0 means no limit (the run still stops at your spending limit).",
            "default": 100
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}