curl --request POST \
--url https://api.example.com/api/token-info \
--header 'Content-Type: application/json' \
--data '
{
"addresses": [
"<string>"
]
}
'{
"data": {
"id": 123,
"name": "<string>",
"symbol": "<string>",
"slug": "<string>",
"logo": "<string>",
"description": "<string>",
"date_added": "<string>",
"date_launched": {},
"tags": [
"<string>"
],
"platform": {
"name": "<string>",
"token_address": "<string>"
},
"category": "<string>",
"urls": {
"website": [
"<string>"
],
"technical_doc": [
"<string>"
],
"twitter": [
"<string>"
],
"explorer": [
"<string>"
],
"source_code": [
"<string>"
]
}
},
"status": {
"timestamp": "<string>",
"error_code": 123,
"error_message": {},
"elapsed": 123,
"credit_count": 123,
"notice": {}
},
"error": "<string>"
}Fetch detailed token information from CoinMarketCap
curl --request POST \
--url https://api.example.com/api/token-info \
--header 'Content-Type: application/json' \
--data '
{
"addresses": [
"<string>"
]
}
'{
"data": {
"id": 123,
"name": "<string>",
"symbol": "<string>",
"slug": "<string>",
"logo": "<string>",
"description": "<string>",
"date_added": "<string>",
"date_launched": {},
"tags": [
"<string>"
],
"platform": {
"name": "<string>",
"token_address": "<string>"
},
"category": "<string>",
"urls": {
"website": [
"<string>"
],
"technical_doc": [
"<string>"
],
"twitter": [
"<string>"
],
"explorer": [
"<string>"
],
"source_code": [
"<string>"
]
}
},
"status": {
"timestamp": "<string>",
"error_code": 123,
"error_message": {},
"elapsed": 123,
"credit_count": 123,
"notice": {}
},
"error": "<string>"
}0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48).Show Token Info Properties
Show Status Properties
addresses parameter is missing or not an arraycurl -X POST https://bridge-wrapped.vercel.app/api/token-info \
-H "Content-Type: application/json" \
-d '{
"addresses": [
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"0xdac17f958d2ee523a2206206994597c13d831ec7"
]
}'
{
"data": {
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": {
"id": 3408,
"name": "USD Coin",
"symbol": "USDC",
"slug": "usd-coin",
"logo": "https://s2.coinmarketcap.com/static/img/coins/64x64/3408.png",
"description": "USD Coin (USDC) is a stablecoin that is pegged to the U.S. dollar on a 1:1 basis...",
"date_added": "2018-10-08T00:00:00.000Z",
"date_launched": "2018-09-26T00:00:00.000Z",
"tags": ["stablecoin", "asset-backed-stablecoin", "defi"],
"platform": {
"name": "Ethereum",
"token_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
},
"category": "stablecoin",
"urls": {
"website": ["https://www.circle.com/usdc"],
"technical_doc": ["https://www.centre.io/pdfs/attestation/Grant-Thornton_circle_usdc_reserves_07312021.pdf"],
"twitter": ["https://twitter.com/circle"],
"explorer": [
"https://etherscan.io/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
],
"source_code": ["https://github.com/centrehq"]
}
},
"0xdac17f958d2ee523a2206206994597c13d831ec7": {
"id": 825,
"name": "Tether",
"symbol": "USDT",
"slug": "tether",
"logo": "https://s2.coinmarketcap.com/static/img/coins/64x64/825.png",
"description": "Tether (USDT) is a stablecoin cryptocurrency that is pegged 1:1 to the US dollar...",
"date_added": "2015-02-25T00:00:00.000Z",
"date_launched": null,
"tags": ["stablecoin", "asset-backed-stablecoin", "payments"],
"platform": {
"name": "Ethereum",
"token_address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
},
"category": "stablecoin",
"urls": {
"website": ["https://tether.to/"],
"technical_doc": ["https://tether.to/wp-content/uploads/2016/06/TetherWhitePaper.pdf"],
"twitter": ["https://twitter.com/Tether_to"],
"explorer": [
"https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7"
],
"source_code": []
}
}
},
"status": {
"timestamp": "2026-03-03T10:30:45.123Z",
"error_code": 0,
"error_message": null,
"elapsed": 234,
"credit_count": 1,
"notice": null
}
}
{
"error": "Invalid request: addresses must be an array"
}
{
"error": "API key not configured"
}
{
"error": "CoinMarketCap API request failed"
}
CoinMarketCapService client wrapper. The API key is stored as an environment variable (COINMARKETCAP_API_KEY) and should never be exposed to clients.
CoinMarketCapService implements a 1-hour cache for token information to reduce API calls and improve performance. Consider implementing additional caching layers if needed.
src/app/api/token-info/route.tssrc/services/tokens/coinmarketcap.ts