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.
- Prix
- $0.008USD / appel
- Méthode
- POST
- Réponse
- JSON
- Paramètres
- 0 obligatoires · 0 facultatifs
Bac à sable
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
README de l'API
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.
Commencer à construire
Envoyez votre première requête
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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. Authentification
Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
3. Paramètres
Aucun schéma de paramètres n'a été publié pour cette API.
4. Réponse
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
APIs associées
| API | Prix | Réponse |
|---|---|---|
CoinGecko | $0.008 par appel | JSON |
CoinGecko | $0.008 par appel | JSON |
CoinGecko | $0.008 par appel | JSON |
CoinGecko | $0.008 par appel | JSON |
CoinGecko | $0.008 par appel | JSON |
CoinGecko | $0.008 par appel | JSON |
Questions
FAQ
Comment utiliser l’API CoinGecko Coins Categories List (ID Map) ?
Envoyez une requête POST à https://api.sandbase.ai/v1/api/coingecko/coins-categories-list avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
Combien coûte l’API CoinGecko Coins Categories List (ID Map) ?
$0.008 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Quels paramètres l’API CoinGecko Coins Categories List (ID Map) accepte-t-elle ?
CoinGecko Coins Categories List (ID Map) n’accepte aucun paramètre d’entrée ; envoyez un corps JSON vide.
Que renvoie l’API CoinGecko Coins Categories List (ID Map) ?
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Ai-je besoin d’un compte développeur ou d’une clé API CoinGecko ?
Non. CoinGecko Coins Categories List (ID Map) fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API CoinGecko séparément.
