{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Insider Trading Feed (Form 4 buys & sells, parsed)",
    "description": "Daily feed of SEC Form 4 insider transactions: ticker, role (CEO, director, 10% owner), open-market buys and sells with shares, price and value, 10b5-1 flag. Filter by ticker, signal, role, min value. Official EDGAR data.",
    "version": "0.1",
    "x-build-id": "dDWJhKwuCrsxX9jDC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moment-data~sec-insider-transactions-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moment-data-sec-insider-transactions-feed",
        "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/moment-data~sec-insider-transactions-feed/runs": {
      "post": {
        "operationId": "runs-sync-moment-data-sec-insider-transactions-feed",
        "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/moment-data~sec-insider-transactions-feed/run-sync": {
      "post": {
        "operationId": "run-sync-moment-data-sec-insider-transactions-feed",
        "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": [
              "window",
              "sinceLastRun"
            ],
            "type": "string",
            "description": "window (default): matching filings from the latest N EDGAR business days, no saved state. sinceLastRun: only filings not delivered before for this State key; use this for daily schedules.",
            "default": "window"
          },
          "daysBack": {
            "title": "Business days to read",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many of the latest EDGAR business days to read (weekends and holidays skipped). Also the first-run window in sinceLastRun mode.",
            "default": 1
          },
          "formTypes": {
            "title": "Forms",
            "type": "array",
            "description": "Ownership forms to include: 4 (changes, default), 3 (initial statements of new insiders), 5 (annual).",
            "default": [
              "4"
            ],
            "items": {
              "type": "string"
            }
          },
          "includeAmendments": {
            "title": "Include amendments (4/A)",
            "type": "boolean",
            "description": "Also deliver amended filings (3/A, 4/A, 5/A).",
            "default": false
          },
          "tickers": {
            "title": "Tickers",
            "type": "array",
            "description": "Watchlist of issuer tickers, e.g. AAPL, TSLA, NVDA. Empty = whole market.",
            "items": {
              "type": "string"
            }
          },
          "issuerNameContains": {
            "title": "Issuer name contains",
            "type": "array",
            "description": "Keep filings whose issuer name contains any of these words (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "signals": {
            "title": "Signals",
            "type": "array",
            "description": "open-market-buy = filing has code P purchases and no S sales; open-market-sale = S only; mixed-buy-sell; other = grants, option exercises, tax withholding, gifts; holdings-only = no transactions. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "open-market-buy",
                "open-market-sale",
                "mixed-buy-sell",
                "other",
                "holdings-only"
              ]
            }
          },
          "transactionCodes": {
            "title": "Transaction codes",
            "type": "array",
            "description": "Keep filings containing any of these SEC transaction codes, e.g. P (purchase), S (sale), A (grant), M (option exercise), G (gift), F (tax withholding). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "ownerRoles": {
            "title": "Insider roles",
            "type": "array",
            "description": "Keep filings where a reporting owner has any of these roles. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "director",
                "officer",
                "tenPercentOwner",
                "other"
              ]
            }
          },
          "entityOwnersOnly": {
            "title": "Entity owners only (funds, activists)",
            "type": "boolean",
            "description": "Keep only filings where at least one reporting owner is a legal entity (fund, LLC, LP, corporation), e.g. activist and 10% holder trades. Entity names are included in the output.",
            "default": false
          },
          "minOpenMarketValue": {
            "title": "Minimum open-market value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep filings whose open-market buy or sell value (shares x price, codes P/S) is at least this amount.",
            "default": 0
          },
          "excludeRule10b51": {
            "title": "Exclude 10b5-1 plan trades",
            "type": "boolean",
            "description": "Drop filings marked as made under a Rule 10b5-1 trading plan (pre-scheduled sales), to focus on discretionary trades.",
            "default": false
          },
          "includeTransactions": {
            "title": "Include transaction lines",
            "type": "boolean",
            "description": "Include the parsed transaction table (each line: code, shares, price, value, shares owned after, direct/indirect). Turn off for a compact one-row-per-filing feed.",
            "default": true
          },
          "maxItems": {
            "title": "Max filings per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on delivered filings (also caps your spend). A typical business day has 300-1,500 Form 4 filings.",
            "default": 30
          },
          "maxFilingsToCheck": {
            "title": "Max filings to inspect",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Safety cap on documents downloaded per run with narrow filters. You are only charged for delivered filings.",
            "default": 2000
          },
          "contactEmail": {
            "title": "Your contact email (recommended)",
            "type": "string",
            "description": "SEC asks automated clients to declare a contact in the User-Agent. Optional: if set, it is added to the User-Agent sent to sec.gov."
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of the saved search for sinceLastRun mode. Use one key per schedule.",
            "default": "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}