GET /web/etl2/ohlc/{coin_id}/series/{vs_currency}/{range}.json

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/coingecko/web/etl2/ohlc/{coin_id}/series/{vs_currency}/{range}.jsonCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Web OHLC candlestick and volume series for a coin (includes full max history).

Parameters

nameintypedescription
coin_idpathstrrequiredCoin id (slug).
default: bitcoin
example: bitcoin
vs_currencypathstrrequiredQuote currency code.
default: usd
example: usd
rangepathstr
24_hours | 7_days | 14_days | 30_days | 90_days | 180_days | 365_days | max
requiredChart range window.
default: 7_days
example: 7_days

Response

type: object
data key: ohlc
pagination: none
sample: {
  "ohlc": "array[42]",
  "volumes": "array[0]"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/coingecko/web/etl2/ohlc/bitcoin/series/usd/7_days.json"