CoinMarketCap API

30 requests/minute (333 credits/day, ~10,000 credits/month on free tier)
66 C
Measured Score 0 50 100 Speed 25/30 Consistency 13/20 Security 20/20 Browser access 0/15 Transparency 8/15 TESTED 2026-08-10

Overview

CoinMarketCap provides the most widely referenced cryptocurrency market data, covering 9,000+ coins with prices, rankings, market caps, and OHLCV history. The free Basic plan allows 10,000 credits per month and covers essential price-lookup endpoints — enough to build portfolio trackers and price widgets. Data is normalized and battle-tested, powering finance apps used by millions.

Beginner Tip

Register for a free API key at pro.coinmarketcap.com and pass it as the X-CMC_PRO_API_KEY header — the /v1/cryptocurrency/listings/latest endpoint returns the top 100 coins ranked by market cap with a single call.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://pro-api.coinmarketcap.com/trial-pro-api/v1/cryptocurrency/listings/latest
Result
HTTP 200 · application/json · 132,540 bytes · compressed
Response time
43 ms (median of 3) · fastest 36 ms
Transport
TLSv1.3 · TLS_AES_128_GCM_SHA256 · certificate issued by Amazon
Browser CORS
No Access-Control-Allow-Origin header — call it from a server, not the browser
Served by
Tengine
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
id integer 1
name string Bitcoin
symbol string BTC
slug string bitcoin
infinite_supply boolean false
circulating_supply integer 20068450
total_supply integer 20068450
max_supply integer 21000000
date_added string (date) 2010-07-13T00:00:00.000Z
num_market_pairs integer 12693
cmc_rank integer 1
last_updated string (date) 2026-08-10T19:48:00.000Z
tvl_ratio null null
platform null null

Captured Response

Captured from a real request to https://pro-api.coinmarketcap.com/trial-pro-api/v1/cryptocurrency/listings/latest on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "data": [
    {
      "id": 1,
      "name": "Bitcoin",
      "symbol": "BTC",
      "slug": "bitcoin",
      "infinite_supply": false,
      "circulating_supply": 20068450,
      "total_supply": 20068450,
      "max_supply": 21000000,
      "date_added": "2010-07-13T00:00:00.000Z",
      "num_market_pairs": 12693,
      "cmc_rank": 1,
      "last_updated": "2026-08-10T19:48:00.000Z",
      "tvl_ratio": null,
      "platform": null,
      "…": "(5 more fields)"
    }
  ],
  "status": {
    "timestamp": "2026-08-10T19:49:36.208Z",
    "error_code": 0,
    "error_message": null,
    "elapsed": 88,
    "credit_count": 1,
    "total_count": 8046,
    "notice": null
  }
}

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
// Get latest cryptocurrency listings
const url = "https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest";

const response = await fetch(url, {
  headers: {
    "X-CMC_PRO_API_KEY": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();

console.log(`Total cryptocurrencies: ${data.status.total_count}`);
data.data.slice(0, 5).forEach(coin => {
  console.log(`${coin.name} (${coin.symbol}): $${coin.quote.USD.price.toFixed(2)} | Market Cap: $${(coin.quote.USD.market_cap / 1e9).toFixed(2)}B`);
});

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

401 API Key Missing Sending the API key as a query parameter instead of a header
CoinMarketCap requires the key in the X-CMC_PRO_API_KEY HTTP header; query-param delivery is not supported.
402 Payment Required on an endpoint Endpoint requires a paid plan tier (Standard or above)
Check the endpoint plan requirement in the docs; the free Basic plan only covers a subset of endpoints.
429 Credit exhausted Monthly credit allowance consumed; each call costs 1-100 credits depending on the endpoint
Cache responses aggressively (prices valid for 60 seconds), and use /quotes/latest which costs only 1 credit per symbol.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 25/30
Consistency 13/20
Security 20/20
Browser access 0/15
Transparency 8/15
Endpoint Response Time 43ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Cryptocurrency
Difficulty Beginner
Endpoint last called: 2026-08-10

Alternatives to CoinMarketCap

Technical alternatives for different use cases.

More generous free tier with DeFi and NFT data

Better For

Free crypto data access with DeFi coverage

Trade-off

Industry recognition and CMC-specific rankings

Free crypto market data with exchange listings

Better For

Free API without rate limit restrictions

Trade-off

Historical data depth and global metrics

Social data and mining profitability alongside prices

Better For

Crypto social sentiment and mining data

Trade-off

Market cap rankings and listing coverage

Similar APIs

View All →