{
  "openapi": "3.0.1",
  "info": {
    "title": "Insider Transactions Monitor — SEC Form 4 Trades",
    "description": "Track reported insider purchases, sales and other Form 4 transactions by company. Includes insider roles, exact share/price values, amendments, footnotes and original report links. Snapshot or watch for newly observed transactions. No source API key.",
    "version": "0.1",
    "x-build-id": "7ac1z9QDpBmMGhfTe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apivault_labs~insider-transactions-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apivault_labs-insider-transactions-monitor",
        "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/apivault_labs~insider-transactions-monitor/runs": {
      "post": {
        "operationId": "runs-sync-apivault_labs-insider-transactions-monitor",
        "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/apivault_labs~insider-transactions-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-apivault_labs-insider-transactions-monitor",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "snapshot",
              "watch"
            ],
            "type": "string",
            "description": "Snapshot returns matching transaction lines. Watch first creates a baseline, then returns newly observed transactions.",
            "default": "snapshot"
          },
          "companies": {
            "title": "Company ticker / CIK watchlist",
            "minItems": 1,
            "maxItems": 5,
            "type": "array",
            "description": "One to five company tickers or numeric CIK strings. Multiple symbols for one company count once.",
            "items": {
              "type": "string"
            },
            "default": [
              "AAPL",
              "MSFT"
            ]
          },
          "transactionScope": {
            "title": "Transactions to include",
            "enum": [
              "purchases_sales",
              "all"
            ],
            "type": "string",
            "description": "Purchases and sales selects reported P/S codes. All also includes awards, gifts, withholding, exercises and other reported codes. Derivative securities have a separate switch.",
            "default": "purchases_sales"
          },
          "includeDerivatives": {
            "title": "Include derivative securities",
            "type": "boolean",
            "description": "Include reported option and other derivative transaction lines, labelled separately from ordinary shares.",
            "default": false
          },
          "includeAmendments": {
            "title": "Include amended reports (4/A)",
            "type": "boolean",
            "description": "Include amendments as separate reports. They may repeat or correct earlier transactions; no automatic replacement of the original.",
            "default": true
          },
          "lookbackDays": {
            "title": "Filing lookback (calendar days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Filter by report filing date, not transaction date. Available recent reports only, not a complete historical archive.",
            "default": 90
          },
          "sinceDate": {
            "title": "Filing start date (optional)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD. Overrides the lookback-derived start; maximum selected span365 days."
          },
          "untilDate": {
            "title": "Filing end date (optional)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD, default today UTC; no future end dates."
          },
          "maxFilingsPerCompany": {
            "title": "Reports to inspect per company",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Inspect the newest matching reports per company up to this limit. One report can contain several transactions; older omitted reports are counted in SUMMARY.",
            "default": 5
          },
          "maxResults": {
            "title": "Maximum delivered transaction rows",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Global transaction-row limit for the whole run. Zero skips processing.",
            "default": 100
          },
          "maxCostUsd": {
            "title": "Maximum result fees USD (optional)",
            "minimum": 0,
            "maximum": 1000,
            "type": "number",
            "description": "Caps result fees only. Platform resources are separate. Zero skips processing."
          },
          "stateStoreName": {
            "title": "Watch history name",
            "pattern": "^insider-watch-[a-z0-9][a-z0-9-]{2,48}$",
            "type": "string",
            "description": "Required for watch. Use your own name and one run at a time. Changed companies, filters or report-scan limit require a new history."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}