{
  "openapi": "3.0.1",
  "info": {
    "title": "Etherscan Family Scraper (Multi-Chain EVM Explorer)",
    "description": "Query Etherscan and 18+ EVM block explorers (Ethereum, BNB, Polygon, Arbitrum, Optimism, Base, Avalanche, Fantom, etc.) via the unified Etherscan V2 API. Wallet balances, transactions, ERC-20/NFT transfers, contract source/ABI, gas oracle, tx-by-hash",
    "version": "1.0",
    "x-build-id": "9KvUWN9Sb1oIuV58b"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~etherscan-family-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-etherscan-family-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/crawlerbros~etherscan-family-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-etherscan-family-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/crawlerbros~etherscan-family-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-etherscan-family-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": [
          "etherscanApiKey",
          "chain",
          "mode"
        ],
        "properties": {
          "etherscanApiKey": {
            "title": "Etherscan API Key",
            "type": "string",
            "description": "FREE Etherscan API key — sign up at https://etherscan.io/apis (one key works across ALL EVM chains via the V2 API). Free tier: 5 req/sec, 100k req/day. The included default works for the daily test; supply your own for production to avoid the shared rate limit."
          },
          "chain": {
            "title": "Chain",
            "enum": [
              "ethereum",
              "bsc",
              "polygon",
              "arbitrum",
              "optimism",
              "base",
              "avalanche",
              "fantom",
              "linea",
              "scroll",
              "blast",
              "zksync",
              "polygonzkevm",
              "mantle",
              "celo",
              "gnosis",
              "moonbeam",
              "moonriver",
              "cronos"
            ],
            "type": "string",
            "description": "Which EVM-compatible chain to query.",
            "default": "ethereum"
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "byAddress",
              "txList",
              "internalTxList",
              "tokenTransfers",
              "nftTransfers",
              "byTransaction",
              "byBlock",
              "byContract",
              "tokenInfo",
              "gasOracle",
              "ethSupply",
              "ethPrice",
              "byUrl"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "byAddress"
          },
          "address": {
            "title": "Address (mode=byAddress / txList / internalTxList / tokenTransfers / nftTransfers)",
            "type": "string",
            "description": "Wallet or contract address (0x...). Example: `0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045` (vitalik.eth).",
            "default": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
          },
          "contractAddress": {
            "title": "Contract address (mode=byContract / tokenInfo / token-filtered transfers)",
            "type": "string",
            "description": "Smart-contract address. For tokenTransfers/nftTransfers, this filters to a specific token contract."
          },
          "txHash": {
            "title": "Transaction hash (mode=byTransaction)",
            "type": "string",
            "description": "0x-prefixed 32-byte hex transaction hash."
          },
          "blockNumber": {
            "title": "Block number (mode=byBlock)",
            "minimum": 0,
            "maximum": 99999999999,
            "type": "integer",
            "description": "Decimal block number."
          },
          "url": {
            "title": "URL (mode=byUrl)",
            "type": "string",
            "description": "Etherscan-family URL — e.g. https://etherscan.io/address/0x... , https://bscscan.com/tx/0x... , https://polygonscan.com/token/0x... — chain + entity auto-detected."
          },
          "includeErc20Holdings": {
            "title": "Include ERC-20 holdings (mode=byAddress)",
            "type": "boolean",
            "description": "Fetch all ERC-20 tokens held by the address (derived from token-transfer history).",
            "default": true
          },
          "includeNftHoldings": {
            "title": "Include NFT holdings (mode=byAddress)",
            "type": "boolean",
            "description": "Fetch all NFT contracts the address has interacted with (derived from NFT-transfer history).",
            "default": false
          },
          "startBlock": {
            "title": "Start block (mode=txList / internalTxList / tokenTransfers / nftTransfers)",
            "minimum": 0,
            "maximum": 99999999999,
            "type": "integer",
            "description": "Lower bound block number (inclusive)."
          },
          "endBlock": {
            "title": "End block (mode=txList / internalTxList / tokenTransfers / nftTransfers)",
            "minimum": 0,
            "maximum": 99999999999,
            "type": "integer",
            "description": "Upper bound block number (inclusive)."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "asc = oldest first, desc = newest first.",
            "default": "desc"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on emitted records. Example: `50`.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}