Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

CoinGecko Coins List (ID Map)

Документация API
https://api.sandbase.ai/v1/api/coingecko/coins-list

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

Цена
$0.008USD / вызов
Метод
POST
Ответ
JSON
Параметры
0 обязательных · 2 необязательных

Песочница

Ввод
Include platform and token's contract addresses. Default: false
Filter by status of coins. Default: active
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

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.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
CoinGecko$0.008 за запросJSON
CoinGecko$0.008 за запросJSON
CoinGecko$0.008 за запросJSON
CoinGecko$0.008 за запросJSON
CoinGecko$0.008 за запросJSON
CoinGecko$0.008 за запросJSON

Вопросы

FAQ

Как использовать API CoinGecko Coins List (ID Map)?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/coingecko/coins-list, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API CoinGecko Coins List (ID Map)?

$0.008 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API CoinGecko Coins List (ID Map)?

Параметры не требуются. Необязательные: include_platform (boolean) и status (один из active, inactive). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API CoinGecko Coins List (ID Map)?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика CoinGecko или API key?

Нет. CoinGecko Coins List (ID Map) работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API CoinGecko.