CoinGecko Coins Categories List (ID Map)
https://api.sandbase.ai/v1/api/coingecko/coins-categories-listCoins Categories List (ID Map) from CoinGecko. Returns the official CoinGecko API response unchanged.
- 料金
- $0.008USD / 回
- メソッド
- POST
- レスポンス
- JSON
- パラメータ
- 必須 0 件 · 任意 0 件
プレイグラウンド
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
API README
CoinGecko Coins Categories List (ID Map) API
Returns the list of all coin categories on CoinGecko as an ID map. Each item has a category_id and a display name. The API takes no input parameters.
Use cases
- Build a category picker in an app using the
namefield as the label andcategory_idas the value. - Validate a category ID before you pass it to another CoinGecko call.
- Sync a local table of CoinGecko categories, for example to find new ecosystem or theme groups.
- Map a stored
category_idto a readable name in reports.
Request
curl -X POST "https://api.sandbase.ai/v1/api/coingecko/coins-categories-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
[
{
"category_id": "0g-ecosystem",
"name": "0g Ecosystem"
}
]
Response fields
| Field | Meaning |
|---|---|
[].category_id | Unique ID of the category on CoinGecko. It is a lowercase, hyphenated string such as 0g-ecosystem. |
[].name | Display name of the category, such as 4chan-Themed. |
Notes
- The response is a top-level array. It has no wrapper object.
- The request needs no parameters. Send an empty JSON object
{}. - This list has no market data. Call CoinGecko Coins Categories List with Market Data for market data per category.
- To find coins themselves, call CoinGecko Coins List (ID Map).
Pricing
$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開発を始める
最初のリクエストを送信
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/coingecko/coins-categories-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. 認証
SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
3. パラメータ
このAPIのパラメータスキーマは公開されていません。
4. レスポンス
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
関連 APIs
| API | 価格 | レスポンス |
|---|---|---|
CoinGecko | $0.008 / 回 | JSON |
CoinGecko | $0.008 / 回 | JSON |
CoinGecko | $0.008 / 回 | JSON |
CoinGecko | $0.008 / 回 | JSON |
CoinGecko | $0.008 / 回 | JSON |
CoinGecko | $0.008 / 回 | JSON |
質問
FAQ
CoinGecko Coins Categories List (ID Map) API はどのように使いますか?
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/coingecko/coins-categories-list に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
CoinGecko Coins Categories List (ID Map) API の料金はいくらですか?
1回あたり $0.008、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
CoinGecko Coins Categories List (ID Map) API はどのパラメータを受け付けますか?
CoinGecko Coins Categories List (ID Map) は入力パラメータを取りません。空の JSON ボディを送信してください。
CoinGecko Coins Categories List (ID Map) API は何を返しますか?
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
CoinGecko の開発者アカウントまたは API key は必要ですか?
いいえ。CoinGecko Coins Categories List (ID Map) は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。CoinGecko の API アクセスを別途申請する必要はありません。
