GET
/api/v1/coin/detail
Get Coin Details
Get detailed information about a specific coin, including description, links, tags, etc. This is a public endpoint and does not require authentication.
Request Parameters
Response Example
{
"code": 200,
"msg": "success",
"data": {
"id": 1,
"symbol": "BTC",
"name": "Bitcoin",
"name_cn": "比特币",
"description": "Bitcoin is a decentralized digital currency...",
"description_cn": "比特币是一种去中心化的数字货币...",
"icon": "https://example.com/btc.png",
"website": "https://bitcoin.org",
"explorer": "https://blockchain.info",
"market_cap_rank": 1,
"blockchain": "Bitcoin",
"tags": [
"PoW",
"Store of Value",
"Digital Gold"
]
}
}
Code Example
// cURL示例
curl -X GET "https://ziario.com/api/v1/coin/detail?symbol=BTC"
// PHP示例
$response = file_get_contents("https://ziario.com/api/v1/coin/detail?symbol=BTC");
$data = json_decode($response, true);
print_r($data);
// JavaScript示例
fetch("https://ziario.com/api/v1/coin/detail?symbol=BTC")
.then(response => response.json())
.then(data => console.log(data));
// Python示例
import requests
response = requests.get("https://ziario.com/api/v1/coin/detail", params={"symbol": "BTC"})
print(response.json())