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
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/coingecko/coins-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
include_platformbooleanInclude platform and token's contract addresses. Default: false
statusstringFilter by status of coins. Default: active
Valores posibles: active, inactive
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
CoinGecko Coins List (ID Map)Esta API CoinGecko | $0.008 por llamada | JSON |
CoinGecko | $0.008 por llamada | JSON |
CoinGecko | $0.008 por llamada | JSON |
CoinGecko | $0.008 por llamada | JSON |
CoinGecko | $0.008 por llamada | JSON |
CoinGecko | $0.008 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/coingecko/coins-list con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.008 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
No se requieren parámetros. Opcionales: include_platform (boolean) y status (una de active, inactive). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. CoinGecko Coins List (ID Map) funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de CoinGecko por separado.