---
title: "Query public total views metrics"
method: GET
path: "/data/views/query/total/{playbackId}"
---

# Query public total views metrics

`GET /data/views/query/total/{playbackId}`

Allows querying for the public metrics for viewership about a video.
This can be called from the frontend with a CORS key, or even
unauthenticated.

## Path parameters

- `playbackId` string, required

## Response `200`

A single Metric object with the viewCount and playtimeMins metrics.

- object — A simplified metric object about aggregate viewership of an asset. Either playbackId or dStorageUrl will be set.
  - `playbackId` PlaybackId — unresolved $ref
  - `dStorageUrl` DStorageUrl — unresolved $ref
  - `viewCount` ViewCount, required — unresolved $ref
  - `playtimeMins` PlaytimeMins, required — unresolved $ref

## Other responses

- `default` — Error

---

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