CoinGecko Supported Currencies List
https://api.sandbase.ai/v1/api/coingecko/simple-supported-vs-currenciesSupported Currencies List from CoinGecko. Returns the official CoinGecko API response unchanged.
- Giá
- $0.008USD / lượt gọi
- Phương thức
- POST
- Phản hồi
- JSON
- Tham số
- 0 bắt buộc · 0 tùy chọn
Phòng thử nghiệm
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
README API
CoinGecko Supported Currencies List API
Returns the list of currency codes that CoinGecko supports, as a flat JSON array of lowercase strings. The request takes no input.
Use cases
- Fill a currency dropdown with only the codes CoinGecko supports.
- Check that a code such as
ethorbtcis on the supported list before you send it in another CoinGecko request. - Compare the list with your own stored list to spot codes that were added or removed.
Request
curl -X POST "https://api.sandbase.ai/v1/api/coingecko/simple-supported-vs-currencies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
[
"btc"
]
Response fields
| Field | Meaning |
|---|---|
[] | The full response is an array. Each item is one supported currency code as a lowercase string. |
[0] | The first code in the array. In the sample response it is btc. |
[1] / [2] | Further codes in the array. In the sample response they are eth and ltc. |
Notes
- The response is a JSON array of strings, not an object, so there are no named keys.
- To look up coin IDs, call CoinGecko Coins List (ID Map).
- To get market data for coins, call 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.
Bắt đầu xây dựng
Gửi request đầu tiên của bạn
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/coingecko/simple-supported-vs-currencies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Xác thực
Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
3. Tham số
Chưa có schema tham số nào được công bố cho API này.
4. Phản hồi
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
APIs liên quan
| API | Giá | Phản hồi |
|---|---|---|
CoinGecko | $0.008 mỗi lần gọi | JSON |
CoinGecko | $0.008 mỗi lần gọi | JSON |
CoinGecko | $0.008 mỗi lần gọi | JSON |
CoinGecko | $0.008 mỗi lần gọi | JSON |
CoinGecko | $0.008 mỗi lần gọi | JSON |
CoinGecko | $0.008 mỗi lần gọi | JSON |
Câu hỏi
FAQ
Làm thế nào để dùng API CoinGecko Supported Currencies List?
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/coingecko/simple-supported-vs-currencies với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
API CoinGecko Supported Currencies List có giá bao nhiêu?
$0.008 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
API CoinGecko Supported Currencies List chấp nhận những tham số nào?
CoinGecko Supported Currencies List không nhận tham số đầu vào; hãy gửi một phần thân JSON rỗng.
API CoinGecko Supported Currencies List trả về gì?
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Tôi có cần tài khoản nhà phát triển hoặc API key của CoinGecko không?
Không. CoinGecko Supported Currencies List chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của CoinGecko.
