Start Here

Keyless Public API

For the complete CoinMarketCap API documentation index, see llms.txt. For a single-file dump of all documentation, see llms-full.txt.

Start using CoinMarketCap data instantly - no API key, no signup, no headers. Send a request, get JSON back. The Keyless Public API gets authoritative crypto market data into a script, an agent, or a prototype in seconds, with no account, key management, or credit system to deal with.

It serves real-time and historical data - prices, market cap, OHLCV, DEX pairs, token security, and CMC's proprietary indices - over plain HTTP, and it's the same data that powers coinmarketcap.com: aggregated across 941+ exchanges and 50 million+ tracked assets with 16 years of history.

TerminalCode
# Latest BTC and ETH prices by symbol. id and slug also work. curl "https://pro-api.coinmarketcap.com/public-api/v2/simple/price?symbol=BTC,ETH&convert=USD"

No headers, no auth - just send a request.

Quick start (no key)

Python, standard library only - runs as-is, nothing to fill in:

Code
import urllib.request, urllib.parse, json base = "https://pro-api.coinmarketcap.com/public-api" qs = urllib.parse.urlencode({"symbol": "BTC,ETH", "convert": "USD"}) url = f"{base}/v2/simple/price?{qs}" req = urllib.request.Request(url, headers={"Accept": "application/json"}) data = json.load(urllib.request.urlopen(req, timeout=10)) print(data)

Node, no dependencies:

JavascriptCode
const base = "https://pro-api.coinmarketcap.com/public-api"; const res = await fetch(`${base}/v2/simple/price?symbol=BTC,ETH&convert=USD`); console.log(await res.json());

With the official SDKs

The official SDKs work keyless too. Create the client with the public environment and leave out the key. You get typed responses, automatic retries on 429, and the same method calls when you add a key later.

Python, coinmarketcap-sdk (pip install coinmarketcap-sdk):

Code
from coinmarketcap import CoinMarketCap cmc = CoinMarketCap(environment="public") # no API key prices = cmc.cryptocurrency.simple_price(symbol="BTC,ETH", convert="USD") print(prices)

JavaScript / TypeScript, @coinmarketcap/sdk (npm install @coinmarketcap/sdk):

TypeScriptCode
import { CoinMarketCap } from "@coinmarketcap/sdk"; const cmc = new CoinMarketCap({ environment: "public" }); // no API key const { data, error } = await cmc.api.cryptocurrency.simplePrice({ query: { symbol: "BTC,ETH", convert: "USD" }, }); if (error) throw error; console.log(data);

Go, github.com/OpenCMC/coinmarketcap-api-go/v5 (go get github.com/OpenCMC/coinmarketcap-api-go/v5):

GoCode
cmc, err := coinmarketcap.New(coinmarketcap.WithEnvironment(coinmarketcap.EnvironmentPublic)) // no API key if err != nil { log.Fatal(err) } prices, err := cmc.Cryptocurrency.SimplePrice(context.Background(), &coinmarketcap.CryptocurrencySimplePriceParams{ Symbol: coinmarketcap.String("BTC,ETH"), Convert: coinmarketcap.String("USD"), })

Every endpoint page in the API reference has SDK samples. The keyless endpoints are listed below.

Base URL

Code
https://pro-api.coinmarketcap.com/public-api

Prefix any supported endpoint path with /public-api and the request is accepted with no key. One base URL covers both CEX market data and on-chain DEX data - same host, same JSON envelope, no second root to route to.

Use the keyless root, not the keyed root:

  • ❌ https://pro-api.coinmarketcap.com/v2/simple/price (requires an API key)
  • ✅ https://pro-api.coinmarketcap.com/public-api/v2/simple/price (no key)

Do not send an X-CMC_PRO_API_KEY header on keyless calls - it isn't needed. Keyless calls use the same HTTP method as the keyed endpoint: GET for every endpoint except /v1/dex/holders/list and /v1/dex/holders/detail, which use POST. Responses use the exact same JSON envelope, standards and conventions, and error format as the keyed Pro API.

Rate limits

Keyless requests share an IP-based rate pool that keeps the public endpoint fast and stable for everyone.

  • If you ever see a 429 Too Many Requests, back off and retry with exponential backoff - a brief wait clears it.
  • A free API key (below) gives you your own much higher rate limits, plus the full Pro and DEX catalog.

The official SDKs retry 429 responses with backoff for you. Without an SDK, a minimal backoff keeps a polling script running smoothly:

Code
import time, urllib.request, json def get(url, tries=5): for i in range(tries): try: req = urllib.request.Request(url, headers={"Accept": "application/json"}) return json.load(urllib.request.urlopen(req, timeout=10)) except urllib.error.HTTPError as e: if e.code == 429 and i < tries - 1: time.sleep(2 ** i) # 1s, 2s, 4s, 8s... continue raise

Want higher limits or more endpoints? Add a key

Keyless calls run the same way at any scale. When you want higher rate limits or the full Pro and DEX catalog, add a free API key - the response shape is identical, so there's nothing to rewrite. Two edits:

  1. Remove /public-api from the base path.
  2. Add your API key as the X-CMC_PRO_API_KEY header.
Code
# Keyless: base = "https://pro-api.coinmarketcap.com/public-api" headers = {"Accept": "application/json"} # With a key - same response shape, higher limits, full endpoint set: base = "https://pro-api.coinmarketcap.com" headers = {"Accept": "application/json", "X-CMC_PRO_API_KEY": "YOUR_KEY"}

