← 金融与货币

加密货币搜索

GET /crypto/search

按名称或代码符号搜索前 250 种加密货币。返回匹配的代币及其 ID、符号、名称和当前价格。适用于在加密货币应用中构建自动补全搜索字段、让用户查找和添加代币到关注列表,或将模糊的代码符号解析为正确的代币。

参数

q 必填

Search query

请求示例

基本用法
curl "https://nordapi.ee/api/v1/crypto/search?q=ethereum"
Search for Ethereum
curl "https://nordapi.ee/api/v1/crypto/search?q=ethereum"
Search by ticker symbol
curl "https://nordapi.ee/api/v1/crypto/search?q=SOL"
Search for dog-themed coins
curl "https://nordapi.ee/api/v1/crypto/search?q=doge"

实时响应

{
  "count": 3,
  "data": [
    {
      "id": "ethereum",
      "market_cap_usd": 249557663837.0,
      "name": "Ethereum",
      "price_usd": 2066.43,
      "symbol": "ETH"
    },
    {
      "id": "ethereum-classic",
      "market_cap_usd": 1339982035.0,
      "name": "Ethereum Classic",
      "price_usd": 8.58,
      "symbol": "ETC"
    },
    {
      "id": "ethereum-name-service",
      "market_cap_usd": 212626675.0,
      "name": "Ethereum Name Service",
      "price_usd": 5.54,
      "symbol": "ENS"
    }
  ],
  "success": true
}

响应示例

{"success":true,"data":[{"id":"ethereum","symbol":"ETH","name":"Ethereum","price_usd":2147.50}]}