{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Form 4 Insider Transactions (Official EDGAR)",
    "description": "Parse official SEC EDGAR Form 4 and Form 4/A insider trades by ticker or CIK into one clean row per transaction. No API key, no HTML scraping. $0.005 per transaction.",
    "version": "0.1",
    "x-build-id": "pjFz2zmkcDMA2dhBE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/veritable_frieze~sec-form4-insider-transactions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-veritable_frieze-sec-form4-insider-transactions",
        "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/veritable_frieze~sec-form4-insider-transactions/runs": {
      "post": {
        "operationId": "runs-sync-veritable_frieze-sec-form4-insider-transactions",
        "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/veritable_frieze~sec-form4-insider-transactions/run-sync": {
      "post": {
        "operationId": "run-sync-veritable_frieze-sec-form4-insider-transactions",
        "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",
        "required": [
          "identifiers",
          "userAgentContact"
        ],
        "properties": {
          "identifiers": {
            "title": "Tickers or CIKs",
            "minItems": 1,
            "type": "array",
            "description": "One or more stock tickers (for example AAPL) or SEC Central Index Keys (CIKs). CIKs may be given with or without leading zeros.",
            "default": [
              "AAPL"
            ],
            "items": {
              "type": "string"
            }
          },
          "userAgentContact": {
            "title": "Contact email for the SEC User-Agent",
            "type": "string",
            "description": "A real email address the SEC can use to contact the person or organization running this Actor. The SEC requires automated requests to identify themselves with a User-Agent that includes a contact address. This address is sent only in the request User-Agent header, not stored in the dataset."
          },
          "userAgentName": {
            "title": "Name in the SEC User-Agent",
            "type": "string",
            "description": "Short name of your project or organization, included in the User-Agent with your contact email. Letters, numbers, spaces, hyphens and underscores only.",
            "default": "Form4InsiderTransactionsActor"
          },
          "formTypes": {
            "title": "Form types",
            "type": "array",
            "description": "Ownership form types to include. Form 4 is the routine insider transaction report. Form 4/A is an amendment. Forms 3 and 5 are optional initial and annual statements.",
            "items": {
              "type": "string",
              "enum": [
                "4",
                "4/A",
                "3",
                "3/A",
                "5",
                "5/A"
              ]
            },
            "default": [
              "4",
              "4/A"
            ]
          },
          "maxFilingsPerCompany": {
            "title": "Max filings per company",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of matching filings to download and parse for each identifier, after date filters, newest first. The default is 2 so a first run finishes quickly and stays cheap. Raise it when you want more history.",
            "default": 2
          },
          "maxTotalFilings": {
            "title": "Max filings per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on filings parsed in one run, across all companies. Stops the run cleanly when reached. The default is 10 so a first try stays small.",
            "default": 10
          },
          "filedFrom": {
            "title": "Filed on or after (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional inclusive lower bound on the filing date (the date the Form 4 was filed with the SEC, not always the trade date)."
          },
          "filedTo": {
            "title": "Filed on or before (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional inclusive upper bound on the filing date."
          },
          "transactionCodes": {
            "title": "Transaction codes to keep",
            "type": "array",
            "description": "If set, only rows whose official transaction code is in this list are returned and charged. Leave empty to keep every parsed transaction. Common codes: P (open-market purchase), S (open-market sale), A (grant/award), D (disposition to issuer), F (tax withholding), G (gift), M (option exercise), C (conversion).",
            "items": {
              "type": "string"
            }
          },
          "includeDerivativeTransactions": {
            "title": "Include derivative transactions",
            "type": "boolean",
            "description": "If true, also parse derivative tables (options, warrants, convertibles). Each derivative transaction is its own charged row. Left off by default so a first run stays cheaper and focuses on non-derivative trades.",
            "default": false
          },
          "minValueUsd": {
            "title": "Minimum transaction value (USD)",
            "minimum": 0,
            "type": "number",
            "description": "If set, drop rows whose shares × price is below this amount. Rows with a missing price (for example some gifts or awards) are kept, because value cannot be computed."
          },
          "transactionDateFrom": {
            "title": "Trade date on or after (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional inclusive lower bound on the transaction date (the trade date in the filing, which can differ from the filing date)."
          },
          "transactionDateTo": {
            "title": "Trade date on or before (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional inclusive upper bound on the transaction date."
          },
          "clusterWindowDays": {
            "title": "Cluster-buy window (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "A purchase (transaction code P) is flagged isClusterBuy when at least one other distinct insider also has a code-P purchase of the same issuer whose trade date falls within this many days, among the filings fetched in this run. This is not a market-wide scanner.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}