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 freeWeb OHLC candlestick and volume series for a coin (includes full max history).
Parameters
| name | in | type | description | |
|---|---|---|---|---|
coin_id | path | str | required | Coin id (slug). default: bitcoinexample: bitcoin |
vs_currency | path | str | required | Quote currency code. default: usdexample: usd |
range | path | str24_hours | 7_days | 14_days | 30_days | 90_days | 180_days | 365_days | max | required | Chart range window. default: 7_daysexample: 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"