{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"ad2caa0e-c4aa-42c9-a87b-76639752cf82","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 chart data for a Unix time range via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by CoinGecko, pass parameters such as from, to, vs_currency, and retrieve structured data including prices, market caps, and total volumes for bounded history views, and period comparisons, ready for production pipelines and AI agent automation.","descriptionTranslations":{"ar":"استرجع سلاسل سوق CoinGecko التاريخية لفترة محددة عبر OpenAny REST، بتحديد معرف العملة وعملة العرض وحدود Unix لمخططات السعر والقيمة السوقية وحجم التداول. استخدم النتائج المنظمة لبناء صفحات أبحاث الأصول أو لوحات المقارنة، مع الاحتفاظ بالمعرفات والوحدات وأوقات المشاهدة عند دمج البيانات، وراجع أمثلة الطلبات والخيارات المدعومة وتسعير التنفيذ المحدد في صفحة التفاصيل.","ja":"OpenAny REST にコイン ID、表示通貨、Unix 時刻の開始と終了を指定し、明示した期間の CoinGecko 価格、時価総額、出来高の履歴系列を取得できます。 構造化された結果を資産調査ページや比較画面に利用できます。データを結合する際は識別子、単位、観測時刻を保持し、詳細ページのリクエスト例、対応オプション、選択した実装の料金を確認してください。","zh":"通过 OpenAny REST 指定币种 ID、目标货币与 Unix 时间边界，获取明确时间区间内的 CoinGecko 历史价格、市值及成交量图表序列。 可使用结构化结果构建资产研究页面或对比看板，合并数据时保留标识符、单位及观测时间；详情页提供请求示例、支持的选项及所选实现的价格。"},"effectContentHtml":"","executionMode":"sync","id":"6792afaa-3e05-40f1-961a-d85aaca96348","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":"Starting date in UNIX timestamp.","location":"query","name":"from","nullable":false,"required":true,"type":"integer"},{"description":"Ending date in UNIX timestamp.","location":"query","name":"to","nullable":false,"required":true,"type":"integer"},{"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 within Time Range by ID","nameTranslations":{"ar":"CoinGecko — بيانات الرسم البياني التاريخي للعملة ضمن نطاق زمني حسب المعرّف","ja":"CoinGecko — IDで指定した期間内のコイン過去チャートデータ","zh":"CoinGecko — 按 ID 获取特定时间范围内的币种历史图表数据"},"overviewHtml":"\u003ch2\u003eCoinGecko Coin Chart Range API\u003c/h2\u003e\n\u003cp\u003eProvide a coin ID, vs_currency, and integer from/to Unix timestamps in seconds. Chart responses use millisecond timestamp-value pairs. Optional interval is hourly or daily; optional precision affects price formatting, not the requested time range.\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, from, to, 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 within Time Range 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\u003eBounded history views\u003c/strong\u003e: Request a selected time window for one coin.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePeriod comparisons\u003c/strong\u003e: Align currency units and returned timestamps across separate requests.\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 millisecond timestamp 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 millisecond timestamp 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 millisecond timestamp 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/range \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39; \\\n  --data-urlencode from=1792972800 \\\n  --data-urlencode to=1793059200 \\\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/6792afaa-3e05-40f1-961a-d85aaca96348\"\u003ePublished CoinGecko Coin Chart Range 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\u003eWhat units do from and to use?\u003c/h3\u003e\n\u003cp\u003eUse integer Unix timestamps in seconds. Response array timestamps are in milliseconds, so do not copy them unchanged into from or to.\u003c/p\u003e\n\u003ch3\u003eCan I send days instead?\u003c/h3\u003e\n\u003cp\u003eNo. This selected range contract requires from and to. The separate lookback chart endpoint uses days.\u003c/p\u003e\n\u003ch3\u003eDoes precision change sampling frequency?\u003c/h3\u003e\n\u003cp\u003eNo. precision controls price decimals. interval controls the supported hourly or daily sampling request, or can be omitted for automatic granularity.\u003c/p\u003e\n\u003ch3\u003eCan I use these points as OHLC candles?\u003c/h3\u003e\n\u003cp\u003eNo. The arrays contain sampled observations, not open/high/low/close rows. Use an OHLC endpoint and retain its candle aggregation when building candlestick charts.\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-within-time-range-by-id?offering=6792afaa-3e05-40f1-961a-d85aaca96348","providerId":"coingecko","publicPath":"/v1/agent-apis/coingecko/api/v3/coins/{id}/market_chart/range","requestContentType":"none","revision":4,"samples":[{"http_status":200,"name":"Official example · Official response / contract request","request":{"body":null,"headers":{},"path":{"id":"bitcoin"},"query":{"from":1792972800,"to":1793059200,"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 chart data 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.368Z","usageInstructionsHtml":""}}