GET /api/data-api/v3/cryptocurrency/quote-by-timestamp

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/cmc/api/data-api/v3/cryptocurrency/quote-by-timestampCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Current converted price plus a server timestamp. No client timestamp parameter exists.

name=quote_by_timestamp. No timestamp request param. The payload timestamp is now. convertQuotes[0].price is the current price.

Parameters

nameintypedescription
idquerystrrequiredRoute-specific id. Coin routes use 1 for BTC; exchange reserves use 270 for Binance.
example: 1
slugquerystrrequiredURL slug such as bitcoin or binance.
example: bitcoin
convertIdquerystrrequiredQuote convert id. 2781 is USD on these public routes.
example: 2781

Response

type: object
data key: convertQuotes
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/v3/cryptocurrency/quote-by-timestamp?id=1&slug=bitcoin&convertId=2781"