GET /simple/price
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/coingecko/simple/priceCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeSpot price, market cap and volume for one or more coin ids.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
ids | query | str | required | Comma-separated coin ids (slugs). example: bitcoin |
vs_currencies | query | str | required | Comma-separated quote currencies. default: usdexample: usd |
include_market_cap | query | bool | optional | Include market cap per coin. default: Falseexample: True |
include_24hr_vol | query | bool | optional | Include 24h volume per coin. default: Falseexample: False |
include_24hr_change | query | bool | optional | Include 24h percentage change per coin. default: Falseexample: False |
include_last_updated_at | query | bool | optional | Include unix timestamp of the last price update. default: Falseexample: False |
Response
type: object
pagination: none
sample: {
"bitcoin": "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/simple/price?ids=bitcoin&vs_currencies=usd&include_market_cap=True&include_24hr_vol=False&include_24hr_change=False&include_last_updated_at=False"