强大的加密货币数据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": 84055, "usd_market_cap": 1672203219799.9517, "usd_24h_vol": 48202393385.034386, "usd_24h_change": 2.8733099864920795, "last_updated_at": 1743790305 }, "ethereum": { "usd": 1813.27, "usd_market_cap": 219319713092.23062, "usd_24h_vol": 18651014839.04536, "usd_24h_change": 2.326742180655985, "last_updated_at": 1743790298 } }
// 发现热门货币、NFT及加密货币类别
{ "coins": [ { "item": { "id": "solidus-aitech", "coin_id": 22114, "name": "Solidus Ai Tech", "symbol": "AITECH", "market_cap_rank": 756, "thumb": "https://assets.coingecko.com/coins/images/22114/standard/CMC_Logo_200x200.png?1719949930", "small": "https://assets.coingecko.com/coins/images/22114/small/CMC_Logo_200x200.png?1719949930", "large": "https://assets.coingecko.com/coins/images/22114/large/CMC_Logo_200x200.png?1719949930", "slug": "solidus-ai-tech", "price_btc": 2.800567718218854e-07, "score": 0, "data": { "price": 0.023509479005785976, "price_btc": "0.0000002800567718218854", "price_change_percentage_24h": { "aed": 2.8477525180046825, "ars": 2.7490344777486944, "aud": 8.133241823664315, "bch": 0.12102125898169934, "bdt": 2.8477525180046652, "bhd": 2.822381385119871, "bmd": 2.8477525180047105, "bnb": 1.0355139460979081, "brl": 6.770210918326526, "btc": -0.056006940396115854, "cad": 3.75238659396496, "chf": 2.859936119493176, "clp": 4.387999211919537, "cny": 2.847752518004686, "czk": 4.415309917690114, "dkk": 3.613214157218699, "dot": 0.4561163841034302, "eos": 3.3950215804618247, "eth": 0.43190905303079896, "eur": 3.6140612287700185, "gbp": 4.3926324730004795, "gel": 2.847752518004688, "hkd": 2.805398819230638, "huf": 4.403286293699368, "idr": 2.8287158492001363, "ils": 3.9843694896540613, "inr": 3.235985329945574, "jpy": 3.619930385486865, "krw": 3.3965925304443263, "kwd": 2.8571151721384602, "lkr": 2.8477525180047003, "ltc": -0.9272225612192301, "mmk": 2.8477525180046905, "mxn": 5.570773401792088, "myr": 2.7319851243554267, "ngn": 2.5906080249428034, "nok": 7.000609336358857, "nzd": 6.791069531859999, "php": 3.4252114625263443, "pkr": 2.8477525180046763, "pln": 4.661757111749285, "rub": 3.454022458313789, "sar": 2.868367360853152, "sek": 5.421723497989494, "sgd": 3.619160333252459, "thb": 3.99284908867103, "try": 2.8643588752359936, "twd": 3.2975313301720135, "uah": 2.847752518004692, "usd": 2.8477525180047105, "vef": 2.8477525180046923, "vnd": 2.847752518004707, "xag": 11.430158366435991, "xau": 5.696463892461967, "xdr": 2.8477525180047003, "xlm": 0.7410346790933965, "xrp": -2.8456208154138944, "yfi": -1.6218708548209244, "zar": 4.935930811977132, "bits": -0.05600694039610685, "link": -1.1149317091562547, "sats": -0.05600694039611556 }, "market_cap": "$35,614,685", "market_cap_btc": "424.2600885316922", "total_volume": "$5,637,981", "total_volume_btc": "67.16247426840516", "sparkline": "https://www.coingecko.com/coins/22114/sparkline.svg", "content": null } } } ], "nfts": [ { "id": "veefriends", "name": "VeeFriends", "symbol": "VFT", "thumb": "https://assets.coingecko.com/nft_contracts/images/257/standard/veefriends.png?1707287239", "nft_contract_id": 257, "native_currency_symbol": "eth", "floor_price_in_native_currency": 2.15, "floor_price_24h_percentage_change": 53.99032857901266, "data": { "floor_price": "2.15 ETH", "floor_price_in_usd_24h_percentage_change": "53.99032857901266", "h24_volume": "170.01 ETH", "h24_average_sale_price": "2.46 ETH", "sparkline": "https://www.coingecko.com/nft/257/sparkline.svg", "content": null } } ], "categories": [ { "id": 10557, "name": "Sui Meme", "market_cap_1h_change": 0.09848472596946055, "slug": "sui-meme", "coins_count": "67", "data": { "market_cap": 111021166.88487683, "market_cap_btc": 1321.94385093017, "total_volume": 36278242.92823589, "total_volume_btc": 431.9698802234901, "market_cap_change_percentage_24h": { "aed": 39.745279805133464, "ars": 39.8116124814737, "aud": 45.04743959722053, "bch": 35.62976246225758, "bdt": 39.75246312370823, "bhd": 39.716877594838934, "bmd": 39.74356772067155, "bnb": 38.31913238144792, "brl": 43.68500869385462, "btc": 37.24933447942215, "cad": 39.677332393835364, "chf": 37.178102043444596, "clp": 40.90001983105782, "cny": 40.32426227529265, "czk": 40.756434111352235, "dkk": 39.07638478047918, "dot": 36.28815285452735, "eos": 39.25235032333559, "eth": 38.40134022673155, "eur": 39.11585365429584, "gbp": 41.182471684132004, "gel": 39.74356772067162, "hkd": 39.57619467436431, "huf": 40.911491918016935, "idr": 39.85546859924786, "ils": 41.38982169725026, "inr": 39.65384783230388, "jpy": 39.02906035546153, "krw": 39.02647481837256, "kwd": 39.43849430941285, "lkr": 40.256558085109035, "ltc": 35.31983598360331, "mmk": 39.74356772067154, "mxn": 40.906803692284925, "myr": 39.2101953247911, "ngn": 39.36604467226455, "nok": 44.68300610008178, "nzd": 43.161111033385964, "php": 39.94867063955373, "pkr": 39.97894947568283, "pln": 42.03338355807978, "rub": 40.1493370039748, "sar": 39.79110239741269, "sek": 41.99373937848579, "sgd": 39.62430416539695, "thb": 40.43536756087287, "try": 39.82884277391524, "twd": 39.45987648600824, "uah": 39.547745033831724, "usd": 39.74356772067155, "vef": 39.743567720671535, "vnd": 40.699083709371706, "xag": 59.46916167061139, "xau": 45.75745717866165, "xdr": 39.743567720671535, "xlm": 38.74638661663052, "xrp": 33.050364549325295, "yfi": 35.05287525805277, "zar": 40.58329816304929, "bits": 37.24933447942214, "link": 39.38253776943847, "sats": 37.24933447942214 }, "sparkline": "https://www.coingecko.com/categories/10557/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).
— Caleb | 10x developer (@calebcodes_js) 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!
— Lukabroviç 💎 | (Ø,G) (@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个区块链网络交易的6M种代币的价格、成交量、历史走势图和其他市场数据。
- 交易特定代币的所有池子的清单。
- 特定池的OHLCV数据(开盘价、最高价、最低价、收盘价、成交量),用于绘制蜡烛图
- 所有区块链网络和去中心化交易所的列表(由GeckoTerminal提供支持)。
