EN ▼
Favorites
My Favorites
View All
Market Cap Price 24h%

Disclaimer: Content does not constitute investment advice. Trading involves risks—please invest with caution!

How to test the CoinMarketCap interface without API keys

2026-07-18 00:16:38
Bookmark

引言

在注册账户之前,你可以使用无密钥的CoinMarketCap API直接对真实生产数据进行测试,无需注册,无需密钥。试用版专业API与经过认证的API使用相同的生产环境,返回实时数据,因此你可以在编写实际集成代码之前,确认响应格式和端点行为是否符合你的项目需求。

本指南将介绍如何发起无密钥请求、响应格式、可用的端点,以及如何在你准备好后迁移到正式密钥。

什么是无密钥API

CoinMarketCap无密钥公共API允许你在没有账户、无需注册、无需X-CMC_PRO_API_KEY头的情况下,调用精心挑选的生产端点子集。基础URL为:

https://pro-api.coinmarketcap.com/trial-pro-api

你只需附加与认证API相同的端点路径,但不带任何密钥头。该API旨在用于原型开发和评估,在创建账户之前测试API是否满足你的用例。

无密钥API可用的内容

无密钥公共API覆盖35个以上的实时生产端点。根据当前文档,子集包括:

标准API(19个端点)

加密货币列表(最新、新增)

加密货币报价(最新)

全球指标(最新)

恐惧与贪婪指数(最新和历史)

CMC指数(CMC100、CMC20,最新和历史)

Altcoin seasonal index (latest and historical)

Cryptocurrency map and information

DEX API (17 endpoints)

DEX token details and prices

DEX pool

DEX trading pair quotes

holders (Quantity, list, details)

K-line candle diagram

Token search

Initiating a keyless request

The only differences between an authentication request and the URL prefix and missing key header are.

cURL

curl -G 'https://pro-api.coinmarketcap.com/trial-pro-api/v1/cryptocurrency/listings/latest' \

--data-urlencode 'limit= 10'\

--data-urlencode 'convert=USD' \

-H 'Accept: application/json'

No header is required. Return real ranking market data immediately.

Python

import requests

response = requests.get(

    "https://pro-api.coinmarketcap.com/trial-pro-api/v1/cryptocurrency/listings/latest",

    headers={"Accept": "application/json"},

    params={"limit": "10", "convert": "USD"},

)

response.raise_for_status()

data = response.json()

print(data)

Node.js

const response = await fetch("https://pro-api.coinmarketcap.com/trial-pro-api/v1/cryptocurrency/listings/latest", {

  headers: {"Accept":"application/json"}

});

const data = await response.json();

console.log(data);

The response format is exactly the same

The keyless API returns the same JSON encapsulation structure as the authentication API. Same data and state structure, same field names, same ID system. Parsing code written for keyless responses works without modification after switching to authenticated access.

{

"data": [

{

"id": 1,

"name": "Bitcoin",

"symbol": "BTC",

"cmc_rank": 1,

"quote": {

"USD": {

"price": 63120.95,

"market_cap": 1265258535378.41,

"volume_24h": 29127614493.57,

"percent_change_24h": -1.19

}

}

}

],

"status": {

"timestamp": "2026-07-03T10:00:00.000Z",

"error_code": 0,

"error_message": null,

"elapsed": 12,

"credit_count": 1

}

}

This is the core benefit of the keyless API: Everything you learn and build for it can be migrated directly to the production environment.

Migrate to authenticated access

When you are ready to use higher rate limits and a complete endpoint directory, migration only requires one line change.

Keyless request:

GET https://pro-api.coinmarketcap.com/trial-pro-api/v1/cryptocurrency/listings/latest

Authentication request:

GET https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest

X-CMC_PRO_API_KEY: YOUR_API_KEY

Remove the/trial-pro-api from the URL and add the X-CMC_PRO_API_KEY header. Everything else remains the same.

Get a free API key, the free basic plan includes 15000 monthly points and 30+ endpoint access.

Restrictions on keyless APIs

Keyless APIs are designed for prototype development and evaluation and are not suitable for use in production environments.

Strict rate limit. With any actual load, you will hit the limit quickly. Please migrate to the certification program before going online.

Fixed endpoint subset. Endpoints that are not in the select set return errors. If you need an unsupported endpoint, you need a key.

Not for commercial use. The keyless API is an evaluation tool. Production workloads require a certification plan.

Disclaimer:

All content published on this website, including hyperlinks, related applications, forums, blogs, and other media accounts, originates from third-party platforms and their users. CoinMarketInsight makes no representations or warranties of any kind regarding the website or its content. All blockchain-related data and materials are provided for informational and research purposes only and do not constitute financial, legal, or investment advice. Users and third parties are solely responsible for the content they publish. CoinMarketInsight shall not be liable for any losses arising from the use of this website. You should exercise caution and conduct your own independent research, review, analysis, and verification before making any decisions.

Read Full Article
More News
TOP

TOP