Sand AISand AI MAGI-2ตอนนี้ MAGI-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 / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 2 ไม่บังคับ

Playground

อินพุต
Include platform and token's contract addresses. Default: false
Filter by status of coins. Default: active
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

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.

สำรวจเพิ่มเติม

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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ CoinGecko Coins List (ID Map) API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/coingecko/coins-list โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

CoinGecko Coins List (ID Map) API ราคาเท่าไร?

$0.008 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

CoinGecko Coins List (ID Map) API รับพารามิเตอร์อะไรบ้าง?

ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: include_platform (boolean) และ status (หนึ่งใน active, inactive). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

CoinGecko Coins List (ID Map) API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ CoinGecko ไหม?

ไม่จำเป็น CoinGecko Coins List (ID Map) ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง CoinGecko API แยกต่างหาก