include_platformboolean
Include platform and token's contract addresses. Default: false
https://api.sandbase.ai/v1/api/coingecko/coins-listGet all the supported coins on CoinGecko with coins ID, name and symbol
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns the list of coins that CoinGecko supports, as a flat array. Each entry has the coin id, name and symbol. No input is required. Optional parameters add contract addresses or switch to inactive coins.
id before you call a coin data or market data API.id or symbol.status to inactive to find coins that are not active.curl -X POST "https://api.sandbase.ai/v1/api/coingecko/coins-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
include_platform | boolean | No | Include platform and token's contract addresses. Default: false |
status | string | No | Filter by status of coins. Default: active |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
[
{
"id": "_",
"name": "༼ つ ◕_◕ ༽つ",
"symbol": "gib"
}
]
| Field | Meaning |
|---|---|
[].id | CoinGecko coin ID, such as 000-capital. Pass this value to other CoinGecko APIs that ask for a coin ID. |
[].name | Display name of the coin. It can contain digits or unusual characters. |
[].symbol | Ticker symbol of the coin. It appears in lowercase in the response. Use id as the identifier when you call other APIs. |
{}). By default the call returns coins with status set to active.include_platform to true to add platform and token contract address data to each coin. The sample response was requested without it and shows only id, name and symbol.id value as the coin ID in CoinGecko Coin Data by ID.$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Commencer à construire
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-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'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.
include_platformbooleanInclude platform and token's contract addresses. Default: false
statusstringFilter by status of coins. Default: active
Valeurs possibles : active, inactive
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
| API | Prix | Réponse |
|---|---|---|
CoinGecko Coins List (ID Map)Cette API 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
Envoyez une requête POST à https://api.sandbase.ai/v1/api/coingecko/coins-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.
$0.008 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Aucun paramètre n’est requis. Facultatif : include_platform (boolean) et status (l’un de active, inactive). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
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.
Non. CoinGecko Coins 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.