{
  "openapi": "3.0.1",
  "info": {
    "title": "DEPRECATED – use Crypto Data API (crypto-data-api) instead",
    "description": "This Actor is deprecated and no longer maintained. Use the new Crypto Data API Actor instead: https://apify.com/bitquery_marketing/crypto-data-api. It returns the same crypto prices, OHLCV, DEX trades, transfers, balances and holders as normal Actor runs, with per-row pricing.",
    "version": "0.1",
    "x-build-id": "yUxQ5a9yBwnqzqEN8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bitquery_marketing~crypto-mcp-server/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bitquery_marketing-crypto-mcp-server",
        "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/bitquery_marketing~crypto-mcp-server/runs": {
      "post": {
        "operationId": "runs-sync-bitquery_marketing-crypto-mcp-server",
        "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/bitquery_marketing~crypto-mcp-server/run-sync": {
      "post": {
        "operationId": "run-sync-bitquery_marketing-crypto-mcp-server",
        "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": [
          "mode",
          "chain"
        ],
        "properties": {
          "mode": {
            "title": "What to read",
            "enum": [
              "price",
              "ohlcv",
              "trades",
              "traderTrades",
              "topTraders",
              "whaleTrades",
              "transfers",
              "balances",
              "holders"
            ],
            "type": "string",
            "description": "price: latest price of one token from its top market. ohlcv: candles for a token (or one pool) with USD volume and market cap, about 30 days back. trades: latest DEX swaps of a token or pool. traderTrades: swaps by one wallet. topTraders: wallets ranked by USD volume on a token or chain. whaleTrades: swaps above a USD size. transfers: token transfers of wallets or a token. balances: what wallets hold now (EVM, Tron). holders: top holders of a token on a day (EVM, Tron).",
            "default": "price"
          },
          "chain": {
            "title": "Chain",
            "enum": [
              "eth",
              "bsc",
              "base",
              "arbitrum",
              "optimism",
              "matic",
              "robinhood",
              "arc",
              "solana",
              "tron"
            ],
            "type": "string",
            "description": "The blockchain to read. matic is Polygon.",
            "default": "eth"
          },
          "tokenAddress": {
            "title": "Token address",
            "type": "string",
            "description": "Token contract (EVM, Tron) or mint address (Solana). Required for price, ohlcv, trades and holders; optional filter elsewhere. Examples: 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 (WETH), So11111111111111111111111111111111111111112 (wrapped SOL)."
          },
          "quoteTokenAddress": {
            "title": "Quote token address",
            "type": "string",
            "description": "trades only: keep swaps against this counter token (for example USDC) so you read one pair."
          },
          "poolAddress": {
            "title": "Pool address",
            "type": "string",
            "description": "ohlcv and trades: read one pool (DEX pair contract on EVM and Tron, market address on Solana) instead of the whole token."
          },
          "traderAddress": {
            "title": "Trader address",
            "type": "string",
            "description": "traderTrades only: the wallet whose swaps to read."
          },
          "walletAddresses": {
            "title": "Wallet addresses",
            "type": "array",
            "description": "transfers and balances: the wallets to read, up to 100. One per line.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minUsd": {
            "title": "Minimum trade size in USD",
            "minimum": 1,
            "type": "integer",
            "description": "whaleTrades only: keep swaps worth at least this many US dollars.",
            "default": 10000
          },
          "intervalSeconds": {
            "title": "Candle interval",
            "enum": [
              "1",
              "3",
              "5",
              "10",
              "30",
              "60",
              "300",
              "900",
              "1800",
              "3600"
            ],
            "type": "string",
            "description": "ohlcv only: bar duration in seconds. Candles above one hour are not stored; roll hourly candles up yourself.",
            "default": "3600"
          },
          "hoursAgo": {
            "title": "Look-back in hours",
            "minimum": 1,
            "maximum": 720,
            "type": "integer",
            "description": "Time window ending now, used when since and until are empty. The Trading cubes keep about 30 days; chain-level transfers keep a few days.",
            "default": 24
          },
          "since": {
            "title": "Start time",
            "type": "string",
            "description": "Read from this UTC date or time, for example 2026-10-01 or 2026-10-01T12:00:00Z. Overrides hoursAgo."
          },
          "until": {
            "title": "End time",
            "type": "string",
            "description": "Read up to this UTC date or time."
          },
          "snapshotDate": {
            "title": "Holders snapshot date",
            "type": "string",
            "description": "holders only: the day as YYYY-MM-DD. Defaults to yesterday (UTC)."
          },
          "minBalance": {
            "title": "Minimum holder balance",
            "type": "string",
            "description": "holders only: keep holders with at least this many tokens, for example 1000000. Use it on large tokens."
          },
          "maxResults": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most rows to return. You pay only for rows written.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}