{
  "openapi": "3.0.1",
  "info": {
    "title": "Binance Futures & Funding Rates Scraper",
    "description": "$0.5/1K 🔥 Crypto futures scraper! Perpetual prices, funding rates & open interest across Gate, KuCoin, MEXC, Hyperliquid & more. No key. JSON, CSV, Excel or API in seconds. Fuel trading bots ⚡",
    "version": "0.2",
    "x-build-id": "5Eq32ZPE6xaNP9e5S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ninhothedev~binance-futures-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ninhothedev-binance-futures-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/ninhothedev~binance-futures-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ninhothedev-binance-futures-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/ninhothedev~binance-futures-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ninhothedev-binance-futures-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": "Scrape mode",
            "enum": [
              "tickers",
              "funding",
              "longshort"
            ],
            "type": "string",
            "description": "What to scrape. 'tickers' = 24h stats for every perpetual contract joined with its live funding rate, mark price and open interest. 'funding' = historical funding-rate settlements for the symbols you list. 'longshort' = global long/short account ratios (retail positioning sentiment) — a BINANCE-ONLY dataset that needs a proxy on Apify, see the README.",
            "default": "tickers"
          },
          "exchange": {
            "title": "Exchange",
            "enum": [
              "auto",
              "gate",
              "kucoin",
              "mexc",
              "hyperliquid",
              "bitmex",
              "binance"
            ],
            "type": "string",
            "description": "Which venue to scrape. Leave on 'auto' (recommended): the actor tries gate.io → KuCoin → MEXC → Hyperliquid → BitMEX → Binance and keeps the first one that answers, logging which source won. Binance is tried LAST on purpose — it returns HTTP 451 to most datacenter IPs, including Apify's, so pick it only together with a residential proxy. 'longshort' mode always uses Binance because no other venue publishes that data.",
            "default": "auto"
          },
          "symbols": {
            "title": "Symbols",
            "type": "array",
            "description": "Perpetual symbols to scrape, written in the usual Binance style: BTCUSDT, ETHUSDT, SOLUSDT. They are translated automatically to each venue's own notation (BTC_USDT on gate.io/MEXC, XBTUSDTM on KuCoin, XBTUSDT on BitMEX, BTC on Hyperliquid). Required for 'funding' and 'longshort' (defaults to BTCUSDT + ETHUSDT if left empty). In 'tickers' mode leave EMPTY to get every perpetual contract on the winning venue.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "period": {
            "title": "Aggregation period",
            "enum": [
              "5m",
              "15m",
              "1h",
              "4h",
              "1d"
            ],
            "type": "string",
            "description": "Candle interval for the long/short account ratio series in 'longshort' mode. Shorter periods give more granular sentiment, longer ones cover more history. Ignored in 'tickers' and 'funding' modes.",
            "default": "1h"
          },
          "symbolFilter": {
            "title": "Symbol filter (substring)",
            "type": "string",
            "description": "Optional case-insensitive substring filter applied to symbol, base asset and quote asset in 'tickers' mode. Use 'USDT' for USDT-margined perpetuals only, 'USDC' for USDC pairs, or 'BTC' for every Bitcoin-related contract. Leave empty for no filtering."
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on how many dataset rows this run produces. In 'tickers' mode the highest-quote-volume contracts are kept first. Use a low value for quick test runs to save compute units.",
            "default": 500
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "OPTIONAL. Every default source (gate.io, KuCoin, MEXC, Hyperliquid, BitMEX) answers a plain Apify datacenter IP, so you do not need a proxy for normal runs. Add one only if you specifically want Binance data or 'longshort' mode — Binance blocks datacenter IPs with HTTP 451, and a RESIDENTIAL proxy in a Binance-permitted country routes around it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}