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 freeCoin autocomplete candidates for comparing price charts against a base coin.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
coin_id | path | str | required | Base coin id (slug). default: bitcoinexample: bitcoin |
query | query | str | required | Search text for comparison coins. default: ethexample: eth |
locale | query | str | optional | UI locale. default: enexample: 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"