---
title: "Get historical data of collection volume (total sales worth) for charting purposes"
method: GET
path: "/v2.0/data/collections/{id}/charts/volume"
tags: ["Charts"]
---

# Get historical data of collection volume (total sales worth) for charting purposes

`GET /v2.0/data/collections/{id}/charts/volume`

## Request

- Base URL: `https://api.rarible.org`
- URL: `https://api.rarible.org/v2.0/data/collections/{id}/charts/volume`
- Auth: API key in header `X-API-KEY`

Given a time period and the desired number of points, returns points which represent total worth of collection sales in the interval after that point.  The last point always has no value.

## Path parameters

- `id` string, required: Collection id

## Query parameters

- `period` 'MIN5' | 'MIN30' | 'H1' | 'H6' | 'D1' | 'D7' | 'D30' | 'D180' | 'D365' | 'ALL', required: Period: * `MIN5` - Last 5 minutes * `MIN30` - Last 30 minutes * `H1` - Last 1 hour * `H6` - Last 6 hours * `D1` - Last 1 day * `D7` - Last 7 days * `D30` - Last 30 days * `D180` - Last 180 days (roughly 6 months) * `D365` - Last 365 days (roughly 1 year) * `ALL` - For all time
- `size` integer, required
- `endTime` string, date-time

## Response `200`

OK

- OlapChartResponse
  - `dataPoints` OlapHistoryValuesByTimestamps, required
    - `timestamps` integer[], required: Timestamps of historical statistics
    - `values` number[], required: Values of historical statistics

## Other responses

- `400`: Bad Request
- `404`: Not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/rarible/apis/rarible-protocol-mcp-api.md) - [All operations](https://skmtc.dev/rarible/apis/rarible-protocol-mcp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rarible/apis/rarible-protocol-mcp-api/revisions/5d2651b9411d?raw)
