CoinMarketCapCoinMarketCap
PricingAPI StatusGet an API Key

© 2026 CoinMarketCap. All rights reserved.

xgithub
  • Overview
  • API Reference
  • AI Agent Hub
  • Changelog
  • FAQ

Get Latest Crypto Prices with the CoinMarketCap API

Use this workflow when you already know the assets you care about and want their latest market data. If you want a ranked market list instead, use Get top coins by market cap.

Best starting endpoint

Start with GET /v3/cryptocurrency/quotes/latest.

Use it when you already know the asset id, slug, or symbol. For production workflows, id is the safest choice.

Minimal example

This example fetches the latest USD quotes for Bitcoin and Ethereum by CoinMarketCap ID.

TerminalCode
curl -G 'https://pro-api.coinmarketcap.com/v3/cryptocurrency/quotes/latest' \ --data-urlencode 'id=1,1027' \ --data-urlencode 'convert=USD' \ -H 'Accept: application/json' \ -H 'X-CMC_PRO_API_KEY: YOUR_API_KEY'

What you get back

  • data: an array of asset records
  • quote.USD.price: the latest price
  • quote.USD.market_cap: the latest market cap
  • quote.USD.volume_24h: 24h volume
  • quote.USD.percent_change_*: recent performance windows

Use this when

  • You are building a watchlist or portfolio view
  • You need the latest price for a known set of assets
  • You want to compare a few assets side by side

Common mistakes

  • Using listings/latest when you already know the exact assets you need
  • Using symbol in production when you should use stable CoinMarketCap id
  • Calling the API directly from the browser instead of your backend

Good next steps

  • Use /v1/cryptocurrency/map if you need to look up stable IDs first
  • Use /v2/cryptocurrency/info if you also need metadata such as logos and links
  • Use Get top coins by market cap if you need a ranked market list instead of known assets
  • Use API response format, IDs, and timestamps if you want to understand IDs and response structure
On this page
  • Best starting endpoint
  • Minimal example
  • What you get back
  • Use this when
  • Common mistakes
  • Good next steps