{
  "openapi": "3.0.1",
  "info": {
    "title": "Blockchain Data API — Wallet, Prices & Whale Alerts",
    "description": "Zero-anti-bot blockchain data API. Query wallet portfolios, live token prices, whale alerts, and cross-chain balances across Ethereum, Base, Polygon & more. No scraping, no CAPTCHAs, no ToS issues. Pay only $0.0004 per result. Start with a free 7-day Pro trial (100K calls/mo).",
    "version": "0.2",
    "x-build-id": "0002JOYSnkooe8aMf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/imapp~blockchain-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-imapp-blockchain-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/imapp~blockchain-api/runs": {
      "post": {
        "operationId": "runs-sync-imapp-blockchain-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/imapp~blockchain-api/run-sync": {
      "post": {
        "operationId": "run-sync-imapp-blockchain-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",
        "required": [
          "alchemyApiKey"
        ],
        "properties": {
          "alchemyApiKey": {
            "title": "RPC API Key",
            "type": "string",
            "description": "Your Alchemy API key for blockchain RPC calls. Get one at https://dashboard.alchemy.com/"
          },
          "logLevel": {
            "title": "Log Level",
            "enum": [
              "debug",
              "info",
              "warning",
              "error"
            ],
            "type": "string",
            "description": "Verbosity of server logs.",
            "default": "info"
          },
          "maxConcurrentRpc": {
            "title": "Max Concurrent RPC Calls",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of concurrent outbound RPC calls per request.",
            "default": 5
          },
          "maxConcurrentRequests": {
            "title": "Max Concurrent HTTP Requests",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of concurrent inbound HTTP requests (global semaphore).",
            "default": 20
          },
          "rpcTimeout": {
            "title": "RPC Timeout (seconds)",
            "minimum": 1,
            "maximum": 60,
            "type": "number",
            "description": "Timeout for individual JSON-RPC calls in seconds.",
            "default": 15
          },
          "fallbackPrices": {
            "title": "Fallback Token Prices (USD)",
            "type": "object",
            "description": "Fallback prices used when CoinGecko and Chainlink are both unavailable.",
            "properties": {
              "eth": {
                "title": "ETH Fallback Price (USD)",
                "type": "number",
                "description": "Fallback ETH price in USD when price feeds are unavailable.",
                "default": 3000,
                "minimum": 0
              },
              "matic": {
                "title": "MATIC Fallback Price (USD)",
                "type": "number",
                "description": "Fallback MATIC price in USD when price feeds are unavailable.",
                "default": 0.68,
                "minimum": 0
              },
              "avax": {
                "title": "AVAX Fallback Price (USD)",
                "type": "number",
                "description": "Fallback AVAX price in USD when price feeds are unavailable.",
                "default": 35,
                "minimum": 0
              }
            },
            "default": {
              "eth": 3000,
              "matic": 0.68,
              "avax": 35
            }
          },
          "priceFeedOrder": {
            "title": "Price Feed Priority Order",
            "enum": [
              "coingecko,chainlink",
              "chainlink,coingecko",
              "coingecko",
              "chainlink"
            ],
            "type": "string",
            "description": "Priority order for fetching token prices.",
            "default": "coingecko,chainlink"
          },
          "whaleThresholds": {
            "title": "Whale Alert Thresholds",
            "type": "object",
            "description": "Default thresholds for whale transaction detection.",
            "properties": {
              "eth": {
                "title": "ETH Threshold",
                "type": "number",
                "description": "Minimum ETH value to trigger an alert.",
                "default": 50,
                "minimum": 0
              },
              "usd": {
                "title": "USD Threshold",
                "type": "number",
                "description": "Minimum USD value to trigger an alert.",
                "default": 100000,
                "minimum": 0
              }
            },
            "default": {
              "eth": 50,
              "usd": 100000
            }
          },
          "apiKeysJson": {
            "title": "API Key Tiers (JSON)",
            "type": "string",
            "description": "JSON mapping of API keys to tier names for monetization.",
            "default": "{}"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}