Power AI Agents with CoinGecko's On-chain Crypto Data
Power AI Agents with CoinGecko's On-chain Crypto Data
Access on-chain market data and metadata for smarter AI-powered trades, research, and analysis.
Access on-chain market data and metadata for smarter AI-powered trades, research, and analysis.
Hows Bitcoin doing?
BTC vs. ETH
24h top gainers
Hows Bitcoin doing?
BTC vs. ETH
24h top gainers
Why developers_ choose us
Extensive. Fast. Reliable. Enterprise-Grade.
We’re always making our API better with more endpoints, greater data granularity and lower latency. See what’s new →

30M+ Tokens
Complete token coverage with on-chain data
Trusted by Industry Builders
Enterprise-Grade Service
Enjoy tailored integration guidance, 24/7 dedicated support, and a custom API plan designed to scale with your business.
10+ Years
Of Historical Data
Up to Sub-second
Real-time Data Update
99% Uptime SLA
Enterprise-grade infrastructure
10 billion
Monthly API calls
250+
Networks
1,700+
Exchanges
CoinGecko API is SOC 2 Type 2 compliant. Our systems and processes meet rigorous industry standards to safeguard data.
Why developers_ choose us
Extensive. Fast. Reliable. Enterprise-Grade.
We’re always making our API better with more endpoints, greater data granularity and lower latency. See what’s new →

30M+ Tokens
Complete token coverage with on-chain data
Trusted by Industry Builders
Enterprise-Grade Service
Enjoy tailored integration guidance, 24/7 dedicated support, and a custom API plan designed to scale with your business.
10+ Years
Of Historical Data
Up to Sub-second
Real-time Data Update
99% Uptime SLA
Enterprise-grade infrastructure
10 billion
Monthly API calls
250+
Networks
1,700+
Exchanges
CoinGecko API is SOC 2 Type 2 compliant. Our systems and processes meet rigorous industry standards to safeguard data.
Why developers_ choose us
Extensive. Fast. Reliable. Enterprise-Grade.
We’re always making our API better with more endpoints, greater data granularity and lower latency. See what’s new →

