{
  "openapi": "3.0.1",
  "info": {
    "title": "Token Holder Clusters",
    "description": "Top holders, linked wallets and holder concentration for Solana, Ethereum and Hyperliquid tokens, with a risk score per token.",
    "version": "0.1",
    "x-build-id": "TwLt7s0VMdvhtJZ5i"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/johto.data~token-holder-clusters/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-johto.data-token-holder-clusters",
        "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/johto.data~token-holder-clusters/runs": {
      "post": {
        "operationId": "runs-sync-johto.data-token-holder-clusters",
        "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/johto.data~token-holder-clusters/run-sync": {
      "post": {
        "operationId": "run-sync-johto.data-token-holder-clusters",
        "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": [
          "tokens"
        ],
        "properties": {
          "tokens": {
            "title": "Tokens or addresses",
            "type": "array",
            "description": "One per line. Solana mint, Ethereum ERC-20 contract, Hyperliquid spot ticker (HYPE) or tokenId, or a Bitcoin address. Add a chain prefix to mix chains in one run, like ethereum:0x6982... or hyperliquid:HYPE or bitcoin:bc1q...",
            "items": {
              "type": "string"
            }
          },
          "chain": {
            "title": "Default chain",
            "enum": [
              "solana",
              "ethereum",
              "hyperliquid",
              "bitcoin",
              "zcash",
              "monero"
            ],
            "type": "string",
            "description": "Used for entries without a chain prefix.",
            "default": "solana"
          },
          "topHolders": {
            "title": "Top holders to analyze",
            "minimum": 5,
            "maximum": 100,
            "type": "integer",
            "description": "Ethereum and Hyperliquid up to 100. Solana returns at most the 20 largest token accounts.",
            "default": 20
          },
          "walletsToTrace": {
            "title": "Wallets to trace",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many top wallets get funding and first-transfer tracing. More is slower.",
            "default": 15
          },
          "fundingWindowMinutes": {
            "title": "Exchange funding window (minutes)",
            "minimum": 1,
            "maximum": 1440,
            "type": "integer",
            "description": "Holders funded by the same exchange wallet within this window are linked.",
            "default": 10
          },
          "solanaRpcUrl": {
            "title": "Solana RPC URL (recommended)",
            "type": "string",
            "description": "Your own HTTPS Solana RPC, for example a free Helius or QuickNode endpoint. The public RPC throttles the holder lookup."
          },
          "solanaScanLimitMb": {
            "title": "Solana holder scan limit (MB)",
            "minimum": 10,
            "maximum": 800,
            "type": "integer",
            "description": "When the RPC throttles the largest-holder call, the Actor scans all token accounts of the mint. Tokens with about 400k+ holders exceed 250 MB; raise this or use your own RPC.",
            "default": 250
          },
          "blockscoutApiKey": {
            "title": "Blockscout API key (optional)",
            "type": "string",
            "description": "Raises Ethereum explorer rate limits."
          },
          "earlySlots": {
            "title": "Solana early-buyer window (slots)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Wallets that got tokens within this many slots of creation are flagged.",
            "default": 150
          },
          "earlyBlocks": {
            "title": "Ethereum early-buyer window (blocks)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Wallets that got tokens within this many blocks of creation are flagged.",
            "default": 20
          },
          "creationPages": {
            "title": "Solana creation lookup pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Pages of 1000 signatures to walk back to find the mint's first transaction.",
            "default": 3
          },
          "genesisWallets": {
            "title": "Hyperliquid genesis wallets to check",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Largest genesis recipients to check for current balances.",
            "default": 100
          },
          "leaderboardAccounts": {
            "title": "Hyperliquid top accounts to check",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Largest Hyperliquid accounts by value to check for this token.",
            "default": 100
          },
          "perpWhaleAccounts": {
            "title": "Hyperliquid perp whale accounts",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Top accounts to check for open perp positions in the same coin. 0 turns it off.",
            "default": 50
          },
          "extraWallets": {
            "title": "Hyperliquid extra wallets",
            "type": "array",
            "description": "Extra 0x wallets to check for the token.",
            "items": {
              "type": "string"
            }
          },
          "btcTxPages": {
            "title": "Bitcoin pages of 25 txs",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many recent transaction pages to scan for co-spends.",
            "default": 4
          },
          "maxClusterMembers": {
            "title": "Bitcoin max cluster members",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cap on linked addresses returned.",
            "default": 25
          },
          "maxTokens": {
            "title": "Max entries per run",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Safety cap.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}