Instant pay-per-request access to CoinMarketCap crypto data via x402. No API keys or subscriptions.
$ curl -i "https://pro-api.coinmarketcap.com/x402/v3/cryptocurrency/quotes/latest?id=1" HTTP/2 402 PAYMENT REQUIRED payment-required: eyJ4NDAyVmVyc2lvbiI6MiwiZXJyb3I... # base64 decode -> payment JSON # pay, then send PAYMENT-SIGNATURE { "error": "Payment required", "resource": "/x402/v3/cryptocurrency/quotes/latest", "accepts": [ { scheme: "exact", amount: "0.01" } ] }
This feature is currently in beta and may be subject to change.
Trusted by Leading Companies
Coinbase
Kraken
Blockchain.com
Crypto.comThree simple steps to access crypto data with x402, including full 402 response details
Call once to get HTTP 402 and a base64 payment-required header. Decode it for payment terms.
curl -i "https://pro-api.coinmarketcap.com/x402/v3/cryptocurrency/quotes/latest?id=1"
< HTTP/2 402
< payment-required: eyJ4NDAyVmVyc2lvbiI6MiwiZXJyb3IiOiJQYXltZW50IHJlcXVpcmVkIiwicmVzb3VyY2UiOnsidXJsIjoiL3g0MDIvdjMvY3J5cHRvY3VycmVuY3kvcXVvdGVzL2xhdGVzdCIsImRlc2NyaXB0aW9uIjoiY21jIGNyeXB0byBxdW90ZSBsYXRlc3QgZGF0YSBhcGkifSwiYWNjZXB0cyI6W3sic2NoZW1lIjoiZXhhY3QiLCJuZXR3b3JrIjoiZWlwMTU1Ojg0NTMiLCJhc3NldCI6IjB4ODMzNTg5ZkNENmVEYjZFMDhmNGM3QzMyRDRmNzFiNTRiZEEwMjkxMyIsImFtb3VudCI6IjEwMDAwIiwicGF5VG8iOiIweDI3MTE4OWM4NjBEQjI1YkM0MzE3M0IwMzM1Nzg0YUQ2OGE2ODA5MDgiLCJtYXhUaW1lb3V0U2Vjb25kcyI6MzAsImV4dHJhIjp7Im5hbWUiOiJVU0QgQ29pbiIsInZlcnNpb24iOiIyIiwieDQwMlBheW1lbnRDb25maWdJZCI6IjY5OWRiYWI3OWYzMmZmZGU2NTAxMDRhYSJ9fV19
< {
"x402Version": 2,
"error": "Payment required",
"resource": {
"url": "/x402/v3/cryptocurrency/quotes/latest",
"description": "cmc crypto quote latest data api"
},
"accepts": [...]
}Sign the payment according to the returned challenge, then resend the same request with PAYMENT-SIGNATURE header. This proves authorization for the required USDC amount.
curl -i "https://pro-api.coinmarketcap.com/x402/v3/cryptocurrency/quotes/latest?id=1" \ -H "PAYMENT-SIGNATURE: eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9..." // Required payment terms are returned in Step 01 // network: eip155:8453 (Base) // asset: USDC // amount: 0.01 (smallest unit)
After signature verification succeeds, the API immediately returns HTTP 200 with the requested market data payload.
< HTTP/2 200
< {
"status": {
"error_code": 0,
"error_message": null
},
"data": {
"1": {...}
}
}Start integrating with these pay-per-request API endpoints
/x402/v3/cryptocurrency/quotes/latestGet latest cryptocurrency quote data through x402.
/x402/v3/cryptocurrency/listing/latestGet latest cryptocurrency listing data through x402.
/x402/v4/dex/pairs/quotes/latestGet latest DEX pair quote data through x402.
/x402/v1/dex/searchSearch DEX data through x402.
/x402/mcpAccess MCP endpoint through x402.
Everything you need to know about x402 on CoinMarketCap
Set up your x402 client, fund your wallet with USDC, and start accessing CoinMarketCap data in minutes.
This feature is currently in beta and may be subject to change.