{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Insider Buying Tracker - Form 4 Purchases & Clusters",
    "description": "Find stocks that company insiders are buying with their own money. Reads official SEC Form 4 filings and returns open-market purchases with dollar value, role, ownership change, 10b5-1 flag and multi-insider cluster counts. No API key.",
    "version": "0.1",
    "x-build-id": "KtccbCEFrgqTD2pdu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tinylabs~sec-insider-buys/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tinylabs-sec-insider-buys",
        "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/tinylabs~sec-insider-buys/runs": {
      "post": {
        "operationId": "runs-sync-tinylabs-sec-insider-buys",
        "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/tinylabs~sec-insider-buys/run-sync": {
      "post": {
        "operationId": "run-sync-tinylabs-sec-insider-buys",
        "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": {
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "How many days of Form 4 filings to read, counting back from today (or from End date). Ignored when Start date is set. Several hundred filings arrive each business day.",
            "default": 3
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "Optional. First filing date to include (YYYY-MM-DD)."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Optional. Last filing date to include (YYYY-MM-DD). Defaults to today."
          },
          "tickers": {
            "title": "Watchlist tickers",
            "type": "array",
            "description": "Optional. Only return trades in these stocks, for example AAPL, TSLA. Leave empty to scan the whole market.",
            "items": {
              "type": "string"
            }
          },
          "transactionCodes": {
            "title": "Transaction types",
            "type": "array",
            "description": "SEC transaction codes to keep. P = open-market purchase (the classic insider-buying signal). S = sale. A = grant, M = option exercise, F = tax withholding, G = gift.",
            "default": [
              "P"
            ],
            "items": {
              "type": "string"
            }
          },
          "minValueUsd": {
            "title": "Minimum trade value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip trades smaller than this (shares x price).",
            "default": 10000
          },
          "excludePlanTrades": {
            "title": "Exclude 10b5-1 plan trades",
            "type": "boolean",
            "description": "Drop trades made under a pre-scheduled Rule 10b5-1 plan. These are planned in advance, so they carry less signal.",
            "default": true
          },
          "officersAndDirectorsOnly": {
            "title": "Officers and directors only",
            "type": "boolean",
            "description": "Keep only trades by officers (CEO, CFO, ...) and directors. Drops funds that are only 10% owners.",
            "default": false
          },
          "minClusterInsiders": {
            "title": "Minimum insiders in cluster",
            "minimum": 1,
            "type": "integer",
            "description": "Only return stocks where at least this many different insiders made a matching trade in the date window. Set to 2 or 3 to find cluster buying.",
            "default": 1
          },
          "includeAmendments": {
            "title": "Include amended filings (4/A)",
            "type": "boolean",
            "description": "Also read Form 4/A amendments.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new since my last run (monitor mode)",
            "type": "boolean",
            "description": "Remember which filings you already received and return only new ones. Turn this on when you schedule the Actor.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Return at most this many transactions (largest clusters and biggest trades first). You are only charged for results returned.",
            "default": 500
          },
          "userAgent": {
            "title": "SEC User-Agent (advanced)",
            "type": "string",
            "description": "The SEC asks every client to identify itself with a name and contact email. Leave empty to use the Actor's default."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}