{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC insider data for AI agents",
    "description": "Scores US insider trades on conviction. Separates genuine open-market buys from option exercises and 10b5-1 planned sales, weights by officer seniority and stake change, and flags multi-insider buy clusters.",
    "version": "0.1",
    "x-build-id": "A0OvoSA6Z9y5vJ4wm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/spidey_silk_sense~sec-insider-conviction-signal/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-spidey_silk_sense-sec-insider-conviction-signal",
        "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/spidey_silk_sense~sec-insider-conviction-signal/runs": {
      "post": {
        "operationId": "runs-sync-spidey_silk_sense-sec-insider-conviction-signal",
        "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/spidey_silk_sense~sec-insider-conviction-signal/run-sync": {
      "post": {
        "operationId": "run-sync-spidey_silk_sense-sec-insider-conviction-signal",
        "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": [
          "userAgent"
        ],
        "properties": {
          "userAgent": {
            "title": "EDGAR User-Agent (required)",
            "type": "string",
            "description": "The SEC requires a descriptive User-Agent containing a contact email. Example: 'Acme Research contact@acme.com'. Runs without a valid email will fail fast."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "daily",
              "tickers"
            ],
            "type": "string",
            "description": "'daily' scans the EDGAR daily index for all recent Form 4 filings (use this for scheduled monitoring). 'tickers' pulls filing history for named companies (use this for research and backfill).",
            "default": "daily"
          },
          "lookbackDays": {
            "title": "Lookback days (daily mode)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "How many calendar days back to scan. Weekends are skipped automatically. Form 4s are due within two business days, so 3 catches essentially everything.",
            "default": 3
          },
          "tickers": {
            "title": "Tickers (tickers mode)",
            "type": "array",
            "description": "Ticker symbols to pull Form 4 history for.",
            "items": {
              "type": "string"
            }
          },
          "tickerLookbackDays": {
            "title": "History window (tickers mode)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "How far back to pull each company's Form 4 history, in days.",
            "default": 180
          },
          "directions": {
            "title": "Directions to return",
            "type": "array",
            "description": "Keep buys, sells, or both.",
            "items": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ],
              "enumTitles": [
                "Buys",
                "Sells"
              ]
            },
            "default": [
              "buy",
              "sell"
            ]
          },
          "minAbsScore": {
            "title": "Minimum absolute conviction score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Drop transactions scoring below this magnitude (0-100). Raise it to cut noise; 25 is a reasonable starting threshold.",
            "default": 0
          },
          "excludePlanned": {
            "title": "Exclude Rule 10b5-1 planned trades",
            "type": "boolean",
            "description": "Planned trades are scheduled in advance and carry far less information about current belief. Turn on to drop them entirely rather than merely discounting them.",
            "default": false
          },
          "includeClusters": {
            "title": "Detect insider buy clusters",
            "type": "boolean",
            "description": "Emit an additional record per issuer where multiple distinct insiders bought on the open market inside a rolling window.",
            "default": true
          },
          "clusterWindowDays": {
            "title": "Cluster window (days)",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "The rolling window, in days, within which multiple insiders' open-market buys are grouped into one cluster. A shorter window demands tighter timing to count as coordinated.",
            "default": 30
          },
          "clusterMinInsiders": {
            "title": "Minimum distinct insiders for a cluster",
            "minimum": 2,
            "maximum": 20,
            "type": "integer",
            "description": "How many distinct insiders (by owner CIK) must buy on the open market inside the window for it to count as a cluster. Higher values return fewer, stronger clusters.",
            "default": 3
          },
          "seniorityWeights": {
            "title": "Seniority weight overrides",
            "type": "object",
            "description": "Override the role weights used in scoring. Keys: ceo, cfo, c_suite_other, svp_evp, officer, director, ten_percent_owner, other."
          },
          "maxFilings": {
            "title": "Maximum filings per run",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Hard ceiling on submissions fetched. Protects against a runaway bill on a wide date range.",
            "default": 2000
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}