{
  "openapi": "3.0.1",
  "info": {
    "title": "Crypto Price API: Tickers, OHLCV, Markets and Exchanges",
    "description": "Cryptocurrency market data from the CoinPaprika API on your own paid key: live prices and tickers in 42 currencies, historical OHLCV candles, price history, trading pairs by coin or exchange, exchange volumes and global market cap for 11,000+ coins. Bring your own key.",
    "version": "0.1",
    "x-build-id": "qmiHa4qMscThaWHkD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~crypto-price-ohlcv-exchange-markets-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-crypto-price-ohlcv-exchange-markets-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/nabeelbaghoor~crypto-price-ohlcv-exchange-markets-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-crypto-price-ohlcv-exchange-markets-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/nabeelbaghoor~crypto-price-ohlcv-exchange-markets-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-crypto-price-ohlcv-exchange-markets-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",
        "properties": {
          "mode": {
            "title": "What to get",
            "enum": [
              "tickers",
              "historicalOhlcv",
              "latestOhlcv",
              "todayOhlcv",
              "historicalTicks",
              "coinMarkets",
              "exchangeMarkets",
              "exchanges",
              "globalMarket",
              "coinList"
            ],
            "type": "string",
            "description": "Coin tickers returns the current price, volume, market cap and price changes per coin (all active coins when no coin IDs are set). Historical OHLCV candles returns open, high, low, close, volume and market cap over a date range. Last full day and Today OHLCV return one candle per coin. Historical price ticks returns price, volume and market cap at a chosen interval. Markets by coin and Markets by exchange list trading pairs with price and volume. Exchange list, Global market overview and Coin list need no IDs. Every mode only reads.",
            "default": "tickers"
          },
          "coinIds": {
            "title": "Coin IDs",
            "type": "array",
            "description": "Coin modes. CoinPaprika coin IDs, one per line, up to 100, such as btc-bitcoin, eth-ethereum or sol-solana. Find IDs with the Coin list mode or in the coin page URL on coinpaprika.com. Leave empty in Coin tickers to read every active coin.",
            "items": {
              "type": "string"
            }
          },
          "exchangeIds": {
            "title": "Exchange IDs",
            "type": "array",
            "description": "Markets by exchange only. CoinPaprika exchange IDs, one per line, up to 100, such as binance, coinbase or kraken. Find IDs with the Exchange list mode.",
            "items": {
              "type": "string"
            }
          },
          "quotes": {
            "title": "Quote currencies",
            "type": "array",
            "description": "Coin tickers (up to 3), Markets by coin, Markets by exchange and Exchange list. Currencies to price in; the first one fills the price and volume columns, all of them sit in record.quotes.",
            "items": {
              "type": "string",
              "enum": [
                "USD",
                "BTC",
                "ETH",
                "EUR",
                "PLN",
                "KRW",
                "GBP",
                "CAD",
                "JPY",
                "RUB",
                "TRY",
                "NZD",
                "AUD",
                "CHF",
                "UAH",
                "HKD",
                "SGD",
                "NGN",
                "PHP",
                "MXN",
                "BRL",
                "THB",
                "CLP",
                "CNY",
                "CZK",
                "DKK",
                "HUF",
                "IDR",
                "ILS",
                "INR",
                "MYR",
                "NOK",
                "PKR",
                "SEK",
                "TWD",
                "ZAR",
                "VND",
                "BOB",
                "COP",
                "PEN",
                "ARS",
                "ISK"
              ],
              "enumTitles": [
                "USD",
                "BTC",
                "ETH",
                "EUR",
                "PLN",
                "KRW",
                "GBP",
                "CAD",
                "JPY",
                "RUB",
                "TRY",
                "NZD",
                "AUD",
                "CHF",
                "UAH",
                "HKD",
                "SGD",
                "NGN",
                "PHP",
                "MXN",
                "BRL",
                "THB",
                "CLP",
                "CNY",
                "CZK",
                "DKK",
                "HUF",
                "IDR",
                "ILS",
                "INR",
                "MYR",
                "NOK",
                "PKR",
                "SEK",
                "TWD",
                "ZAR",
                "VND",
                "BOB",
                "COP",
                "PEN",
                "ARS",
                "ISK"
              ]
            },
            "default": [
              "USD"
            ]
          },
          "historyQuote": {
            "title": "History quote currency",
            "enum": [
              "usd",
              "btc"
            ],
            "type": "string",
            "description": "OHLCV and Historical price ticks modes. The API offers history in USD or BTC only.",
            "default": "usd"
          },
          "start": {
            "title": "Start",
            "type": "string",
            "description": "Historical OHLCV and Historical price ticks, required. YYYY-MM-DD, 2026-01-31T00:00:00Z or unix seconds. How far back you can go depends on your CoinPaprika plan."
          },
          "end": {
            "title": "End",
            "type": "string",
            "description": "Historical OHLCV and Historical price ticks. Same formats as Start. Leave empty for now (ticks) or for as many points as the result cap allows (OHLCV)."
          },
          "ohlcvInterval": {
            "title": "OHLCV interval",
            "enum": [
              "24h",
              "12h",
              "6h",
              "1h",
              "30m",
              "15m",
              "5m"
            ],
            "type": "string",
            "description": "Historical OHLCV only. 24h works on every paid plan; 1h, 6h and 12h need Business or higher; 5m, 15m and 30m need Enterprise.",
            "default": "24h"
          },
          "tickInterval": {
            "title": "Tick interval",
            "enum": [
              "1d",
              "24h",
              "12h",
              "6h",
              "3h",
              "2h",
              "1h",
              "45m",
              "30m",
              "15m",
              "10m",
              "5m",
              "7d",
              "14d",
              "30d",
              "90d",
              "365d"
            ],
            "type": "string",
            "description": "Historical price ticks only. Hourly and 5 minute history depth depends on your plan.",
            "default": "1d"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "The most rows this run returns and charges for. Also sets the per-coin limit sent to the history endpoints (up to 366 candles or 5000 ticks per coin).",
            "default": 100
          },
          "apiKey": {
            "title": "API key",
            "type": "string",
            "description": "Your paid-plan CoinPaprika API key, from the API customer portal. Required: the keyless free plan is for personal use only and is not called. Sent only to api-pro.coinpaprika.com in the Authorization header, never logged. You can also set the DATA_API_KEY secret instead."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}