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
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/coingecko/coins-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
include_platformbooleanInclude platform and token's contract addresses. Default: false
statusstringFilter by status of coins. Default: active
Możliwe wartości: active, inactive
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
CoinGecko | $0.008 za wywołanie | JSON |
CoinGecko | $0.008 za wywołanie | JSON |
CoinGecko | $0.008 za wywołanie | JSON |
CoinGecko | $0.008 za wywołanie | JSON |
CoinGecko | $0.008 za wywołanie | JSON |
CoinGecko | $0.008 za wywołanie | JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/coingecko/coins-list z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.008 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Nie są wymagane żadne parametry. Opcjonalne: include_platform (boolean) i status (jedna z opcji: active, inactive). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. CoinGecko Coins List (ID Map) działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API CoinGecko.