{
  "openapi": "3.0.1",
  "info": {
    "title": "Whale Watcher 🐋",
    "description": "Spy on crypto whales for $0.25 👀 Track Binance, Coinbase & top wallets. Get AI BUY/SELL alerts. Free tier: 20 whales. No more $150/mo subs. Includes Vitalik's wallet 🐋",
    "version": "0.1",
    "x-build-id": "6ICOlwFsbp8hFiEfS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thrilled_estuary~whale-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thrilled_estuary-whale-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/thrilled_estuary~whale-tracker/runs": {
      "post": {
        "operationId": "runs-sync-thrilled_estuary-whale-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/thrilled_estuary~whale-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-thrilled_estuary-whale-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": {
          "wallets": {
            "title": "Custom Wallet Addresses",
            "type": "array",
            "description": "Array of Ethereum wallet addresses to track (e.g., [\"0x...\", \"0x...\"]). Leave empty if using known whales.",
            "items": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]{40}$"
            }
          },
          "useKnownWhales": {
            "title": "Use Known Whales",
            "enum": [
              "all",
              "exchange",
              "founder",
              "institution",
              "defi",
              "nft",
              "exchange,founder"
            ],
            "type": "string",
            "description": "Track curated whale addresses. Options: 'all' for all whales, or comma-separated categories like 'exchange,founder'",
            "default": "exchange,founder"
          },
          "chains": {
            "title": "Blockchain Networks",
            "type": "array",
            "description": "Array of supported chains. Currently only ETH_MAINNET is supported.",
            "items": {
              "type": "string",
              "enum": [
                "ETH_MAINNET"
              ],
              "enumTitles": [
                "Ethereum Mainnet"
              ]
            },
            "default": [
              "ETH_MAINNET"
            ]
          },
          "includeTokens": {
            "title": "Include Token Holdings",
            "type": "boolean",
            "description": "Whether to fetch ERC-20 token balances and USD values for each wallet. Disable to speed up runs and reduce costs.",
            "default": true
          },
          "transactionLimit": {
            "title": "Transaction Limit",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Number of recent transactions to fetch per wallet. Higher values provide more historical context but increase runtime and costs.",
            "default": 50
          },
          "minBalanceThreshold": {
            "title": "Minimum Balance Threshold (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Filter wallets below this USD portfolio value. Leave empty or set to 0 to include all wallets."
          },
          "enableAI": {
            "title": "Enable AI Analysis",
            "type": "boolean",
            "description": "Enable AI swarm analysis for trading insights. Uses multiple AI models to generate consensus recommendations (BUY/SELL/HOLD) with confidence scores. Included - no setup needed!",
            "default": true
          },
          "enableHistorical": {
            "title": "Enable Historical Tracking",
            "type": "boolean",
            "description": "Enable historical tracking and 4H/24H portfolio comparisons. Tracks changes over time and detects patterns like accumulation, distribution, and rank changes.",
            "default": true
          },
          "maxWallets": {
            "title": "Maximum Wallets (Cost Protection)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of wallets to track per run. Prevents accidental high costs. Default: 100.",
            "default": 100
          },
          "concurrencyLimit": {
            "title": "Parallel Processing Limit",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of wallets to process concurrently (1-8). Higher values are faster but may hit API rate limits. Default: 2.",
            "default": 2
          },
          "webhookUrl": {
            "title": "Webhook URL (Optional)",
            "type": "string",
            "description": "Telegram or Discord webhook URL to receive alerts when significant whale movements are detected. Leave empty to disable."
          },
          "webhookType": {
            "title": "Webhook Type",
            "enum": [
              "telegram",
              "discord"
            ],
            "type": "string",
            "description": "Type of webhook service. Required if webhookUrl is provided."
          },
          "plan": {
            "title": "Plan Type (Optional)",
            "enum": [
              "free",
              "paid"
            ],
            "type": "string",
            "description": "Set to 'free' to enable free tier limits (20 whales max, no AI signals). Leave empty for paid tier."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}