Provides API reference for CoinMarketCap cryptocurrency endpoints including quotes, listings, OHLCV, trending, and categories. Includes SDK usage examples for JavaScript, Python, and Go.
Ships in coinmarketcap-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill covers the CoinMarketCap Cryptocurrency API endpoints for retrieving price data, market listings, historical quotes, trending coins, and token metadata.
All requests require an API key in the header.
curl -X GET "https://pro-api.coinmarketcap.com/v3/cryptocurrency/listings/latest" \
-H "X-CMC_PRO_API_KEY: your-api-key"
Get your API key at: https://pro.coinmarketcap.com/login
https://pro-api.coinmarketcap.com
When the user wants a script, an app or an integration rather than a one-off lookup, write it with the official SDKs instead of raw HTTP or a third-party wrapper. They cover every endpoint below, send the API key, retry rate-limited requests and return typed responses.
npm install @coinmarketcap/sdkpip install coinmarketcap-sdk, imported as coinmarketcapgo get github.com/OpenCMC/coinmarketcap-api-go/v6, imported as coinmarketcapimport { CoinMarketCap } from "@coinmarketcap/sdk";
const cmc = new CoinMarketCap({ apiKey: process.env.CMC_PRO_API_KEY });
const { data, error } = await cmc.api.cryptocurrency.quotesLatest({
query: { id: "1,1027" },
});
import os
from coinmarketcap import CoinMarketCap
cmc = CoinMarketCap(api_key=os.environ["CMC_PRO_API_KEY"])
quotes = cmc.cryptocurrency.quotes_latest(id="1,1027")
import (
"context"
"log"
"os"
"github.com/OpenCMC/coinmarketcap-api-go/v6"
)
cmc, err := coinmarketcap.New(coinmarketcap.WithAPIKey(os.Getenv("CMC_PRO_API_KEY")))
if err != nil {
log.Fatal(err)
}
quotes, err := cmc.Cryptocurrency.QuotesLatest(context.Background(), &coinmarketcap.CryptocurrencyQuotesLatestParams{
ID: coinmarketcap.String("1,1027"),
})
if err != nil {
log.Fatal(err)
}
Endpoints marked keyless in sdk.md also work without an API key: create the client with environment: "public" (TypeScript), environment="public" (Python) or coinmarketcap.WithEnvironment(coinmarketcap.EnvironmentPublic) (Go). sdk.md lists the SDK method for every endpoint in this skill.
See use-cases.md for goal-based guidance on which endpoint to use:
| Endpoint | Description | Reference |
|---|---|---|
| GET /v1/cryptocurrency/categories | List all categories with market metrics | categories.md |
| GET /v1/cryptocurrency/category | Single category details | categories.md |
| GET /v1/cryptocurrency/listings/historical | Historical listings snapshot | listings.md |
| GET /v3/cryptocurrency/listings/latest | Current listings with market data | listings.md |
| GET /v1/cryptocurrency/listings/new | Newly added cryptocurrencies | listings.md |
| GET /v1/cryptocurrency/map | Map names/symbols to CMC IDs | map.md |
| GET /v1/cryptocurrency/trending/gainers-losers | Top gainers and losers | trending.md |
| GET /v1/cryptocurrency/trending/latest | Currently trending coins | trending.md |
| GET /v1/cryptocurrency/trending/most-visited | Most visited on CMC | trending.md |
| GET /v2/cryptocurrency/info | Static metadata (logo, description, URLs) | info.md |
| GET /v2/cryptocurrency/market-pairs/latest | Trading pairs for a coin | market-pairs.md |
| GET /v5/cryptocurrency/ohlcv/historical | Historical OHLCV candles | ohlcv.md |
| GET /v2/cryptocurrency/ohlcv/latest | Latest OHLCV data | ohlcv.md |
| GET /v2/cryptocurrency/price-performance-stats/latest | Price performance stats | price-performance.md |
| GET /v3/cryptocurrency/quotes/latest | Latest price quotes | quotes.md |
| GET /v3/cryptocurrency/quotes/historical | Historical price quotes | quotes.md |
/v1/cryptocurrency/map/v3/cryptocurrency/quotes/latest# Step 1: Get CMC ID for ETH
curl -X GET "https://pro-api.coinmarketcap.com/v1/cryptocurrency/map?symbol=ETH" \
-H "X-CMC_PRO_API_KEY: your-api-key"
# Step 2: Get price quote (using id=1027 for ETH)
curl -X GET "https://pro-api.coinmarketcap.com/v3/cryptocurrency/quotes/latest?id=1027" \
-H "X-CMC_PRO_API_KEY: your-api-key"
The v3 response returns data as an array sorted by ID, and quote as an array with one object per convert currency, each carrying that currency's id and symbol. Read the price from the quote entry whose symbol is USD (the default). See quotes.md.
curl -X GET "https://pro-api.coinmarketcap.com/v3/cryptocurrency/listings/latest?limit=100&sort=market_cap" \
-H "X-CMC_PRO_API_KEY: your-api-key"
curl -X GET "https://pro-api.coinmarketcap.com/v3/cryptocurrency/quotes/historical?id=1&time_start=2024-01-01&time_end=2024-01-31&interval=daily" \
-H "X-CMC_PRO_API_KEY: your-api-key"
curl -X GET "https://pro-api.coinmarketcap.com/v2/cryptocurrency/info?id=1,1027" \
-H "X-CMC_PRO_API_KEY: your-api-key"
| Code | Meaning |
|---|---|
| 200 | Success |
| 400 | Bad request (invalid parameters) |
| 401 | Unauthorized (invalid API key) |
| 403 | Forbidden (endpoint not available on your plan) |
| 429 | Rate limit exceeded |
| 500 | Server error |
Rate limits depend on your subscription plan. The response headers include:
X-CMC_PRO_API_KEY_CREDITS_USED - Credits used this callX-CMC_PRO_API_KEY_CREDITS_LEFT - Credits remainingInvalid ID: Ensure you use valid CMC IDs from the /map endpoint. Symbol lookups may return multiple matches.
Missing Required Parameter: Some endpoints require at least one identifier (id, slug, or symbol).
Plan Restrictions: Historical endpoints and some features require paid plans. Check your plan limits.
{
"status": {
"timestamp": "2024-01-15T12:00:00.000Z",
"error_code": 400,
"error_message": "Invalid value for 'id'",
"credit_count": 0
}
}
All responses follow this structure:
{
"status": {
"timestamp": "2024-01-15T12:00:00.000Z",
"error_code": 0,
"error_message": null,
"credit_count": 1
},
"data": { ... }
}
/v3/cryptocurrency/listings/latest and /v3/cryptocurrency/quotes/latest return error_code as a string ("0" on success) and error_message as an empty string, so compare error_code as a string or convert it first.
See the references/ directory for complete parameter and response documentation for each endpoint.
See sdk.md for the official SDK method of each endpoint.
references/categories.md (opens in a new tab)references/info.md (opens in a new tab)references/listings.md (opens in a new tab)references/map.md (opens in a new tab)references/market-pairs.md (opens in a new tab)references/ohlcv.md (opens in a new tab)references/price-performance.md (opens in a new tab)references/quotes.md (opens in a new tab)references/sdk.md (opens in a new tab)references/trending.md (opens in a new tab)references/use-cases.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/opencmc-coinmarketcap-skills:cmc-api-cryptofrom coinmarketcap-skills
Generated from the plugin's indexed repository (opencmc/skills-for-ai-agents-by-coinmarketcap) — no native marketplace selected
npx claudepluginhub p/opencmc-coinmarketcap-skills8 skills in this plugin
/cmc-api-dexAPI reference for CoinMarketCap DEX endpoints including token lookup, pools, transactions, trending, and security analysis.
Use this skill whenever the user mentions DEX API, asks about on-chain token data, wants to look up tokens by contract address, needs security/rug risk checks, or is building DEX integrations. This is the definitive reference for CMC DEX API questions.
Trigger: "DEX API", "token by contract address", "CMC security API", "liquidity pool API", "/cmc-api-dex"
/cmc-api-exchangeAPI reference for CoinMarketCap exchange endpoints including exchange info, volume, market pairs, and assets.
Use this skill whenever the user mentions exchange API, asks about exchange volumes, wants trading pair data, needs proof-of-reserves info, or is building exchange integrations. This is the authoritative reference for CMC exchange API questions.
Trigger: "exchange API", "CMC exchange data", "trading pairs API", "exchange volume API", "/cmc-api-exchange"
/cmc-api-marketAPI reference for CoinMarketCap market-wide endpoints including global metrics, fear/greed, indices, trending topics, and charts.
Use this skill whenever the user mentions market API, asks about fear/greed index, wants global metrics or BTC dominance data, needs k-line charts, or is working with market sentiment. This is the complete reference for CMC market-wide API questions.
Trigger: "market API", "fear greed API", "global metrics API", "CMC charts API", "/cmc-api-market"
/cmc-mcpFetches cryptocurrency market data, prices, technical analysis, news, and trends using the CoinMarketCap MCP.
Use for ANY question involving cryptocurrencies, tokens, or blockchain markets, even if the user doesn't explicitly ask for data. This includes price checks, portfolio questions, market analysis, coin comparisons, holder metrics, technical indicators, and news.
Trigger: "bitcoin", "ETH", "crypto", "token price", "market cap", "how is [coin] doing", "/cmc-mcp"
/cmc-x402Access CoinMarketCap data via x402 pay-per-request protocol with USDC payments on Base.
Use when users mention x402, want CMC data without API keys, ask about pay-per-request APIs, or need to integrate CMC with on-chain payments. Also use for any Coinbase x402 protocol questions.
Trigger: "x402", "pay per request", "no API key", "USDC payment", "CMC without subscription", "/cmc-x402"
/crypto-researchPerforms comprehensive due diligence on a cryptocurrency using CoinMarketCap MCP data.
Use when users ask about a specific coin beyond just its price. This includes questions like "what is [coin]", "is [coin] legit", "analyze [coin]", tokenomics questions, holder distribution, or any request for deep information about a single cryptocurrency.
Trigger: "research [coin]", "tell me about [coin]", "should I invest in [coin]", "DYOR [coin]", "is [coin] safe", "/crypto-research"
Other plugins' skills for the same job