GET /web/price_charts/{coin_id}/compare/search

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/coingecko/web/price_charts/{coin_id}/compare/searchCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Coin autocomplete candidates for comparing price charts against a base coin.

Parameters

nameintypedescription
coin_idpathstrrequiredBase coin id (slug).
default: bitcoin
example: bitcoin
queryquerystrrequiredSearch text for comparison coins.
default: eth
example: eth
localequerystroptionalUI locale.
default: en
example: en

Response

type: array
pagination: none
sample: {
  "[0]": "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/coingecko/web/price_charts/bitcoin/compare/search?query=eth&locale=en"