coinmarketcap-official/skills-for-ai-agents-by-coinmarketcap/cmc-api-crypto
Claude Code and agent skill by coinmarketcap-official/skills-for-ai-agents-by-coinmarketcap
- community
Checking that the SKILL.md file is still in the repository.
API reference for CoinMarketCap cryptocurrency endpoints including quotes, listings, OHLCV, trending, and categories. Use this skill whenever the user mentions CMC API, asks how to get crypto data programmatically, wants to build price integrations, or needs REST endpoint documentation. This is the go-to reference for any CMC cryptocurrency API question. Trigger: "CMC API", "coinmarketcap api", "crypto price API", "get bitcoin price via API", "/cmc-api-crypto"
Install
npx vskill@latest install coinmarketcap-official/skills-for-ai-agents-by-coinmarketcap/cmc-api-cryptoSKILL.md
CoinMarketCap Cryptocurrency API
This skill covers the CoinMarketCap Cryptocurrency API endpoints for retrieving price data, market listings, historical quotes, trending coins, and token metadata.
Authentication
All requests require an API key in the header.
Get your API key at: https://pro.coinmarketcap.com/login
Base URL
Common Use Cases
See use-cases.md for goal-based guidance on which endpoint to use:
- Get current price of a token
- Find a token's CMC ID from symbol or name
- Get a token by contract address
- Get top 100 coins by market cap
- Find coins in a price range
- Get historical price at a specific date
- Build a price chart (OHLCV data)
- Find where a coin trades
- Get all-time high and distance from ATH
- Find today's biggest gainers
- Discover newly listed coins
- Get all tokens in a category (e.g., DeFi)
API Overview
| 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 /v2/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 |
Common Workflows
Get Token Price by Symbol
- First, map the symbol to a CMC ID using
/v1/cryptocurrency/map - Then fetch the price using
/v3/cryptocurrency/quotes/latest
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.
Get Top 100 Coins by Market Cap
Get Historical Price Data
Get Token Metadata
Error Handling
HTTP Status Codes
| 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
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 remaining
Common Errors
Invalid 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.
Error Response Format
Response Format
All responses follow this structure:
/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.
Reference Files
See the references/ directory for complete parameter and response documentation for each endpoint.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationPassed, 78 of 100Effective. 1 run. Evaluated 8 months ago.
Source
- SKILL.md in the repositoryCheckingskills/cmc-api-crypto/SKILL.md
Popularity
- Repository stars
- 39
- Repository forks
- 8
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 7 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/coinmarketcap-official/skills-for-ai-agents-by-coinmarketcap/cmc-api-crypto)