Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

CoinGecko Coins List (ID Map)

Dokumentasi API
https://api.sandbase.ai/v1/api/coingecko/coins-list

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

Harga
$0.008USD / panggilan
Metode
POST
Respons
JSON
Parameter
0 wajib · 2 opsional

Playground

Input
Include platform and token's contract addresses. Default: false
Filter by status of coins. Default: active
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
CoinGecko$0.008 per panggilanJSON
CoinGecko$0.008 per panggilanJSON
CoinGecko$0.008 per panggilanJSON
CoinGecko$0.008 per panggilanJSON
CoinGecko$0.008 per panggilanJSON
CoinGecko$0.008 per panggilanJSON

Pertanyaan

FAQ

Bagaimana cara menggunakan API CoinGecko Coins List (ID Map)?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/coingecko/coins-list dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API CoinGecko Coins List (ID Map)?

$0.008 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API CoinGecko Coins List (ID Map)?

Tidak ada parameter yang wajib. Opsional: include_platform (boolean) dan status (salah satu dari active, inactive). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API CoinGecko Coins List (ID Map)?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API CoinGecko?

Tidak. CoinGecko Coins List (ID Map) berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API CoinGecko secara terpisah.