GET /api/data-api/v3/chain/block

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

Chain milestone for a coin. Bitcoin returned only dateOfHalving, not a block height.

name=chain_block. Not a block height. Bitcoin returned only dateOfHalving.

Parameters

nameintypedescription
cryptoIdquerystrrequired1 returned only dateOfHalving.
example: 1

Response

type: object
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/chain/block?cryptoId=1"