---
title: "Query realtime viewership"
method: GET
path: "/data/views/now"
tags: ["metrics"]
---

# Query realtime viewership

`GET /data/views/now`

Requires a private (non-CORS) API key to be used.

## Query parameters

- `playbackId` string
- `creatorId` string
- `breakdownBy[]` string[]

## Response `200`

A list of Metric objects

- RealtimeViewershipMetric[]
  - `playbackId` string — The playback ID associated with the metric.
  - `device` string — The device used by the viewer.
  - `browser` string — The browser used by the viewer.
  - `country` string — The country where the viewer is located.
  - `viewCount` integer, required — The number of views for the stream/asset.
  - `errorRate` number, required — The error rate for the stream/asset.

## Other responses

- `default` — Error

## Changes

- **2024-07-04** `e28fd9f5384c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/livepeer/apis/livepeer-api-reference/changes/data/views/now/get.md)

---

[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/0d7e15217608/schema)
