---
title: "Get views in built-in player"
method: GET
path: "/streaming/statistics/views"
tags: ["Streaming Statistics"]
---

# Get views in built-in player

`GET /streaming/statistics/views`

Get the number of views in the built-in player. 

Allows flexible grouping and filtering. The fields in the response depend on the selected grouping.

Note. This method operates only on data collected by the built-in HTML player. It will not show statistics if you are using another player or viewing in native OS players through direct .m3u8/.mpd/.mp4 links. For such cases, use calculations through CDN (look at method /statistics/cdn/uniqs) or statistics of the players you have chosen.

## Query parameters

- `date_from` string, required
- `date_to` string, required
- `type` 'live' | 'vod' | 'playlist'
- `id` string
- `event` 'init' | 'start' | 'watch'
- `host` string
- `country` string
- `group` string[] — group=1,2,4 OR group=1&group=2&group=3

## Response `200`

OK

- Views
  - `data` object[]
    - `views` integer, required
    - `date` string, required
    - `type` string, required
    - `host` string
    - `os` string
    - `browser` string
    - `platform` string
    - `ip` string
    - `country` string
    - `event` string
    - `id` integer

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.net/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.net/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/revisions/09e652815095/schema)
