---
title: "Viewers Histogram"
method: GET
path: "/1/videos/stats/viewers/histogram"
tags: ["Stats > Globals > Viewers"]
---

# Viewers Histogram

`GET /1/videos/stats/viewers/histogram`

This endpoint allows you to retrieve Global unique viewers histogram on the pack order.

## Query parameters

- `from` string, required — Specify the starting date to get Consumption
- `to` string, nullable, required — Specify the ending date to get Consumption
- `per` 'day' | 'hour' | 'minute' | 'month' | 'quarter' | 'week' | 'year', required — Specify
- `account_id` integer, required — Account identifier

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` A57c9d69Histogramviewersressource
    - `histogram` unknown[], required — Returns an aggregated histogram of minute,hoour,day,week viewing statistics.
      - unknown
    - `from` integer, required — start date and time for the histogram data range (inclusive).
    - `to` integer, required — End date and time for the histogram data range (inclusive).

---

[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/158a854b0c7d/schema)
