---
title: "Get historical data of floor price for collection for charting purposes"
method: GET
path: "/v2.0/data/collections/{id}/charts/floorPrice"
tags: ["Charts"]
---

# Get historical data of floor price for collection for charting purposes

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

## Request

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

Returns list of historical floor prices aggregated at even intervals in the specified time period - last day, last month etc.  Each points represents the aggregated value of the interval after it.  The last point represents the current floor price.

## 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)
