{
  "openapi": "3.0.1",
  "info": {
    "title": "Crypto Wallet Scraper - Balances, Tokens, NFTs & Transactions",
    "description": "Scrape crypto wallet data across Ethereum, top L2s & Bitcoin: native + ERC-20 balances with live USD value, NFT holdings, full transaction & token-transfer history, internal txns and token-contract info. Keyless, no browser. Paste addresses or ENS names; monitor wallets for new activity.",
    "version": "0.1",
    "x-build-id": "xmBYa9qx5MqrTj8PT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~crypto-wallet-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-crypto-wallet-scraper",
        "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/scrapesage~crypto-wallet-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-crypto-wallet-scraper",
        "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/scrapesage~crypto-wallet-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-crypto-wallet-scraper",
        "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": [
          "outputType"
        ],
        "properties": {
          "outputType": {
            "title": "What to scrape",
            "enum": [
              "wallet",
              "transactions",
              "tokenTransfers",
              "internalTransactions",
              "tokenHoldings",
              "nftHoldings",
              "token",
              "transaction"
            ],
            "type": "string",
            "description": "Choose the dataset you want. wallet = a rich overview per address (balance, USD portfolio, token holdings, NFT summary, counts). The other modes return granular lists.",
            "default": "wallet"
          },
          "addresses": {
            "title": "Wallet addresses / ENS names",
            "type": "array",
            "description": "Wallet addresses to scrape — EVM (0x…) or Bitcoin, or ENS names like vitalik.eth. Used by all address modes (wallet, transactions, tokenTransfers, internalTransactions, tokenHoldings, nftHoldings).",
            "items": {
              "type": "string"
            }
          },
          "chain": {
            "title": "Chain / network",
            "enum": [
              "ethereum",
              "optimism",
              "arbitrum",
              "polygon",
              "gnosis",
              "zksync",
              "scroll",
              "celo",
              "unichain",
              "bitcoin"
            ],
            "type": "string",
            "description": "Network for the addresses above. Bitcoin supports wallet + transactions only. Add more EVM chains via Custom chains below.",
            "default": "ethereum"
          },
          "tokenAddresses": {
            "title": "Token contract addresses",
            "type": "array",
            "description": "Only for outputType = \"Token info\". ERC-20/721/1155 contract addresses (0x…) on the selected chain.",
            "items": {
              "type": "string"
            }
          },
          "transactionHashes": {
            "title": "Transaction hashes",
            "type": "array",
            "description": "Only for outputType = \"Transaction detail\". Transaction hashes on the selected chain (EVM 0x… or Bitcoin txid).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Explorer URLs (optional)",
            "type": "array",
            "description": "Paste block-explorer URLs (Etherscan, Blockscout, mempool.space, …) for an address, token or tx — the actor auto-detects the chain and type. Works alongside the fields above.",
            "items": {
              "type": "string"
            }
          },
          "includeTokenHoldings": {
            "title": "Include token holdings (wallet mode)",
            "type": "boolean",
            "description": "In wallet mode, fetch the address's ERC-20 token holdings with live USD prices and compute the total portfolio value. Turn off for a faster, balance-only overview.",
            "default": true
          },
          "includeNftHoldings": {
            "title": "Include NFT holdings (wallet mode)",
            "type": "boolean",
            "description": "In wallet mode, also embed a summary of NFTs held (collection, token id, image). Adds one extra request per wallet.",
            "default": false
          },
          "direction": {
            "title": "Direction filter",
            "enum": [
              "all",
              "in",
              "out"
            ],
            "type": "string",
            "description": "For transaction / transfer / internal modes: keep only incoming, only outgoing, or all records relative to the queried address.",
            "default": "all"
          },
          "maxResultsPerAddress": {
            "title": "Max results per address",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap on list records (transactions / transfers / holdings / NFTs) collected per address.",
            "default": 100
          },
          "maxResults": {
            "title": "Max results (total)",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Overall cap on records pushed to the dataset across the whole run.",
            "default": 1000
          },
          "customInstances": {
            "title": "Custom chains (advanced)",
            "type": "array",
            "description": "Add any other Blockscout-powered EVM chain. Each item: { \"name\": \"base\", \"baseUrl\": \"https://base.blockscout.com\", \"nativeSymbol\": \"ETH\", \"displayName\": \"Base\", \"explorerUrl\": \"https://basescan.org\" }. Then set chain to that name."
          },
          "monitorMode": {
            "title": "Monitor mode (only new)",
            "type": "boolean",
            "description": "Remember what was emitted in previous runs (in a named key-value store) and output only NEW records — new transactions/transfers, or wallets whose balance or tx count changed. Perfect for scheduled wallet/whale watching.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Namespace for monitor memory. Use a distinct key per watch list so they don't share state.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Parallel requests. The actor rotates a fresh proxy IP per request to spread public-API rate limits; lower this if you hit throttling.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Apify Proxy (datacenter) is recommended and enabled by default — fresh IP rotation keeps the public explorer APIs happy.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}