---
title: "Chart : files size"
method: GET
path: "/2/drive/{drive_id}/statistics/sizes"
tags: ["Drive > Statistics"]
---

# Chart : files size

`GET /2/drive/{drive_id}/statistics/sizes`

Chart data, list files size value over time

## Path parameters

- `drive_id` integer, required

## Query parameters

- `from` integer, required — Date from which to get statistics in unix-timestamp format
- `interval` integer, required — Statistics hours interval between from and until
- `metrics` string[], required
- `until` integer, required — Date until when to get statistics in unix-timestamp format

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` 91ac10ffChart
    - `title` string, required — Chart title
    - `labels` 91ac10ffChartData, required
      - `name` string, required — X coordinate name
      - `unit` string, required — X coordinate unit
      - `data` union, required — X coordinate data points
        - object
        - object
      - `metric` string — Metric of the requested chart
    - `data` 91ac10ffChartData[], required — Data information
      - `name` string, required — X coordinate name
      - `unit` string, required — X coordinate unit
      - `data` union, required — X coordinate data points
        - object
        - object
      - `metric` string — Metric of the requested chart

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
