GET /api/data-api/v3/cryptocurrency/vote

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

Good/bad vote counts and percents for a coin, plus hasVoted for this caller. convertId is required and does not appear on the vote object.

name=crypto_vote. Public tallies plus hasVoted. Not a ballot cast. convertId is required and is not on the vote object.

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
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/vote?id=1&slug=bitcoin&convertId=2781"