Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

CoinGecko Coins List (ID Map)

API dokümanları
https://api.sandbase.ai/v1/api/coingecko/coins-list

Get all the supported coins on CoinGecko with coins ID, name and symbol

Fiyat
$0.008USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
0 gerekli · 2 isteğe bağlı

Oynatma Alanı

Girdi
Include platform and token's contract addresses. Default: false
Filter by status of coins. Default: active
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

CoinGecko Coins List (ID Map) API

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.

Use cases

  • Build a lookup table that maps CoinGecko coin IDs to symbols and names.
  • Resolve a ticker symbol to a coin id before you call a coin data or market data API.
  • Check whether a coin is listed on CoinGecko by searching the list for its id or symbol.
  • Set status to inactive to find coins that are not active.

Request

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.

Parameters

NameTypeRequiredDescription
include_platformbooleanNoInclude platform and token's contract addresses. Default: false
statusstringNoFilter by status of coins. Default: active

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

[
  {
    "id": "_",
    "name": "༼ つ ◕_◕ ༽つ",
    "symbol": "gib"
  }
]

Response fields

FieldMeaning
[].idCoinGecko coin ID, such as 000-capital. Pass this value to other CoinGecko APIs that ask for a coin ID.
[].nameDisplay name of the coin. It can contain digits or unusual characters.
[].symbolTicker symbol of the coin. It appears in lowercase in the response. Use id as the identifier when you call other APIs.

Notes

  • The request body can be empty ({}). By default the call returns coins with status set to active.
  • Set 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.
  • Use the id value as the coin ID in CoinGecko Coin Data by ID.
  • To get market data for many coins in one call, use CoinGecko Coins List with Market Data.

Pricing

$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
CoinGecko$0.008 çağrı başınaJSON
CoinGecko$0.008 çağrı başınaJSON
CoinGecko$0.008 çağrı başınaJSON
CoinGecko$0.008 çağrı başınaJSON
CoinGecko$0.008 çağrı başınaJSON
CoinGecko$0.008 çağrı başınaJSON

Sorular

SSS

CoinGecko Coins List (ID Map) API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/coingecko/coins-list adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

CoinGecko Coins List (ID Map) API'sinin fiyatı nedir?

çağrı başına $0.008, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

CoinGecko Coins List (ID Map) API'si hangi parametreleri kabul eder?

Gerekli parametre yoktur. İsteğe bağlı: include_platform (boolean) ve status (active, inactive arasından biri). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

CoinGecko Coins List (ID Map) API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir CoinGecko geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. CoinGecko Coins List (ID Map), SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. CoinGecko API erişimi için ayrıca başvuru yapmanız gerekmez.