API reference for CoinMarketCap market-wide endpoints: global metrics, fear/greed index, BTC dominance, k-line charts, trending topics, and indices. Includes SDK usage in TypeScript, 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 market-wide cryptocurrency data including global metrics, sentiment indicators, market indices, community activity, news content, charting data, and utility endpoints.
All requests require the X-CMC_PRO_API_KEY header.
curl -X GET "https://pro-api.coinmarketcap.com/v1/global-metrics/quotes/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.globalMetrics.fearandgreedLatest({});
import os
from coinmarketcap import CoinMarketCap
cmc = CoinMarketCap(api_key=os.environ["CMC_PRO_API_KEY"])
fear_greed = cmc.global_metrics.fearandgreed_latest()
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)
}
fearGreed, err := cmc.GlobalMetrics.FearandgreedLatest(context.Background())
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/global-metrics/quotes/historical | Historical global market metrics | global-metrics.md |
| GET /v1/global-metrics/quotes/latest | Latest total market cap, BTC dominance | global-metrics.md |
| Endpoint | Description | Reference |
|---|---|---|
| GET /v3/fear-and-greed/historical | Historical fear/greed values | fear-greed.md |
| GET /v3/fear-and-greed/latest | Current market sentiment score | fear-greed.md |
| Endpoint | Description | Reference |
|---|---|---|
| GET /v3/index/cmc100-historical | CMC100 index history | indices.md |
| GET /v3/index/cmc100-latest | CMC100 current value | indices.md |
| GET /v3/index/cmc20-historical | CMC20 index history | indices.md |
| GET /v3/index/cmc20-latest | CMC20 current value | indices.md |
| Endpoint | Description | Reference |
|---|---|---|
| GET /v1/community/trending/token | Trending tokens by community activity | community.md |
| GET /v1/community/trending/topic | Trending discussion topics | community.md |
| Endpoint | Description | Reference |
|---|---|---|
| GET /v1/content/latest | Latest news and Alexandria articles | content.md |
| GET /v1/content/posts/comments | Comments on a specific post | content.md |
| GET /v1/content/posts/latest | Latest community posts | content.md |
| GET /v1/content/posts/top | Top ranked community posts | content.md |
| Endpoint | Description | Reference |
|---|---|---|
| GET /v1/k-line/candles | OHLCV candlestick data | kline.md |
| GET /v1/k-line/points | Time series price/market cap points | kline.md |
| Endpoint | Description | Reference |
|---|---|---|
| GET /v1/fiat/map | Map fiat currencies to CMC IDs | tools.md |
| GET /v1/key/info | API key usage and plan details | tools.md |
| GET /v2/tools/price-conversion | Convert between currencies | tools.md |
/v3/fear-and-greed/latest/v1/global-metrics/quotes/latest/v3/index/cmc100-latest/v3/index/cmc100-historical/v1/community/trending/token/v1/community/trending/topic/v1/content/posts/top/v1/k-line/candles/v1/fiat/map/v2/tools/price-conversion| Status Code | Meaning | Action |
|---|---|---|
| 400 | Bad Request | Check parameter values and format |
| 401 | Unauthorized | Verify API key is valid |
| 403 | Forbidden | Endpoint not available on your plan |
| 429 | Rate Limited | Wait and retry with backoff |
| 500 | Server Error | Retry after delay |
{
"status": {
"error_code": 400,
"error_message": "Invalid value for 'id'"
}
}
Check these response headers to monitor usage:
X-CMC_PRO_API_KEY_CREDITS_USED - Credits consumedX-CMC_PRO_API_KEY_CREDITS_REMAINING - Credits leftX-CMC_PRO_API_KEY_RATE_LIMIT - Requests per minute limitAll endpoints return JSON with this structure:
{
"status": {
"timestamp": "2024-01-15T10:30:00.000Z",
"error_code": 0,
"error_message": null,
"credit_count": 1
},
"data": { }
}
/v1/key/info endpoint to check your plan limits before heavy usagereferences/community.md (opens in a new tab)references/content.md (opens in a new tab)references/fear-greed.md (opens in a new tab)references/global-metrics.md (opens in a new tab)references/indices.md (opens in a new tab)references/kline.md (opens in a new tab)references/sdk.md (opens in a new tab)references/tools.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
/opencmc-coinmarketcap-skills:cmc-api-marketfrom 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-cryptoAPI 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", "coinmarketcap sdk", "crypto price API", "get bitcoin price via API", "/cmc-api-crypto"
/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"
Other plugins' skills for the same job