---
title: "Get viewers"
method: GET
path: "/wiki/rest/api/analytics/content/{contentId}/viewers"
tags: ["Analytics"]
---

# Get viewers

`GET /wiki/rest/api/analytics/content/{contentId}/viewers`

Get the total number of distinct viewers a piece of content has.

## Path parameters

- `contentId` string, required

## Query parameters

- `fromDate` string

## Response `200`

Returns the total number of distinct viewers for the content.

- object
  - `id` integer — The content ID.
  - `count` integer — The total number of distinct viewers for the content.

## Other responses

- `400` — Returned if client input is invalid.
- `401` — Returned if the authentication credentials are incorrect.
- `403` — Returned if the authentication credentials are missing from the request.
- `404` — Returned if; - There is no content with the given ID.

---

[API](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api/revisions/70088490f406/schema)
