{
  "openapi": "3.0.1",
  "info": {
    "title": "Crypto Whale Wallet Tracker",
    "description": "Monitor large crypto wallet movements on Ethereum, BSC & Solana. Detect exchange deposit flows signaling sell pressure. Real-time alerts with USD values and severity scoring.",
    "version": "0.0",
    "x-build-id": "8EbJXnimLM5fe4etr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/seralifatih~whale-tracker-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-seralifatih-whale-tracker-api",
        "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/seralifatih~whale-tracker-api/runs": {
      "post": {
        "operationId": "runs-sync-seralifatih-whale-tracker-api",
        "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/seralifatih~whale-tracker-api/run-sync": {
      "post": {
        "operationId": "run-sync-seralifatih-whale-tracker-api",
        "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 Wallets",
            "type": "array",
            "description": "Optional custom wallets to monitor. Leave empty to use the bundled whale registry.",
            "items": {
              "type": "object",
              "properties": {
                "address": {
                  "title": "Address",
                  "type": "string",
                  "description": "Wallet address to monitor on the selected chain."
                },
                "chain": {
                  "title": "Chain",
                  "type": "string",
                  "description": "Blockchain network where the wallet is active.",
                  "enum": [
                    "ethereum",
                    "bsc",
                    "solana"
                  ]
                },
                "label": {
                  "title": "Label",
                  "type": "string",
                  "description": "Optional human-readable name for the wallet."
                }
              }
            },
            "default": []
          },
          "chains": {
            "title": "Chains",
            "type": "array",
            "description": "Blockchains to scan.",
            "items": {
              "type": "string",
              "enum": [
                "ethereum",
                "bsc",
                "solana"
              ]
            },
            "default": [
              "ethereum",
              "bsc",
              "solana"
            ]
          },
          "etherscan_api_key": {
            "title": "Etherscan API Key",
            "type": "string",
            "description": "Secret API key for Ethereum balance and transfer lookups via Etherscan."
          },
          "bscscan_api_key": {
            "title": "BscScan API Key",
            "type": "string",
            "description": "Secret API key for BNB Chain balance and transfer lookups via BscScan."
          },
          "solscan_api_key": {
            "title": "Solscan API Key",
            "type": "string",
            "description": "Secret Solscan Pro API key for Solana portfolio and transfer lookups."
          },
          "min_usd_value": {
            "title": "Minimum USD Value",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum transfer value in USD to report.",
            "default": 50000
          },
          "include_exchange_flows_only": {
            "title": "Exchange Flows Only",
            "type": "boolean",
            "description": "Only report flows that match known exchange wallets.",
            "default": false
          },
          "critical_usd_value": {
            "title": "Critical USD Threshold",
            "minimum": 0,
            "type": "integer",
            "description": "Transfers above this USD value are marked critical regardless of destination.",
            "default": 5000000
          },
          "critical_exchange_pct_of_holdings": {
            "title": "Critical Exchange % of Holdings",
            "minimum": 0,
            "type": "number",
            "description": "Transfers to an exchange above this percentage of wallet holdings are marked critical.",
            "default": 10
          },
          "high_exchange_usd_value": {
            "title": "High Exchange USD Threshold",
            "minimum": 0,
            "type": "integer",
            "description": "Transfers to an exchange above this USD value are marked high unless they are already critical.",
            "default": 1000000
          },
          "medium_usd_value": {
            "title": "Medium USD Threshold",
            "minimum": 0,
            "type": "integer",
            "description": "Transfers above this USD value are marked medium when they do not meet higher severity rules.",
            "default": 500000
          },
          "top_whales_count": {
            "title": "Top Whales Per Chain",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many bundled whale wallets to load per chain when custom wallets are not provided.",
            "default": 50
          },
          "thresholds": {
            "title": "Threshold Overrides (advanced)",
            "type": "object",
            "description": "Optional grouped override for all severity thresholds. Values here take precedence over top-level threshold fields.",
            "properties": {
              "min_usd_value": {
                "title": "Min USD Value",
                "description": "Minimum transfer value in USD to report.",
                "type": "integer",
                "minimum": 0
              },
              "critical_usd_value": {
                "title": "Critical USD Value",
                "description": "Transfers above this USD value are marked critical.",
                "type": "integer",
                "minimum": 0
              },
              "critical_exchange_pct_of_holdings": {
                "title": "Critical Exchange % of Holdings",
                "description": "Transfers to an exchange above this percentage of wallet holdings are marked critical.",
                "type": "number",
                "minimum": 0
              },
              "high_exchange_usd_value": {
                "title": "High Exchange USD Value",
                "description": "Transfers to an exchange above this USD value are marked high.",
                "type": "integer",
                "minimum": 0
              },
              "medium_usd_value": {
                "title": "Medium USD Value",
                "description": "Transfers above this USD value are marked medium.",
                "type": "integer",
                "minimum": 0
              },
              "include_exchange_flows_only": {
                "title": "Exchange Flows Only",
                "description": "Only report transfers involving known exchange addresses.",
                "type": "boolean"
              }
            }
          },
          "proxy_configuration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify proxy configuration passed through to chain adapters.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}