
强大的加密货币数据API
所有加密货币市场数据仅需一个API
- 自2014年初开始运行
- 高达99.9%的正常运行时间
- 经过强大的行业合作和使用自家产品进行测试
- 全天候运营支持,确保及时更新数据
加密货币、NFT、以太坊和比特币价格API
端点类别 | 描述 |
---|---|
/simple/* | 通过ID或合约地址,调用加密资产最新价格的最简单快速的端点。 |
/coins/* | 返回CoinGecko上代币列表的端点,以及它们各自的价格、市场数据、历史数据和元数据(图片、描述、链接、粉丝、代币供应信息等)。还有更多独家端点可供发现流行代币、新增代币等。 |
/contract/* | 工作方式与上述的 /coins/* 端点相似,只是它是通过合约地址,而不是通过API ID进行查询的。 |
/asset_platforms | 获取CoinGecko支持的完整区块链网络列表。 |
/coins/categories/* | 获取CoinGecko支持的完整分类列表及其市场数据,如分类页面所示。 |
/nfts/* | 返回CoinGecko上NFT收藏品列表的端点,以及它们各自的底价、市场数据、元数据和历史数据。 |
/onchain/* | 从去中心化交易所返回链上市场数据的端点,如基于代币或池地址的任何代币的价格和交易量。其他数据包括流动性池、OHLCV(开盘价、最高价、最低价、收盘价和成交量)等。 |
/exchanges/* | 返回CoinGecko上交易所列表的端点,以及它们各自的市场数据、行情标签(交易对)、元数据和历史数据。 |
/derivatives/* | 返回CoinGecko上衍生物交易所列表的端点,以及它们各自的市场数据、行情标签(交易对)和元数据。 |
/search/* | 获取代币、分类和交易所的查询搜索结果。 |
/search/trending/* | 获取CoinGecko上当前搜索热门的代币。 |
/global/* | 获取全球加密货币数据,如当前和过往的全球市值。 |
/companies/* | 获取公开的公司数据,如BTC和ETH的库存。 |
// 获取实时价格和市场数据
{ "bitcoin": { "usd": 111329, "usd_market_cap": 2211945315067.4004, "usd_24h_vol": 67826692878.27446, "usd_24h_change": 1.828319790428666, "last_updated_at": 1747933784 }, "ethereum": { "usd": 2651.39, "usd_market_cap": 320077641698.4431, "usd_24h_vol": 37772230398.465004, "usd_24h_change": 2.3995142861062275, "last_updated_at": 1747933783 } }
// 发现热门货币、NFT及加密货币类别
{ "coins": [ { "item": { "id": "sui", "coin_id": 26375, "name": "Sui", "symbol": "SUI", "market_cap_rank": 13, "thumb": "https://assets.coingecko.com/coins/images/26375/standard/sui-ocean-square.png?1727791290", "small": "https://assets.coingecko.com/coins/images/26375/small/sui-ocean-square.png?1727791290", "large": "https://assets.coingecko.com/coins/images/26375/large/sui-ocean-square.png?1727791290", "slug": "sui", "price_btc": 3.4862874916281316e-05, "score": 0, "data": { "price": 3.895723539757347, "price_btc": "0.00003486287491628131", "price_change_percentage_24h": { "aed": -0.671292715304594, "ars": -1.3238777983945058, "aud": -0.027328304714989766, "bch": -8.163025080089477, "bdt": -0.7631673268743933, "bhd": -0.5898111153540139, "bmd": -0.6712927153045556, "bnb": -2.7405899576962875, "brl": -1.6657022256941192, "btc": -4.417008082566073, "cad": -0.4043207895610923, "chf": 0.12870758107964836, "clp": -0.7786512061866656, "cny": -0.6464691577742162, "czk": 0.13515842810256018, "dkk": 0.07777870584297525, "dot": -5.226760956992114, "eos": -2.598840686563832, "eth": -5.731965513782783, "eur": 0.09504379886965489, "gbp": -0.42780401098533744, "gel": -0.3986613137912498, "hkd": -0.7179645245374131, "huf": 0.23904662166402696, "idr": -0.5034790114281272, "ils": 0.719296021675449, "inr": -0.21951664664055884, "jpy": -0.09530563421329727, "krw": 0.19593030864570102, "kwd": -0.5650830462275656, "lkr": -0.8442222808826052, "ltc": -3.594330916741521, "mmk": -0.6712927153045823, "mxn": -0.9043239856593795, "myr": -0.5549827536129106, "ngn": -0.6031119733839263, "nok": -0.0727586448554542, "nzd": 0.25074556841757734, "php": -0.39624781694940525, "pkr": -0.7193283205668201, "pln": 0.32885973200408214, "rub": -0.8128138135451154, "sar": -0.6676116831334112, "sek": 0.3233796023325423, "sgd": -0.3120913206078986, "sol": -6.063928526140752, "thb": -0.1039277657128207, "try": -0.4546627282228363, "twd": -0.45124314880736527, "uah": -0.5868535919603515, "usd": -0.6712927153045556, "vef": -0.6712927153046573, "vnd": -0.6454896980473046, "xag": 0.16311226767299242, "xau": -0.2471342446592314, "xdr": -0.938682512079554, "xlm": -4.199136512918271, "xrp": -2.5023145208930235, "yfi": -5.199643053997273, "zar": -0.35471534121799414, "bits": -4.417008082566067, "link": -5.588371941974667, "sats": -4.417008082566066 }, "market_cap": "$13,004,516,105", "market_cap_btc": "116383.4655775136", "total_volume": "$3,725,719,511", "total_volume_btc": "33341.50690525182", "sparkline": "https://www.coingecko.com/coins/26375/sparkline.svg", "content": null } } } ], "nfts": [ { "id": "runestone", "name": "Runestone", "symbol": "RUNESTONE", "thumb": "https://assets.coingecko.com/nft_contracts/images/4200/standard/runestone.png?1710468413", "nft_contract_id": 4200, "native_currency_symbol": "btc", "floor_price_in_native_currency": 0.002199, "floor_price_24h_percentage_change": 22.20957788058745, "data": { "floor_price": "0.002 BTC", "floor_price_in_usd_24h_percentage_change": "22.20957788058745", "h24_volume": "0.77 BTC", "h24_average_sale_price": "0.002 BTC", "sparkline": "https://www.coingecko.com/nft/4200/sparkline.svg", "content": null } } ], "categories": [ { "id": 10657, "name": "Liquid Staked SUI", "market_cap_1h_change": -0.03236209533768945, "slug": "liquid-staked-sui", "coins_count": "5", "data": { "market_cap": 155617753.47216928, "market_cap_btc": 1392.4955223203738, "total_volume": 29900251.04377281, "total_volume_btc": 267.5528001511403, "market_cap_change_percentage_24h": { "aed": 379.2565281399069, "ars": 377.35279651951527, "aud": 380.42375231845045, "bch": 332.5149658862272, "bdt": 379.3557455656724, "bhd": 379.1931679892451, "bmd": 379.25417948281296, "bnb": 358.1830291783004, "brl": 373.96816347022417, "btc": 357.99279929709644, "cad": 377.8611970403447, "chf": 380.9828703150173, "clp": 379.4219143793314, "cny": 378.2186574949832, "czk": 380.2694666883987, "dkk": 380.34263865531653, "dot": 352.82337766795126, "eos": 395.8375684250747, "eth": 354.230963957312, "eur": 380.3550116463069, "gbp": 378.83429132530574, "gel": 379.254179482813, "hkd": 379.21163216790694, "huf": 381.755202082112, "idr": 377.934182634082, "ils": 388.3329694452447, "inr": 381.7554011854417, "jpy": 378.9761257873662, "krw": 375.77831489894845, "kwd": 379.2900869752734, "lkr": 376.4793873302802, "ltc": 356.0887170725138, "mmk": 379.2541794828128, "mxn": 380.1912498365258, "myr": 376.7560890978324, "ngn": 376.5580673244499, "nok": 377.52640230628106, "nzd": 381.49659733572304, "php": 380.66761075244733, "pkr": 377.58149168170144, "pln": 381.95449348603813, "rub": 373.5547175021732, "sar": 379.31794385607316, "sek": 379.4917034881725, "sgd": 378.5804743965503, "thb": 378.9821636614235, "try": 380.3043006460323, "twd": 378.02590519416157, "uah": 379.6114151398481, "usd": 379.25417948281296, "vef": 379.25417948281273, "vnd": 379.56530272848005, "xag": 379.64011952088885, "xau": 378.22868250594274, "xdr": 375.1270229334578, "xlm": 357.3192478841064, "xrp": 365.12707486217255, "yfi": 359.41011908737477, "zar": 381.30482992015334, "bits": 357.99279929709644, "link": 348.63328916318, "sats": 357.99279929709644 }, "sparkline": "https://www.coingecko.com/categories/10657/sparkline.svg" } } ] }
探索我们丰富的数据
您希望创建什么?




使用CoinGecko构建
GM web3 family!
— 0xFazio (@0xfazio) February 26, 2025
I spread to you my transactions tracker app. I use it to manage my personal and my business crypto portfolio.
100% Better than a excel sheet!
Try it… it’s free you just need a CoinGecko API key to start. https://t.co/vjKIsh43yA pic.twitter.com/RjVNztKFHO
Finding the NEXT big CRYPTO with Python & CoinGecko API pic.twitter.com/wh2IRdx5jo
— Moon Dev (@MoonDevOnYT) November 30, 2024
I built a website to practice trading meme coins with mock funds (no funds).
— Rapto (@heyrapto) January 31, 2025
ps: source code is not free 🌚
Live: https://t.co/oXEIL1UzIr
Stack: Next.js, Typescript, Clerk & CoinGecko API pic.twitter.com/EleHEcFDSh
Built a solo mining calculator with an esp32 HMI 3d printed a little case on my @BambulabGlobal X1. RPC calls to public nodes, calls to @coingecko api for prices. I’ve got Bitcoin $btc and Nervos Network $ckb loaded in so far.
— wyltekcrypto.bit (@wyltek1) February 16, 2025
Which coin should I add next? $ergo $doge $ltc $bch… pic.twitter.com/iHXbSij9Q0
So after 5 hours of coding using @Replit online editor I was able to print name of coins and there current price in real time on my screen using @coingecko API!
— Luka.icp💎 (@B12samurai) March 24, 2025
Although the design is lame ( just small CSS) but the functionality work just fine!
I am so happy 😁 pic.twitter.com/QT9LxPXhqp
an easy way for you to know if it's a good day to buy crypto, made all using bolt.
— rachit (@rachitxdesign) February 3, 2025
used the coingecko's API to fetch the market prices and sentiments.
check it out, gooddaytobuycrypto[.]com. pic.twitter.com/Cnil7geXCI
I'm currently working with the Vue framework, and it seems really interesting, so l decided to create a personal portfolio project using Vue3, Integrating the Coingecko API to build a cryptocurrency tracker website.https://t.co/vMbwzjKSll pic.twitter.com/mekMh6Ntbr
— :) waally (@_mohawwal) March 18, 2025
Cooked this cryptocurrency visualiser using CoinGecko API and @anyappai
— Manish Nikam (@nikamanish) March 10, 2025
Full chat link in replies.
Check out anyapp. Create anything on the web.
Beta now live. pic.twitter.com/dz7CGvFFuc
It’s 1am and I’m up playing around with CoinGecko API.
— Azeezatou.dev👩🏽💻 (@Azee_zatou) December 18, 2024
🚧🚧 pic.twitter.com/NHzGPim3gn
为什么Web3项目会使用CoinGecko


常见问题
-
CoinGecko API是免费的吗?
- CoinGecko API有免费版和付费版。所有CoinGecko用户均可免费使用API的Demo计划,稳定速率限制为 30次调用/分钟,每月上限为10,000次。付费版的起价为每月129 美元,有着更高的速率限制(500 次/分钟)和每月500,000 次的上限额度。
-
什么是CoinGecko API?
-
CoinGecko API是针对交易员、开发人员和项目的加密货币数据API,通过其端点提供实时和历史加密货币价格、市场数据、交易对、元数据、NFT 系列底价等。将CoinGecko API集成到应用程序或网站中,显示准确的加密货币价格和数据。
CoinGecko汇聚了家中心化和去中心化交易所的加密货币价格和市场数据,提供可靠、全面和准确的加密货币价格数据,受到全球数百万用户的信赖。了解更多关于我们的方法,以及我们如何计算和评估的指标。 -
如何连接CoinGecko的API?
- 您可以通过使用HTTP请求调用或连接到其RESTful JSON端点来使用 API。根据您的查询需求,请选择在 API文件上列出的相关端点。
-
CoinGecko API 的速率限制是多少?
- CoinGecko API的Demo计划的速率限制为每分钟 30次调用,而付费计划提供更高的速率限制,高达每分钟500-1000次调用。如果您想探索自定义企业计划中更高的速率限制,请与我们的业务开发团队联系。
-
CoinGecko API的常见使用场景是什么?
-
交易员、开发人员和项目通常在其加密货币网页或移动端APP中使用CoinGecko API,以显示实时加密货币价格、市场数据、交易对和其他元数据。这些应用程序包括但不限于:钱包、交易所、投资组合筛选器和追踪器、分析与工具、交易或人工智能聊天机器人,以及加密货币会计平台。
金融公司、专业交易员和研究人员依靠CoinGecko API检索历史价格数据,以进行分析和回测交易策略,跟踪投资组合盈亏,发现最新热门币种和类别等。请查看我们的案例研究! -
可以通过CoinGecko API获取实时和历史加密货币价格吗?
-
可以的,您可以通过CoinGecko API获取实时和历史加密货币价格。
如需获取实时价格,您可以使用 /simple/price 或 /coins/markets等提供指定加密货币实时数据的端点
如需获取历史市场数据,您可以使用 /coins/{id}/market_chart 或 /coins/{id}/history等端点。 -
我可以通过CoinGecko API访问链上数据吗?
-
是的!API付费用户可以通过CoinGecko API中的20个新端点访问链上去中心化交易所数据。关键数据集包括加密货币流动性池、按合约地址排列的代币数据和OHLCV图表数据。
此数据由我们的姐妹产品GeckoTerminal提供支持,该产品监控着200个区块链网络上1,000个去中心化交易所(包括热门平台如Uniswap、PancakeSwap、Orca、Curve和Balancer)的实时加密货币价格、成交量、交易、流动性等。 -
CoinGecko API提供的链上数据有哪些例子?
-
下面是一些链上数据的示例:
- 通过以太坊、Solana、TON、BNB Chain、Base等逾200个区块链网络交易的8M种代币的价格、成交量、历史走势图和其他市场数据。
- 交易特定代币的所有池子的清单。
- 特定池的OHLCV数据(开盘价、最高价、最低价、收盘价、成交量),用于绘制蜡烛图
- 所有区块链网络和去中心化交易所的列表(由GeckoTerminal提供支持)。
-
Is CoinGecko API suitable for enterprise-scale businesses?
-
Absolutely. The CoinGecko API is battle-tested at scale and trusted by some of the largest names in the industry, including Consensys, Chainlink, Coinbase, Ledger, Etherscan, and many more.
Our Enterprise tiers offer:- Exclusive endpoints and enriched data access
- Dedicated customer success manager
- Flexible, customised plans: rate limits, credits, api keys, optional licensing, white-labeling
- Guaranteed uptime, integration consultation, and priority 24x7 support
- Private Slack channels for real-time assistance and faster resolution
If you're building with scale in mind, we’re ready to grow with you.
📩 Reach out to our team to explore an enterprise partnership.
