---
title: "List RUM replay viewership history sessions"
method: GET
path: "/api/v2/rum/replay/viewership-history/sessions"
tags: ["Rum Replay Viewership"]
---

# List RUM replay viewership history sessions

`GET /api/v2/rum/replay/viewership-history/sessions`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/rum/replay/viewership-history/sessions`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`

List watched sessions.

## Query parameters

- `filter[watched_at][start]` integer
- `page[number]` integer
- `filter[created_by]` string
- `filter[watched_at][end]` integer
- `filter[session_ids]` string
- `page[size]` integer
- `filter[application_id]` string

## Response `200`

OK

- ViewershipHistorySessionArray: A list of RUM replay sessions from a user's viewership history.
  - `data` ViewershipHistorySessionData[], required: Array of viewership history session data objects.
    - `attributes` ViewershipHistorySessionDataAttributes: Attributes of a viewership history session entry, capturing when it was last watched and the associated event data.
      - `event_id` string: Unique identifier of the RUM event associated with the watched session.
      - `last_watched_at` string, date-time, required: Timestamp when the session was last watched by the user.
      - `session_event` object: Raw event data associated with the replay session.
      - `track` string: Replay track identifier indicating which recording track the session belongs to.
    - `id` string: Unique identifier of the RUM replay session.
    - `type` 'rum_replay_session', required: Rum replay session resource type.

## Other responses

- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
