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
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/coingecko/coins-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
include_platformbooleanInclude platform and token's contract addresses. Default: false
statusstringFilter by status of coins. Default: active
संभावित मान: active, inactive
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| 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 |
प्रश्न
https://api.sandbase.ai/v1/api/coingecko/coins-list पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.008 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
कोई parameters आवश्यक नहीं हैं। वैकल्पिक: include_platform (boolean) और status (active, inactive में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। CoinGecko Coins List (ID Map) SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से CoinGecko API access के लिए आवेदन करने की आवश्यकता नहीं है।