GET /api/v1/coin/list

Get Coin List

Get a list of coins with pagination and search support. This is a public endpoint and does not require authentication.

Request Parameters

Response Example

{
    "code": 200,
    "msg": "success",
    "data": {
        "list": [
            {
                "id": 1,
                "symbol": "BTC",
                "name": "Bitcoin",
                "name_cn": "比特币",
                "icon": "https://example.com/btc.png",
                "market_cap_rank": 1,
                "blockchain": "Bitcoin",
                "tags": [
                    "PoW",
                    "Store of Value"
                ]
            },
            {
                "id": 2,
                "symbol": "ETH",
                "name": "Ethereum",
                "name_cn": "以太坊",
                "icon": "https://example.com/eth.png",
                "market_cap_rank": 2,
                "blockchain": "Ethereum",
                "tags": [
                    "Smart Contract",
                    "PoS"
                ]
            }
        ],
        "total": 100,
        "page": 1,
        "limit": 20
    }
}

Code Example

// cURL示例
curl -X GET "https://ziario.com/api/v1/coin/list?page=1&limit=20&keyword=BTC"

// PHP示例
$response = file_get_contents("https://ziario.com/api/v1/coin/list?page=1&limit=20");
$data = json_decode($response, true);
print_r($data);

// JavaScript示例
fetch("https://ziario.com/api/v1/coin/list?page=1&limit=20")
    .then(response => response.json())
    .then(data => console.log(data))
    .catch(error => console.error("Error:", error));

// Python示例
import requests

response = requests.get("https://ziario.com/api/v1/coin/list", params={
    "page": 1,
    "limit": 20,
    "keyword": "BTC"
})
print(response.json())