{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Insider Trading Scraper: Form 4 Buys and Sells",
    "description": "Track insider buying and selling from SEC Form 4 filings by ticker or across all companies. Get every transaction with insider role, shares, price, value, holdings change, 10b5-1 plan flag and days to file. Company summaries show net buying, unique buyers and cluster buying.",
    "version": "1.0",
    "x-build-id": "uHeOWZHGDbcNKVmCW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parselab~sec-insider-trading-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parselab-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/parselab~sec-insider-trading-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parselab-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/parselab~sec-insider-trading-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parselab-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": {
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000."
          },
          "mode": {
            "title": "What to collect",
            "enum": [
              "transactions",
              "summary"
            ],
            "type": "string",
            "description": "Transactions returns one row per insider transaction reported on Form 4. Company summary returns one row per company with the net insider buying and selling of the period, unique buyers and a cluster buying flag.",
            "default": "transactions"
          },
          "tickers": {
            "title": "Stock tickers",
            "type": "array",
            "description": "Tickers of the companies to follow, for example AAPL, NVDA, TSLA. Leave empty together with the company IDs to scan all companies in the date range.",
            "items": {
              "type": "string"
            }
          },
          "ciks": {
            "title": "Company IDs (CIK)",
            "type": "array",
            "description": "SEC company numbers, for companies that have no ticker or when you prefer the number, for example 320193.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Filed from",
            "type": "string",
            "description": "First filing date, YYYY-MM-DD. The default is 90 days ago."
          },
          "dateTo": {
            "title": "Filed to",
            "type": "string",
            "description": "Last filing date, YYYY-MM-DD. The default is today."
          },
          "openMarketOnly": {
            "title": "Open market buys and sells only",
            "type": "boolean",
            "description": "Keep only purchases and sales made on the market. This removes grants, tax withholding, gifts and option exercises, which say little about what insiders think of the stock.",
            "default": false
          },
          "transactionCodes": {
            "title": "Transaction codes",
            "type": "array",
            "description": "Keep only these codes, for example P for purchase, S for sale, A for grant, M for option exercise, F for tax withholding, G for gift.",
            "items": {
              "type": "string"
            }
          },
          "minValueUsd": {
            "title": "Minimum transaction value (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only transactions worth at least this many dollars (shares times price)."
          },
          "minShares": {
            "title": "Minimum shares",
            "minimum": 0,
            "type": "number",
            "description": "Keep only transactions of at least this many shares."
          },
          "onlyNewSinceLastRun": {
            "title": "Only new transactions since the last run",
            "type": "boolean",
            "description": "Skip transactions you already received in earlier runs of this Actor. Useful when you schedule the Actor every day. The list of seen filings is stored in your account.",
            "default": false
          },
          "roles": {
            "title": "Insider roles",
            "type": "array",
            "description": "Keep only these roles: officer, director or tenPercentOwner.",
            "items": {
              "type": "string"
            }
          },
          "includeDerivative": {
            "title": "Include options and other derivatives",
            "type": "boolean",
            "description": "Include stock options, restricted stock units and other derivative transactions. Turn it off to see only common stock transactions.",
            "default": true
          },
          "maxFilingsToScan": {
            "title": "Maximum filings to read",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Upper limit of filings read in one run. Reading all insider filings of a busy day takes several minutes.",
            "default": 3000
          },
          "contactEmail": {
            "title": "Contact email",
            "type": "string",
            "description": "The SEC asks automated tools to identify themselves. Your email is sent only to the SEC in the request header. It is optional."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}