Skip to main content
Glama
cmc.ts632 B
interface GetCryptoDataLiteResponse { data: { name: string; symbol: string; slug: string; status: string; volume: number; statistics: { price: number; marketCap: number; circulatingSupply: number; totalSupply: number; }; }; } export const getCryptoDataLite = async (slug: string) => { const response = await fetch( `https://api.coinmarketcap.com/data-api/v3/cryptocurrency/detail/lite?slug=${slug}` ); if (!response.ok) { throw new Error("Failed to fetch crypto data"); } const data = await response.json(); return data as GetCryptoDataLiteResponse; };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EmanuelJr/web3-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server