GET
/api/v1/coin/popular
Get Popular Coins
Get a list of popular coins ranked by market capitalization. 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": "比特币",
"icon": "https://example.com/btc.png",
"market_cap_rank": 1
},
{
"id": 2,
"symbol": "ETH",
"name": "Ethereum",
"name_cn": "以太坊",
"icon": "https://example.com/eth.png",
"market_cap_rank": 2
}
]
}
Code Example
// cURL示例
curl -X GET "https://ziario.com/api/v1/coin/popular?limit=10"
// PHP示例
$response = file_get_contents("https://ziario.com/api/v1/coin/popular?limit=10");
$data = json_decode($response, true);
print_r($data);
// JavaScript示例
fetch("https://ziario.com/api/v1/coin/popular?limit=10")
.then(response => response.json())
.then(data => console.log(data));
// Python示例
import requests
response = requests.get("https://ziario.com/api/v1/coin/popular", params={"limit": 10})
print(response.json())