With the official SDKs it is one change, and every method call stays the same:

Code
cmc = CoinMarketCap(environment="public") # keyless cmc = CoinMarketCap(api_key=os.environ["CMC_PRO_API_KEY"]) # with a key

A free API key (no credit card) raises the rate limits and unlocks the full Pro and DEX catalog - same endpoints, same envelope, nothing to rewrite.

Common tasks

Each runs keyless with the base URL above.

Current price of one or more coins (by symbol; id and slug also work)

TerminalCode
curl "https://pro-api.coinmarketcap.com/public-api/v2/simple/price?symbol=BTC,ETH,SOL&convert=USD"

Top 100 cryptocurrencies by market cap

TerminalCode
curl "https://pro-api.coinmarketcap.com/public-api/v3/cryptocurrency/listings/latest?start=1&limit=100&convert=USD"

Total crypto market cap and global metrics

TerminalCode
curl "https://pro-api.coinmarketcap.com/public-api/v1/global-metrics/quotes/latest?convert=USD"

Crypto Fear and Greed Index (CMC proprietary)

TerminalCode
curl "https://pro-api.coinmarketcap.com/public-api/v3/fear-and-greed/latest"

CMC100 index (CMC proprietary)

TerminalCode
curl "https://pro-api.coinmarketcap.com/public-api/v3/index/cmc100-latest"

DEX pair price by pool

TerminalCode
curl "https://pro-api.coinmarketcap.com/public-api/v4/dex/pairs/quotes/latest?network_id=1&contract_address=POOL_ADDRESS"

Token detail / market cap / liquidity by contract address

TerminalCode
curl "https://pro-api.coinmarketcap.com/public-api/v1/dex/token?platform=ethereum&address=TOKEN_ADDRESS"

DEX OHLCV / K-line candles (see the K-line candles reference for the full parameter list)

TerminalCode
curl "https://pro-api.coinmarketcap.com/public-api/v1/k-line/candles?platform=ethereum&address=POOL_ADDRESS&interval=1h"

Why this data

Things you can get keyless here that are hard or impossible to get elsewhere without paying:

  • CMC proprietary indices - Fear and Greed (latest + historical), CMC100 and CMC20 (latest + historical), and the Altcoin Season Index. CoinMarketCap originals, available with no key.
  • First-party canonical reference data - the authoritative CoinMarketCap ID maps for cryptocurrencies and exchanges, plus full metadata, so IDs resolve against the same source coinmarketcap.com uses.
  • CEX and DEX in one API - token detail, price, liquidity, pools, holders, security checks, swap history, and K-line candles, alongside CEX market data, under a single base URL and a single envelope. No second host, no separate onchain product to learn.
  • Same shape, no rewrite - the keyless response has the same structure as the keyed Pro API, so moving to production never breaks your parsing.

Available endpoints

18 Standard API and 17 DEX endpoints, keyless. The full keyed catalog is larger - a free key unlocks it.

Standard API

EndpointDescription
/v2/simple/priceSimple Price
/v3/cryptocurrency/quotes/latestCryptocurrency Quotes Latest
/v3/cryptocurrency/listings/latestCryptocurrency Listings
/v2/cryptocurrency/infoCryptocurrency Metadata
/v1/cryptocurrency/mapCoinMarketCap Cryptocurrency ID Map
/v1/cryptocurrency/categoriesCategories
/v1/cryptocurrency/categoryCategory
/v1/global-metrics/quotes/latestGlobal Metrics Latest
/v2/tools/price-conversionPrice Conversion
/v1/exchange/mapCoinMarketCap Exchange ID Map
/v3/fear-and-greed/latestCMC Crypto Fear and Greed Latest
/v3/fear-and-greed/historicalCMC Crypto Fear and Greed Historical
/v3/index/cmc100-latestCoinMarketCap 100 Index Latest
/v3/index/cmc100-historicalCoinMarketCap 100 Index Historical
/v3/index/cmc20-latestCoinMarketCap 20 Index Latest
/v3/index/cmc20-historicalCoinMarketCap 20 Index Historical
/v1/altcoin-season-index/latestAltcoin Season Index Latest
/v1/altcoin-season-index/historicalAltcoin Season Index Historical

DEX API

EndpointDescription
/v4/dex/spot-pairs/latestPairs Listings Latest
/v4/dex/pairs/quotes/latestDEX Pair Quotes Latest
/v1/dex/tokenGet token detail
/v1/dex/token/priceGet token price
/v1/dex/token-liquidity/queryQuery token liquidity
/v1/dex/token/poolsGet token pools
/v1/dex/searchSearch tokens
/v1/dex/security/detailGet security detail
/v1/dex/tokens/transactionsGet swap list
/v1/dex/liquidity-change/listGet liquidity change list
/v1/dex/platform/listGet platform list
/v1/dex/platform/detailGet platform detail
/v1/k-line/candlesK-line candles
/v1/k-line/pointsK-line points
/v1/dex/holders/listGet holders list (POST)
/v1/dex/holders/countGet holder count
/v1/dex/holders/detailGet holder detail (POST)

OpenAPI spec

Every keyless endpoint is also published as a standalone OpenAPI file, with the /public-api server and no API key: openapi-keyless.json. Load it into an SDK generator, Postman, or an AI agent to get only the endpoints you can call without a key. For the full Pro and DEX catalog, use openapi.json with a free API key.

Ready for more?