{
  "openapi": "3.0.1",
  "info": {
    "title": "Insider Trading Tracker: SEC Form 4 Buys & Sells (EDGAR)",
    "description": "Insider buying and selling from SEC Form 4 filings: issuer, ticker, insider role, transaction type, shares, price and value. Filters by ticker, value, role and date. Official EDGAR data, no key.",
    "version": "1.0",
    "x-build-id": "mcDtnqEIoB52VRQJT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datacrate~sec-form4-insider-transactions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datacrate-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/datacrate~sec-form4-insider-transactions/runs": {
      "post": {
        "operationId": "runs-sync-datacrate-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/datacrate~sec-form4-insider-transactions/run-sync": {
      "post": {
        "operationId": "run-sync-datacrate-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",
        "properties": {
          "filedSince": {
            "title": "Filed since (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only Form 4 filings on or after this date (up to ~45 business days back). Newest filings are read first. Empty = last 5 days."
          },
          "tickers": {
            "title": "Tickers",
            "type": "array",
            "description": "Only these issuers, e.g. NVDA, TSLA. Makes runs much faster because only matching filings are downloaded. Empty = all issuers.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "issuerContains": {
            "title": "Issuer name contains",
            "type": "string",
            "description": "Case-insensitive match on the issuer name."
          },
          "transactionCodes": {
            "title": "Transaction codes",
            "type": "array",
            "description": "SEC codes: P = open-market purchase, S = open-market sale, A = grant/award, M = option exercise, F = tax withholding, G = gift, D = disposition to issuer. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minTransactionValue": {
            "title": "Min transaction value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Shares x price per share. Transactions without a price (grants, gifts) have no value and are skipped when this is set.",
            "default": 0
          },
          "minShares": {
            "title": "Min shares",
            "minimum": 0,
            "type": "integer",
            "description": "Skip transactions with fewer shares than this. 0 = no minimum.",
            "default": 0
          },
          "acquiredOrDisposed": {
            "title": "Direction",
            "enum": [
              "",
              "A",
              "D"
            ],
            "type": "string",
            "description": "A = acquired (buys, grants), D = disposed (sales). Empty = both.",
            "default": ""
          },
          "roles": {
            "title": "Insider role contains",
            "type": "array",
            "description": "Match on the insider's role/title, e.g. 'Chief Executive', 'CFO', 'Director', '10% Owner'. Any entry matches. Empty = all roles.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeDerivatives": {
            "title": "Include derivative transactions",
            "type": "boolean",
            "description": "Also return option/warrant/RSU derivative transactions (Table II).",
            "default": false
          },
          "includeAmendments": {
            "title": "Include amendments (4/A)",
            "type": "boolean",
            "description": "Also return Form 4/A amendment filings.",
            "default": true
          },
          "maxItems": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many matching transactions.",
            "default": 100
          },
          "deltaMode": {
            "title": "Delta mode (only new filings)",
            "type": "boolean",
            "description": "Remember processed accession numbers in a named key-value store and skip them on later runs. Schedule daily for an alert feed.",
            "default": false
          },
          "contactEmail": {
            "title": "Your contact email (for the SEC User-Agent)",
            "type": "string",
            "description": "Optional. The SEC asks automated clients to identify a contact; if set it replaces the default in the User-Agent sent to sec.gov. Not stored in output."
          },
          "maxRequestsPerSecond": {
            "title": "Max requests per second",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "SEC fair-access limit is 10/s. Default 4, max 5.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}