GET /api/data-api/v4/global-metrics/quotes/historical

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/cmc/api/data-api/v4/global-metrics/quotes/historicalCache cached 1s, never served stale past that windowCost per_call · weight 1 · standard rate classSource billing free

v4 global history: market cap, volume, and BTC/ETH/stable/other values, plus period and yearly stats. id=1 with range=7d returned that aggregate; other ids were not enumerated.

Name=global_metrics_historical_v4.

Parameters

nameintypedescription
idquerystrrequiredRoute-specific id. Coin routes use 1 for BTC; exchange reserves use 270 for Binance.
example: 1
convertIdquerystrrequiredQuote convert id. 2781 is USD on these public routes.
example: 2781
rangequerystrrequiredWindow token. Vocabularies differ by route (1D, 30d, 24h, all). A token that works on one chart is null or rejected on another.
example: 30d
intervalquerystrrequiredBucket size. Accepted tokens differ by route; use this route's verified example.
example: 1d

Response

type: object
data key: points
pagination: none

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/cmc/api/data-api/v4/global-metrics/quotes/historical?id=1&convertId=2781&range=30d&interval=1d"