{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"2c90734b-4d9a-4a12-9f77-83cc29fea037","catalogType":"api","categories":["crypto-defi"],"dataPlatform":"coingecko","dataPlatformLogoUrl":"https://docs.coingecko.com/mintlify-assets/_mintlify/favicons/coingecko/cEsEN1BHYMTujBc-/_generated/favicon/android-chrome-192x192.png","dataPlatformTranslations":{"ar":"coingecko","ja":"coingecko","zh":"coingecko"},"dataProduct":"historical-charts","description":"Get CoinGecko historical price, market cap and volume charts via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by CoinGecko, pass parameters such as days, vs_currency, and retrieve structured data including prices, market caps, and total volumes for historical charts, and asset comparisons, ready for production pipelines and AI agent automation.","descriptionTranslations":{"ar":"استرجع سلاسل أسعار CoinGecko التاريخية وقيمتها السوقية وأحجامها عبر OpenAny REST بمعرف العملة وعملة العرض وفترة الرجوع، مع خيارات الفترة ودقة السعر المدعومة. استخدم النتائج المنظمة لبناء صفحات أبحاث الأصول أو لوحات المقارنة، مع الاحتفاظ بالمعرفات والوحدات وأوقات المشاهدة عند دمج البيانات، وراجع أمثلة الطلبات والخيارات المدعومة وتسعير التنفيذ المحدد في صفحة التفاصيل.","ja":"OpenAny REST にコイン ID、表示通貨、遡及日数を指定し、対応する間隔や価格精度で CoinGecko の価格、時価総額、出来高の履歴系列を取得できます。 構造化された結果を資産調査ページや比較画面に利用できます。データを結合する際は識別子、単位、観測時刻を保持し、詳細ページのリクエスト例、対応オプション、選択した実装の料金を確認してください。","zh":"通过 OpenAny REST 提供币种 ID、目标货币与回溯天数，获取 CoinGecko 历史价格、市值及成交量序列，并可选择支持的间隔和价格精度。 可使用结构化结果构建资产研究页面或对比看板，合并数据时保留标识符、单位及观测时间；详情页提供请求示例、支持的选项及所选实现的价格。"},"effectContentHtml":"","executionMode":"sync","id":"950264b0-8290-4377-a8f5-dfd019fda1d7","includedContentHtml":"","inputs":[{"description":"Coin ID. \n*refers to [`/coins/list`](/reference/coins-list).","location":"path","name":"id","nullable":false,"required":true,"type":"string"},{"description":"Target currency of market data. \n*refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies).","location":"query","name":"vs_currency","nullable":false,"required":true,"type":"string"},{"description":"Data up to number of days ago. \nYou may use any integer or `max` for number of days.","location":"query","name":"days","nullable":false,"required":true,"type":"string"},{"description":"Data interval, leave empty for auto granularity.","enum_values":["hourly","daily"],"location":"query","name":"interval","nullable":false,"required":false,"type":"string"},{"description":"Decimal place for currency price value.","enum_values":["full","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],"location":"query","name":"precision","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://docs.coingecko.com/mintlify-assets/_mintlify/favicons/coingecko/cEsEN1BHYMTujBc-/_generated/favicon/android-chrome-192x192.png","method":"GET","name":"CoinGecko — Coin Historical Chart Data by ID","nameTranslations":{"ar":"CoinGecko — بيانات الرسم البياني التاريخي للعملة حسب المعرف","ja":"CoinGecko — ID によるコインの履歴チャートデータ","zh":"CoinGecko — 按 ID 获取币种历史图表数据"},"overviewHtml":"\u003ch2\u003eCoinGecko Coin Market Chart API\u003c/h2\u003e\n\u003cp\u003eSupply id, vs_currency and days. The response separates prices, market_caps and total_volumes into timestamp-value arrays. Optional interval accepts hourly or daily; omit it for automatic granularity, and use precision for price decimal formatting.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003epath: id; query: vs_currency, days, interval, precision\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003ecoingecko · CoinGecko — Coin Historical Chart Data by ID\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eHistorical charts\u003c/strong\u003e: Plot price, market capitalization and volume as separate series.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eAsset comparisons\u003c/strong\u003e: Request matching target currencies and inspect the returned observation times.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eDocumented Response Fields\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eprices[]\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePair of Unix timestamp in milliseconds and reported price\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003emarket_caps[]\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePair of Unix timestamp in milliseconds and market capitalization\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotal_volumes[]\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePair of Unix timestamp in milliseconds and reported 24-hour volume\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/coingecko/api/v3/coins/bitcoin/market_chart \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39; \\\n  --data-urlencode days=1 \\\n  --data-urlencode vs_currency=usd\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response is an official documentation reference that may contain historical values or optional sections. The calling template is independent; match returned resource identifiers, timestamps and requested options before using the data.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/950264b0-8290-4377-a8f5-dfd019fda1d7\"\u003ePublished CoinGecko Coin Market Chart API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eIs days a start date?\u003c/h3\u003e\n\u003cp\u003eNo. It specifies a lookback period as a string containing an integer or max. Use the range endpoint for explicit from/to timestamps.\u003c/p\u003e\n\u003ch3\u003eAre timestamps seconds or milliseconds?\u003c/h3\u003e\n\u003cp\u003eThe returned chart arrays use Unix milliseconds. Keep those values distinct from range-query Unix seconds.\u003c/p\u003e\n\u003ch3\u003eWhich interval values can I send?\u003c/h3\u003e\n\u003cp\u003eThis selected contract accepts hourly or daily. Omit interval for automatic granularity.\u003c/p\u003e\n\u003ch3\u003eDoes total_volumes mean volume since the previous point?\u003c/h3\u003e\n\u003cp\u003eIt is the reported 24-hour volume series, not a per-interval trade count or volume increment.\u003c/p\u003e\n\u003ch3\u003eWhich API key should I use?\u003c/h3\u003e\n\u003cp\u003eUse your OpenAny API key as Bearer authentication on the documented OpenAny route.\u003c/p\u003e\n\u003ch3\u003eWhere can I check the current request price?\u003c/h3\u003e\n\u003cp\u003eCheck the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/coingecko/coingecko-asset-platforms-list\"\u003eCoinGecko — Asset Platforms List\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/coingecko/coingecko-coins-categories-list-with-market-data\"\u003eCoinGecko — Coins Categories List with Market Data\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/coingecko/coingecko-coins-categories-list\"\u003eCoinGecko — Coins Categories List\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/coingecko/coingecko-coin-historical-chart-data-by-id?offering=950264b0-8290-4377-a8f5-dfd019fda1d7","providerId":"coingecko","publicPath":"/v1/agent-apis/coingecko/api/v3/coins/{id}/market_chart","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Official response / contract request","request":{"body":null,"headers":{},"path":{"id":"bitcoin"},"query":{"days":"1","vs_currency":"usd"}},"response_body":{"market_caps":[[1779027899041,1560631481361.8042],[1779028199661,1562027330524.267]],"prices":[[1779027899041,77953.82550382407],[1779028199661,78052.87543398788]],"total_volumes":[[1779027899041,18688431751.857048],[1779028199661,18974828816.446976]]}}],"seoDescription":"Get CoinGecko historical price, market cap via REST or MCP powered by CoinGecko. Pay per call, no subscription. Get prices and market caps in JSON.","updatedAt":"2026-12-03T02:49:12.341Z","usageInstructionsHtml":""}}