# Subview Metrics

> Data API reference, generated from the OpenAPI spec.

HTML version: https://www.mux.com/docs/api-reference/data/subview-metrics. Full OpenAPI spec: https://www.mux.com/api-spec.json

## Get Subview Overall Values

`GET https://api.mux.com/data/v1/subview-metrics/{METRIC_ID}/{SUBVIEW_TYPE}/overall`

Returns the total subview metric value across all views matching the given filters and timeframe.

Operation ID: `get-subview-overall-values`. HTML version: https://www.mux.com/docs/api-reference/data/subview-metrics/get-subview-overall-values

### Path parameters

- `METRIC_ID` (string, required): ID of the metric to compute over subviews. Additional metrics may be added over time. Possible values: `"playing_time"`.
- `SUBVIEW_TYPE` (string, required): The subview type to query. Possible values: `"rendition"`, `"playback_mode"`.

### Query parameters

- `timeframe[]` (array of string): Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
- `filters[]` (array of string): Filter results using key:value pairs. Must be provided as an array query string parameter. The set of filterable dimensions is distinct from the main Data API's dimensions, and depends on the subview type — see the List Subview Dimensions endpoint for the valid names. * `filters[]=dimension:value` - Include rows where dimension equals value * `filters[]=!dimension:value` - Exclude rows where dimension equals value * `filters[]=dimension:__empty__` - Include rows where the dimension has no value Example: `filters[]=country:US`

### Response `200`

OK

- `data` (object, required)
  - `metric_value` (number, required, format: double)
- `meta` (object, required)
  - `subview_type` (string, required)
  - `metric` (string, required)
  - `unit` (string, required)
- `total_row_count` (integer, required, nullable, format: int64): Always `null` for this endpoint — a single aggregate value has no row count.
- `timeframe` (array of integer, required) Each item: format: int64.
