{
  "openapi": "3.0.1",
  "info": {
    "title": "Binance Crypto Price Scraper - OHLCV, Tickers, Order Book",
    "description": "Scrape Binance spot and futures market data with no API key. Live 24h tickers for any pair, full historical OHLCV candles from 1m to 1M with deep pagination, and order book depth snapshots. Export to JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "CdY1x8bz0lcxlHoL8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mangudai~binance-crypto-price-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mangudai-binance-crypto-price-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/mangudai~binance-crypto-price-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mangudai-binance-crypto-price-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/mangudai~binance-crypto-price-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mangudai-binance-crypto-price-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",
        "properties": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "tickers",
              "klines",
              "orderBook"
            ],
            "type": "string",
            "description": "tickers gives one row per symbol with live 24h stats. klines gives one row per OHLCV candle over a date range. orderBook gives one bid and ask depth snapshot per symbol.",
            "default": "tickers"
          },
          "market": {
            "title": "Market",
            "enum": [
              "spot",
              "futures"
            ],
            "type": "string",
            "description": "Binance spot market, or USD-M perpetual futures.",
            "default": "spot"
          },
          "symbols": {
            "title": "Symbols",
            "type": "array",
            "description": "Trading pairs to scrape. BTCUSDT, BTC/USDT and BTC-USDT are all accepted. Ignored when Scrape all symbols is on.",
            "default": [
              "BTCUSDT",
              "ETHUSDT",
              "SOLUSDT",
              "BNBUSDT",
              "XRPUSDT"
            ],
            "items": {
              "type": "string"
            }
          },
          "allSymbols": {
            "title": "Scrape all symbols",
            "type": "boolean",
            "description": "Scrape every pair currently trading on Binance instead of the list above. Roughly 460 pairs quote in USDT.",
            "default": false
          },
          "quoteAsset": {
            "title": "Quote asset filter",
            "type": "string",
            "description": "When Scrape all symbols is on, keep only pairs quoted in this asset. Leave empty to keep every pair.",
            "default": "USDT"
          },
          "minQuoteVolume": {
            "title": "Minimum 24h quote volume",
            "minimum": 0,
            "type": "integer",
            "description": "Drop pairs whose 24h volume in the quote asset is below this. Useful for filtering out dead pairs. 0 disables the filter.",
            "default": 0
          },
          "maxSymbols": {
            "title": "Maximum symbols",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many symbols. 0 means no limit.",
            "default": 0
          },
          "interval": {
            "title": "Candle interval",
            "enum": [
              "1m",
              "3m",
              "5m",
              "15m",
              "30m",
              "1h",
              "2h",
              "4h",
              "6h",
              "8h",
              "12h",
              "1d",
              "3d",
              "1w",
              "1M"
            ],
            "type": "string",
            "description": "Candle size used in klines mode.",
            "default": "1d"
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First candle to fetch in klines mode, for example 2024-01-01. Leave empty to look back far enough to fill the per-symbol candle cap."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last candle to fetch in klines mode, for example 2024-12-31. Leave empty to run up to now."
          },
          "maxCandlesPerSymbol": {
            "title": "Maximum candles per symbol",
            "minimum": 0,
            "type": "integer",
            "description": "Cap on candles returned for each symbol in klines mode. 0 means the full date range.",
            "default": 1000
          },
          "orderBookDepth": {
            "title": "Order book depth",
            "minimum": 5,
            "maximum": 5000,
            "type": "integer",
            "description": "How many bid and ask levels to capture per symbol in orderBook mode. Binance allows up to 5000.",
            "default": 100
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on dataset rows for the whole run. 0 means no limit.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy spreads requests across IPs, which keeps Binance rate limits comfortable on large runs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}