30M+ Tokens
Complete token coverage with on-chain data
Trusted by Industry Builders
Enterprise-Grade Service
Enjoy tailored integration guidance, 24/7 dedicated support, and a custom API plan designed to scale with your business.
10+ Years
Of Historical Data
Up to Sub-second
Real-time Data Update
99% Uptime SLA
Enterprise-grade infrastructure
10 billion
Monthly API calls
250+
Networks
1,700+
Exchanges
CoinGecko API is SOC 2 Type 2 compliant. Our systems and processes meet rigorous industry standards to safeguard data.
Designed for developers_
Enhance Your AI with Reliable Crypto Market Data
On-chain Prices & Market Data
Fetch real-time and historical data including prices, market cap, volume, and more.
Live data updated every 20 seconds
// Get live prices and market data{ "bitcoin": { "usd": 67187.3358936566, "usd_market_cap": 1317802988326.25, "usd_24h_vol": 31260929299.5248, "usd_24h_change": 3.63727894677354, "last_updated_at": 1711356300 }}// Get on-chain token prices and market data{ "data": { "id": "1ba898f0-eda2-4291-9491-9a5b323f66ef", "type": "simple_token_price", "attributes": { "token_prices": { "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "3399.24368371279" }, "market_cap_usd": { "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "10005535878.50094" }, "h24_volume_usd": { "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "2544539948.02599" } } }}On-chain Prices & Market Data
Fetch real-time and historical data including prices, market cap, volume, and more.
Live data updated every 20 seconds
// Get live prices and market data{ "bitcoin": { "usd": 67187.3358936566, "usd_market_cap": 1317802988326.25, "usd_24h_vol": 31260929299.5248, "usd_24h_change": 3.63727894677354, "last_updated_at": 1711356300 }}// Get on-chain token prices and market data{ "data": { "id": "1ba898f0-eda2-4291-9491-9a5b323f66ef", "type": "simple_token_price", "attributes": { "token_prices": { "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "3399.24368371279" }, "market_cap_usd": { "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "10005535878.50094" }, "h24_volume_usd": { "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "2544539948.02599" } } }}New & Trending Tokens
Retrieve data on trending coins, top gainers, and popular narratives to spot market opportunities
Track newly launched tokens and liquidity pools
// Get trending pools across all networks{ "data": [ { "id": "eth_0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640", "type": "pool", "attributes": { "base_token_price_usd": "3653.12491645176", "base_token_price_native_currency": "1.0", "quote_token_price_usd": "0.998343707926245", "quote_token_price_native_currency": "0.000273040545093221", "base_token_price_quote_token": "3662.46", "quote_token_price_base_token": "0.00027304", "address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640", "name": "WETH / USDC 0.05%", "pool_created_at": "2021-12-29T12:35:14Z", "fdv_usd": "11007041041", "market_cap_usd": null, "price_change_percentage": { "m5": "0", "h1": "0.51", "h6": "0.86", "h24": "7.71" }, "transactions": { "m5": { "buys": 7, "sells": 2, "buyers": 7, "sellers": 2 }, "m15": { "buys": 19, "sells": 27, "buyers": 19, "sellers": 27 }, "m30": { "buys": 49, "sells": 61, "buyers": 45, "sellers": 57 }, "h1": { "buys": 97, "sells": 144, "buyers": 83, "sellers": 124 }, "h24": { "buys": 2966, "sells": 3847, "buyers": 1625, "sellers": 2399 } }, "volume_usd": { "m5": "868581.7348314", "h1": "16798158.0138526", "h6": "164054610.850188", "h24": "536545444.904535" }, "reserve_in_usd": "163988541.3812" }, "relationships": { "base_token": { "data": { "id": "eth_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "type": "token" } }, "quote_token": { "data": { "id": "eth_0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "type": "token" } }, "dex": { "data": { "id": "uniswap_v3", "type": "dex" } } } } ], "included": [ { "id": "eth_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "type": "token", "attributes": { "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "name": "Wrapped Ether", "symbol": "WETH", "image_url": "https://assets.coingecko.com/coins/images/2518/small/weth.png?1696503332", "coingecko_coin_id": "weth" } } ]}New & Trending Tokens
Retrieve data on trending coins, top gainers, and popular narratives to spot market opportunities
Track newly launched tokens and liquidity pools
// Get trending pools across all networks{ "data": [ { "id": "eth_0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640", "type": "pool", "attributes": { "base_token_price_usd": "3653.12491645176", "base_token_price_native_currency": "1.0", "quote_token_price_usd": "0.998343707926245", "quote_token_price_native_currency": "0.000273040545093221", "base_token_price_quote_token": "3662.46", "quote_token_price_base_token": "0.00027304", "address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640", "name": "WETH / USDC 0.05%", "pool_created_at": "2021-12-29T12:35:14Z", "fdv_usd": "11007041041", "market_cap_usd": null, "price_change_percentage": { "m5": "0", "h1": "0.51", "h6": "0.86", "h24": "7.71" }, "transactions": { "m5": { "buys": 7, "sells": 2, "buyers": 7, "sellers": 2 }, "m15": { "buys": 19, "sells": 27, "buyers": 19, "sellers": 27 }, "m30": { "buys": 49, "sells": 61, "buyers": 45, "sellers": 57 }, "h1": { "buys": 97, "sells": 144, "buyers": 83, "sellers": 124 }, "h24": { "buys": 2966, "sells": 3847, "buyers": 1625, "sellers": 2399 } }, "volume_usd": { "m5": "868581.7348314", "h1": "16798158.0138526", "h6": "164054610.850188", "h24": "536545444.904535" }, "reserve_in_usd": "163988541.3812" }, "relationships": { "base_token": { "data": { "id": "eth_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "type": "token" } }, "quote_token": { "data": { "id": "eth_0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "type": "token" } }, "dex": { "data": { "id": "uniswap_v3", "type": "dex" } } } } ], "included": [ { "id": "eth_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "type": "token", "attributes": { "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "name": "Wrapped Ether", "symbol": "WETH", "image_url": "https://assets.coingecko.com/coins/images/2518/small/weth.png?1696503332", "coingecko_coin_id": "weth" } } ]}Token Metadata
Get crypto logos, official websites, contract addresses, social links and more.
Pull on-chain metadata like holder count, distribution percentages, and mint/freeze authority
// Get token metadata{ "data": { "id": "eth_0xdac17f958d2ee523a2206206994597c13d831ec7", "type": "token", "attributes": { "address": "0xdac17f958d2ee523a2206206994597c13d831ec7", "name": "Tether USD", "symbol": "USDT", "image_url": "https://assets.coingecko.com/coins/images/325/small/Tether.png?1696501661", "coingecko_coin_id": "tether", "websites": [ "https://tether.to/" ], "description": "Tether (USDT) is a cryptocurrency with a value meant to mirror the value of the U.S. dollar...", "gt_score": 92.6605504587156, "discord_url": null, "telegram_handle": null, "twitter_handle": "Tether_to", "categories": [], "gt_categories_id": [] } }}Token Metadata
Get crypto logos, official websites, contract addresses, social links and more.
Pull on-chain metadata like holder count, distribution percentages, and mint/freeze authority
// Get token metadata{ "data": { "id": "eth_0xdac17f958d2ee523a2206206994597c13d831ec7", "type": "token", "attributes": { "address": "0xdac17f958d2ee523a2206206994597c13d831ec7", "name": "Tether USD", "symbol": "USDT", "image_url": "https://assets.coingecko.com/coins/images/325/small/Tether.png?1696501661", "coingecko_coin_id": "tether", "websites": [ "https://tether.to/" ], "description": "Tether (USDT) is a cryptocurrency with a value meant to mirror the value of the U.S. dollar...", "gt_score": 92.6605504587156, "discord_url": null, "telegram_handle": null, "twitter_handle": "Tether_to", "categories": [], "gt_categories_id": [] } }}
Skip the Setup with x402
Give your AI agents instant access to crypto data without the API keys or account setups. Pay directly with USDC for the calls your agents make.
Give your AI agents instant access to crypto data without the API keys or account setups. Pay directly with USDC for the calls your agents make.
Tools & Integrations
Tools & Integrations
Build Faster with CoinGecko’s Official SDKs & MCP Servers
Build Faster with CoinGecko’s Official SDKs & MCP Servers

Frequently asked questions
How can I use the CoinGecko API for AI Agents or DeFAI use cases?
How can I use the CoinGecko API for AI Agents or DeFAI use cases?
Does CoinGecko API provide historical OHLCV data for AI trading agents?
Does CoinGecko API provide historical OHLCV data for AI trading agents?
Can I use CoinGecko API to train AI models for crypto trend analysis?
Can I use CoinGecko API to train AI models for crypto trend analysis?
Are there any AI agent SDKs or frameworks that support the CoinGecko API?
Are there any AI agent SDKs or frameworks that support the CoinGecko API?
Can I use the CoinGecko API for other AI use cases besides AI Agents?
Can I use the CoinGecko API for other AI use cases besides AI Agents?




CUSTOMER STORY









