CoinMarketCap API

CoinMarketCap 加密货币列表 API

从 CoinMarketCap 获取当前排名靠前的加密货币(排名、价格、市值、交易量和 24 小时涨跌幅),以标准化 JSON 返回。

POST/v1/run/coinmarketcap.listings
可用率
100.00%
30d · 18 次调用
请求数
18
30d · 按周,近 12 周
响应时间
14.2s
中位数 · 30d

试一试

发出你的第一个请求

打开于
获取免费密钥
示例响应
免费运行只返回前 3 条结果。为密钥充值即可获得完整响应。
{
  "data": {
    "items": [
      {
        "active": true,
        "ath": 12.5,
        "atl": 12.5,
        "circulatingSupply": 12.5,
        "createdUtc": 12.5,
        "dominance": 12.5,
        "fullyDilutedMarketCap": 12.5,
        "high24h": 12.5,
        "id": "a1b2c3d4",
        "lastUpdated": "2024-01-15T09:30:00Z",
        "low24h": 12.5,
        "marketCap": 12.5,
        "marketPairCount": 12500,
        "name": "Example title",
        "percentChange1h": 12.5,
        "percentChange1y": 12.5,
        "percentChange24h": 12.5,
        "percentChange30d": 12.5,
        "percentChange60d": 12.5,
        "percentChange7d": 12.5,
        "percentChange90d": 12.5,
        "percentChangeYtd": 12.5,
        "price": 19.99,
        "selfReportedCirculatingSupply": 12.5,
        "slug": "alex_rivera",
        "symbol": "example",
        "totalSupply": 12500,
        "turnover": 12.5,
        "volume24h": 12500,
        "volume30d": 12500,
        "volume7d": 12500
      }
    ]
  },
  "found": true,
  "reason": "not_found"
}
响应类型定义
interface CoinmarketcapListingsResponse {
  data: {
    items: {
      active?: boolean;
      ath?: number;
      atl?: number;
      circulatingSupply?: number;
      createdUtc?: number;
      dominance?: number;
      fullyDilutedMarketCap?: number;
      high24h?: number;
      id: string;
      lastUpdated?: string;
      low24h?: number;
      marketCap?: number;
      marketPairCount?: number;
      name: string;
      percentChange1h?: number;
      percentChange1y?: number;
      percentChange24h?: number;
      percentChange30d?: number;
      percentChange60d?: number;
      percentChange7d?: number;
      percentChange90d?: number;
      percentChangeYtd?: number;
      price?: number;
      selfReportedCirculatingSupply?: number;
      slug?: string;
      symbol: string;
      totalSupply?: number;
      turnover?: number;
      volume24h?: number;
      volume30d?: number;
      volume7d?: number;
    }[];
  } | null;
  found: boolean;
  reason?: "not_found";
}

完整的参数与响应参考:这个接口的每个字段、类型和示例。

参考

请求、响应与价格

最近验证于 2026-09-29 · 可用率和延迟按 30d 统计
POST /v1/run/coinmarketcap.listings
curl -X POST https://api.getanyapi.com/v1/run/coinmarketcap.listings \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":5}'
字段类型示例值
请求体
limitinteger5最多返回的结果数(1-25,默认 25)。按返回的结果数扣费,所以上限越低,费用越少。
响应
dataobject
data.itemsobject[]Cryptocurrency listing records: rank, name, symbol, price, market cap, trading volume, and 24h price change. Populated whenever the provider has data for the entity.
data.items[].activebooleanWhether CoinMarketCap still tracks the coin as active.
data.items[].athnumberAll-time high price in USD.
data.items[].atlnumberAll-time low price in USD.
data.items[].circulatingSupplynumberCirculating supply (coin count).
data.items[].createdUtcnumberWhen CoinMarketCap first listed the coin. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
data.items[].dominancenumberShare of total crypto market capitalization, in percent.
data.items[].fullyDilutedMarketCapnumberFully diluted market capitalization in USD (total supply at the current price).
data.items[].high24hnumber24h high price in USD.
data.items[].idstringCoinMarketCap identifier. Populated whenever the provider has data for the entity.
data.items[].lastUpdatedstringPopulated whenever the provider has data for the entity.
data.items[].low24hnumber24h low price in USD.
data.items[].marketCapnumberMarket capitalization in USD.
data.items[].marketPairCountintegerNumber of exchange market pairs trading this coin.
data.items[].namestringPopulated whenever the provider has data for the entity.
data.items[].percentChange1hnumberPrice change over the last hour, in percent.
data.items[].percentChange1ynumberPrice change over the last year, in percent.
data.items[].percentChange24hnumberPrice change over the last 24 hours, in percent.
data.items[].percentChange30dnumberPrice change over the last 30 days, in percent.
data.items[].percentChange60dnumberPrice change over the last 60 days, in percent.
data.items[].percentChange7dnumberPrice change over the last 7 days, in percent.
data.items[].percentChange90dnumberPrice change over the last 90 days, in percent.
data.items[].percentChangeYtdnumberPrice change year to date, in percent.
data.items[].pricenumberLatest price in USD.
data.items[].selfReportedCirculatingSupplynumberCirculating supply as reported by the project itself (coin count).
data.items[].slugstringPopulated whenever the provider has data for the entity.
data.items[].symbolstringPopulated whenever the provider has data for the entity.
data.items[].totalSupplynumberTotal supply (coin count).
data.items[].turnovernumber24h trading volume divided by market capitalization.
data.items[].volume24hnumber24h trading volume in USD.
data.items[].volume30dnumber30-day trading volume in USD.
data.items[].volume7dnumber7-day trading volume in USD.
foundboolean
reason"not_found"Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
价格
每次请求价格(上限)USDUS$0.0495
价格(/千条结果)USDUS$1.98

常见问题

关于 CoinMarketCap 加密货币列表 API

AnyAPI 的 CoinMarketCap 加密货币列表 API 只需一次 POST 请求 /v1/run/coinmarketcap.listings,就以统一格式的 JSON 返回 CoinMarketCap 数据。从 CoinMarketCap 获取当前排名靠前的加密货币(排名、价格、市值、交易量和 24 小时涨跌幅),以标准化 JSON 返回。无论哪个数据源提供服务,AnyAPI 都返回同一套统一的 schema。费用:每千条结果 US$1.98,单次请求最多 US$0.0495,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 CoinMarketCap 加密货币列表 API 调用中有 100.0% 成功,响应时间中位数为 14.2 秒,共测量 18 次调用。

费用:每千条结果 US$1.98,单次请求最多 US$0.0495,以美元计价,无需订阅,也没有每月最低消费。你只需为一个美元钱包充值,每次调用从中扣费。部分由钱包付费的失败请求会产生处理费用,我们按成本原价转嫁,不加价;错误响应会显示收取的金额。

从 CoinMarketCap 获取当前排名靠前的加密货币(排名、价格、市值、交易量和 24 小时涨跌幅),以标准化 JSON 返回。响应是统一格式的 JSON,外层结构与每个 AnyAPI 接口相同,所以解析另一个接口只需换一个 URL,别的都不用改。

过去 30 天,通过 AnyAPI 发起的 CoinMarketCap 加密货币列表 API 调用中有 100.0% 成功,响应时间中位数为 14.2 秒,共测量 18 次调用。这些是 AnyAPI 对经过网关的流量的自有测量,持续重新计算,并非公开承诺的服务等级目标。