GET /coins/batchHistorical

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/defillama/coins/batchHistoricalCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Batch historical prices for several coins at several timestamps in one call.

Parameters

nameintypedescription
coinsquerystrrequiredJSON object mapping coin keys to unix-timestamp arrays — e.g. {"coingecko:ethereum":["1700000000"]} (URL-encoded by the client)
example: {"coingecko:ethereum":["1700000000","1719000000"]}

Response

type: object
pagination: none
sample: {
  "coins": "object"
}

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/defillama/coins/batchHistorical?coins=%7B%22coingecko%3Aethereum%22%3A%5B%221700000000%22%2C%221719000000%22%5D%7D"