Current crypto price by coin id — market cap, 24h change
coingecko.simple.priceCurrent price for up to hundreds of coins at once, in any quote currency, with optional market cap, 24h volume and 24h change
- Price
- $0.00029/callAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- Aug 15, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/coingecko.simple.price?ids=bitcoin%2Cethereum&vs_currencies=usd&include_24hr_change=truePreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
ids | string | Required | comma-separated CoinGecko coin ids (bitcoin,ethereum) — find ids with coingecko.search | bitcoin,ethereum |
vs_currencies | string | Required | comma-separated quote currencies (usd,eur,btc) | usd |
include_24hr_vol | boolean | Optional | ||
include_market_cap | boolean | Optional | ||
include_24hr_change | boolean | Optional | true | |
- Query parameters
idsstringRequiredcomma-separated CoinGecko coin ids (bitcoin,ethereum) — find ids with coingecko.search
Example:
bitcoin,ethereumvs_currenciesstringRequiredcomma-separated quote currencies (usd,eur,btc)
Example:
usdinclude_24hr_volbooleanOptionalinclude_market_capbooleanOptionalinclude_24hr_changebooleanOptionalExample:
true
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/coingecko.simple.price?ids=bitcoin%2Cethereum&vs_currencies=usd&include_24hr_change=true' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/coingecko.simple.price?ids=bitcoin%2Cethereum&vs_currencies=usd&include_24hr_change=true",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/coingecko.simple.price?ids=bitcoin%2Cethereum&vs_currencies=usd&include_24hr_change=true", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.00029/call, including the service fee.