CoinMarketCapCoinMarketCap
PricingAPI StatusGet an API Key

© 2026 CoinMarketCap. All rights reserved.

xgithub
  • Overview
  • API Reference
  • AI Agent Hub
  • Changelog
  • FAQ
AI Integrations
    CoinMarketCap AI Agent Hubx402MCPCMC CLI
IDE Setup
    CursorClaude CodeWindsurf
Skills
    CoinMarketCap AI Agent Skills
    MCP Skills
    x402 Skills
    API Integration Skills
      Cryptocurrency APIDEX APIExchange APIMarket API
    CLI Skills
API Integration Skills

DEX API

GitHub repo: coinmarketcap-official/skills-for-ai-agents-by-CoinMarketCap

CoinMarketCap DEX API

On-chain token data APIs for decentralized exchanges like Uniswap, PancakeSwap, and Raydium.

Authentication

TerminalCode
curl -X GET "https://pro-api.coinmarketcap.com/v1/dex/platform/list" \ -H "X-CMC_PRO_API_KEY: your-api-key"

Get your API key at https://pro.coinmarketcap.com/login

Base URL: https://pro-api.coinmarketcap.com

POST vs GET Endpoints

Many DEX endpoints use POST for complex queries with body parameters:

  • GET endpoints pass parameters as query strings
  • POST endpoints pass parameters in JSON body with Content-Type: application/json

API Overview

EndpointMethodDescription
/v1/dex/tokenGETToken details by platform/address
/v1/dex/token/priceGETLatest DEX price for a token
/v1/dex/token/price/batchPOSTBatch token prices
/v1/dex/token/poolsGETLiquidity pools for a token
/v1/dex/token-liquidity/queryGETToken liquidity over time
/v1/dex/tokens/batch-queryPOSTBatch token metadata
/v1/dex/tokens/transactionsGETRecent DEX transactions
/v1/dex/tokens/trending/listPOSTTrending DEX tokens
/v4/dex/pairs/quotes/latestGETLatest DEX pair quotes
/v4/dex/spot-pairs/latestGETDEX spot pairs listing
/v1/dex/platform/listGETList supported DEX platforms
/v1/dex/platform/detailGETPlatform details
/v1/dex/searchGETSearch DEX tokens/pairs
/v1/dex/gainer-loser/listPOSTTop DEX gainers/losers
/v1/dex/liquidity-change/listGETTokens with liquidity changes
/v1/dex/meme/listPOSTMeme tokens on DEX
/v1/dex/new/listPOSTNewly discovered DEX tokens
/v1/dex/security/detailGETToken security/risk signals

Common Workflows

Get DEX Token Information

  1. Search for token: /v1/dex/search?keyword=PEPE
  2. Get token details: /v1/dex/token?network_slug=ethereum&contract_address=0x...
  3. Check security risks: /v1/dex/security/detail?network_slug=ethereum&contract_address=0x...

Analyze Token Liquidity

  1. Get token pools: /v1/dex/token/pools?network_slug=ethereum&contract_address=0x...
  2. Get liquidity history: /v1/dex/token-liquidity/query?network_slug=ethereum&contract_address=0x...

Find Trending Tokens

  1. Get trending tokens: POST /v1/dex/tokens/trending/list with filters
  2. Get gainers/losers: POST /v1/dex/gainer-loser/list
  3. Find new tokens: POST /v1/dex/new/list

Key Parameters

Most DEX endpoints require:

  • network_slug or platform_crypto_id: Identifies the blockchain (ethereum, solana, bsc)
  • contract_address: The token's on-chain contract address

Use /v1/dex/platform/list to get valid network slugs and platform IDs.

Common Use Cases

  1. Get DEX token price by contract address
  2. Find a token's contract address by name
  3. Get prices for multiple tokens at once
  4. Check token security before trading
  5. Find liquidity pools for a token
  6. Find trending DEX tokens
  7. Find today's biggest DEX gainers
  8. Find newly launched tokens
  9. Detect potential rug pulls (liquidity removal)
  10. Get recent trades for a token
  11. Get supported networks and DEXs
  12. Get meme coins
Cryptocurrency APIExchange API
On this page
  • Authentication
  • POST vs GET Endpoints
  • API Overview
  • Common Workflows
    • Get DEX Token Information
    • Analyze Token Liquidity
    • Find Trending Tokens
  • Key Parameters
  • Common Use Cases