{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Insider Trading: Form 4 Filings, Buying & EDGAR Scraper",
    "description": "Track SEC Form 4 insider buying and selling by ticker or name: dates, shares, prices, values, holdings, derivative terms, footnotes and SEC filings on EDGAR. $0.002 per transaction plus $0.01 per nonempty export; 100 cost $0.21 plus the start fee. No login.",
    "version": "1.0",
    "x-build-id": "RKejnwnTaeJZeOdW1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moggedhq~sec-insider-trading-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moggedhq-sec-insider-trading-tracker",
        "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/moggedhq~sec-insider-trading-tracker/runs": {
      "post": {
        "operationId": "runs-sync-moggedhq-sec-insider-trading-tracker",
        "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/moggedhq~sec-insider-trading-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-moggedhq-sec-insider-trading-tracker",
        "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": {
          "tickers": {
            "title": "Company tickers",
            "type": "array",
            "description": "Company ticker symbols such as AAPL and MSFT. Combined with ciks; duplicate issuers are read once. The form prefill is an example, not an API default.",
            "items": {
              "type": "string"
            }
          },
          "ciks": {
            "title": "Issuer CIKs",
            "type": "array",
            "description": "Issuer identifiers, with or without leading zeros, such as 320193. These identify companies, not reporting owners. Can be used without tickers.",
            "items": {
              "type": "string"
            }
          },
          "insiderNames": {
            "title": "Insider names",
            "type": "array",
            "description": "Case-insensitive substring match against any reporting owner. With issuers, filters their filings. Alone, searches public EDGAR full text and then verifies the actual owner names. OR within this list.",
            "items": {
              "type": "string"
            }
          },
          "transactionTypes": {
            "title": "Transaction types or SEC codes",
            "type": "array",
            "description": "OR filter: buy (P), sell (S), option exercise (M), gift (G), grant (A), tax withholding (F), or raw SEC letter codes. Empty means every transaction type. A sell filter excludes withholding code F.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Filed from",
            "type": "string",
            "description": "Inclusive SEC filing date in YYYY-MM-DD. Omit for the last 30 days. Use transactionDateFrom separately to filter actual trade dates."
          },
          "dateTo": {
            "title": "Filed through",
            "type": "string",
            "description": "Inclusive SEC filing date in YYYY-MM-DD. Omit for today in UTC. Filing dates can differ from trade dates."
          },
          "minValue": {
            "title": "Minimum reported value",
            "minimum": 0,
            "type": "number",
            "description": "Keep transactions whose shares times reported transaction price are at least this amount. Zero keeps unknown values; a positive floor excludes unknown values. Derivative value describes derivative units, not underlying notional.",
            "default": 0
          },
          "maxItems": {
            "title": "Maximum transactions",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum unique transaction rows across all issuers. $0.002 per transaction plus $0.01 per nonempty export and the start fee. If maxResults is also provided, the smaller cap wins.",
            "default": 20
          },
          "transactionDateFrom": {
            "title": "Trade date from",
            "type": "string",
            "description": "Optional inclusive actual transaction-date lower bound in YYYY-MM-DD; applied after parsing XML. Widen the filing-date window to capture late reports."
          },
          "transactionDateTo": {
            "title": "Trade date through",
            "type": "string",
            "description": "Optional inclusive actual transaction-date upper bound. Filing-date filters still apply."
          },
          "includeDerivatives": {
            "title": "Include derivatives",
            "type": "boolean",
            "description": "Include Table II option and other derivative transactions, with exercise price, expiry and underlying security when present.",
            "default": true
          },
          "includeAmendments": {
            "title": "Include Form 4/A",
            "type": "boolean",
            "description": "Return amendments as separate reported disclosures. The Actor does not automatically replace transactions from the original filing.",
            "default": true
          },
          "includeFootnotes": {
            "title": "Include footnote text",
            "type": "boolean",
            "description": "Attach filing-level and transaction-referenced footnotes. Footnote IDs and per-field reference maps remain available when false.",
            "default": true
          },
          "maxResults": {
            "title": "Optional maximum results alias",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Alias for maxItems. The smaller supplied cap wins, including when Apify inserts maxItems=20. Set maxItems explicitly for larger jobs."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Automatic selection starts with Apify default datacenter proxy, then retries through US residential when needed. An explicit disable, country, group or custom proxy is preserved.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}