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/callプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- 2026/08/15Verified working
GEThttps://toolswitch.dev/v1/tools/coingecko.simple.price?ids=bitcoin%2Cethereum&vs_currencies=usd&include_24hr_change=truePreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
ids | 文字列 | 必須 | comma-separated CoinGecko coin ids (bitcoin,ethereum) — find ids with coingecko.search | bitcoin,ethereum |
vs_currencies | 文字列 | 必須 | comma-separated quote currencies (usd,eur,btc) | usd |
include_24hr_vol | 真偽値 | 任意 | ||
include_market_cap | 真偽値 | 任意 | ||
include_24hr_change | 真偽値 | 任意 | true | |
- クエリパラメータ
ids文字列必須comma-separated CoinGecko coin ids (bitcoin,ethereum) — find ids with coingecko.search
例:
bitcoin,ethereumvs_currencies文字列必須comma-separated quote currencies (usd,eur,btc)
例:
usdinclude_24hr_vol真偽値任意include_market_cap真偽値任意include_24hr_change真偽値任意例:
true
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.00029/call です。サービス料を含みます。