---
title: "Coin Historical Chart Data within Time Range by ID"
method: GET
path: "/coins/{id}/market_chart/range"
tags: ["Coins"]
---

# Coin Historical Chart Data within Time Range by ID

`GET /coins/{id}/market_chart/range`

This endpoint allows you to **get the historical chart data of a coin within certain time range in UNIX along with price, market cap and 24hr volume based on particular coin ID**

## Path parameters

- `id` string, required

## Query parameters

- `vs_currency` string, required
- `from` string, required
- `to` string, required
- `interval` '5m' | 'hourly' | 'daily'
- `precision` 'full' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18'

## Response `200`

Get historical market data include price, market cap, and 24hr volume (granularity auto)

- CoinsMarketChartRange
  - `prices` array[]
    - number[]
  - `market_caps` array[]
    - number[]
  - `total_volumes` array[]
    - number[]

## Changes

- **2025-09-22** `91c83447321b` — 2 info
  - for the `query` request parameter `from`, the type was generalized from `number` to `string`
  - for the `query` request parameter `to`, the type was generalized from `number` to `string`

[Change history](https://skmtc.dev/coingecko/apis/coingecko-api/changes/coins/:id/market_chart/range/get.md)

---

[API](https://skmtc.dev/coingecko/apis/coingecko-api.md) · [All operations](https://skmtc.dev/coingecko/apis/coingecko-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coingecko/coingecko-api/revisions/e88de4e81cdb/schema)
