idstringจำเป็น
Coin ID. *refers to [`/coins/list`](/reference/coins-list)
ค่าเริ่มต้น: "bitcoin"
https://api.sandbase.ai/v1/api/coingecko/coinsGet all the metadata (image, websites, socials, description, contract address, etc.) and market data (price, ATH, exchange tickers, etc.) of a coin from the CoinGecko coin page based on a particular coin ID
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns the CoinGecko page data for one coin: descriptions, links, categories, images, and market data. It needs a CoinGecko coin id such as bitcoin.
curl -X POST "https://api.sandbase.ai/v1/api/coingecko/coins" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id": "bitcoin"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Coin ID. *refers to /coins/list |
community_data | boolean | No | Include community data. Deprecated: has no effect as of 28 August 2026; the community_data object is no longer returned. |
developer_data | boolean | No | Include developer data. Deprecated: has no effect as of 28 August 2026; the developer_data object is no longer returned. |
dex_pair_format | string | No | Set to symbol to display DEX pair base and target as symbols. Default: contract_address |
include_categories_details | boolean | No | Include categories details. Default: false |
localization | boolean | No | Include all localized languages in the response. Default: true |
market_data | boolean | No | Include market data. Default: true |
sparkline | boolean | No | Include sparkline 7-day data. Default: false |
tickers | boolean | No | Include tickers data. Default: true |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"additional_notices": [],
"asset_platform_id": null,
"block_time_in_minutes": 10,
"categories": [
"Smart Contract Platform"
],
"country_origin": "",
"description": {
"ar": "",
"bg": "",
"cs": "",
"da": "",
"de": "",
"el": "",
"en": "Bitcoin is the world's first decentralized cryptocurrency, created in 2009 by th…",
"es": "¿Qué es Bitcoin (BTC)?\nBitcoin es el primer caso de éxito de dinero de Internet …",
"fi": "",
"fr": "",
"he": "",
"hi": ""
},
"detail_platforms": {
"": {
"contract_address": "",
"decimal_place": null
}
},
"genesis_date": "2009-01-03",
"has_supply_breakdown": false,
"hashing_algorithm": "SHA-256",
"id": "bitcoin",
"image": {
"large": "https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png?1696501400",
"small": "https://coin-images.coingecko.com/coins/images/1/small/bitcoin.png?1696501400",
"thumb": "https://coin-images.coingecko.com/coins/images/1/thumb/bitcoin.png?1696501400"
}
}
| Field | Meaning |
|---|---|
id | The CoinGecko coin ID. Use it in other CoinGecko calls. |
categories | List of category names the coin belongs to, such as Layer 1 (L1). |
description.en | Text description of the coin in English. Other language keys hold translations and may be empty. |
image.large / image.small / image.thumb | URLs of the coin logo in three sizes. |
links.homepage / links.blockchain_site / links.whitepaper / links.repos_url.github | Official website, block explorer links, whitepaper link, and GitHub repository URLs. |
genesis_date / hashing_algorithm / block_time_in_minutes | Launch date, the hashing algorithm name, and block time in minutes. |
market_cap_rank | Rank of the coin by market cap. |
market_data.ath / market_data.ath_date / market_data.ath_change_percentage | All-time high per quote currency, the date it happened, and the percent change from that high to now. |
market_data.circulating_supply | Number of coins in circulation. |
market_data.fully_diluted_valuation | Fully diluted valuation of the coin, with one value per quote currency. |
id values from CoinGecko Coins List (ID Map).market_data, tickers, or localization to false to leave those sections out of the response.last_updated and market_data.ath_date use ISO 8601 format in UTC.$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/coingecko/coins" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "bitcoin"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
idstringจำเป็นCoin ID. *refers to [`/coins/list`](/reference/coins-list)
ค่าเริ่มต้น: "bitcoin"
community_databooleanInclude community data. Deprecated: has no effect as of 28 August 2026; the `community_data` object is no longer returned.
developer_databooleanInclude developer data. Deprecated: has no effect as of 28 August 2026; the `developer_data` object is no longer returned.
dex_pair_formatstringSet to `symbol` to display DEX pair base and target as symbols. Default: `contract_address`
ค่าที่เป็นไปได้: contract_address, symbol
include_categories_detailsbooleanInclude categories details. Default: false
localizationbooleanInclude all localized languages in the response. Default: true
market_databooleanInclude market data. Default: true
sparklinebooleanInclude sparkline 7-day data. Default: false
tickersbooleanInclude tickers data. Default: true
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
CoinGecko Coin Data by IDAPI นี้ CoinGecko | $0.008 ต่อการเรียก | JSON |
CoinGecko | $0.008 ต่อการเรียก | JSON |
CoinGecko | $0.008 ต่อการเรียก | JSON |
CoinGecko | $0.008 ต่อการเรียก | JSON |
CoinGecko | $0.008 ต่อการเรียก | JSON |
CoinGecko | $0.008 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/coingecko/coins โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.008 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: id (string). ตัวเลือก: community_data (boolean), developer_data (boolean), dex_pair_format (หนึ่งใน contract_address, symbol), include_categories_details (boolean), localization (boolean) และ market_data (boolean) และอีก 2 รายการ ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น CoinGecko Coin Data by ID ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง CoinGecko API แยกต่างหาก