---
title: "Get video retention analytics"
method: GET
path: "/retention/{video_id}"
tags: ["Analytics API"]
---

# Get video retention analytics

`GET /retention/{video_id}`

Retrieves retention analytics data showing viewer drop-off over time

## Path parameters

- `video_id` string, uuid, required

## Query parameters

- `start_date` string, date
- `end_date` string, date

## Response `200`

Video retention data retrieved successfully

- object
  - `retention` object — Retention data indexed by second
  - `viewsData` object — Raw views data by second
  - `video` object
    - `title` string — Video title
    - `duration` number — Video duration in seconds
    - `hls` string — HLS playlist URL
    - `retention_markers` object[] — Array of retention markers (pitch and custom)
      - `time` number — Time in seconds where the marker is placed
      - `type` 'pitch' | 'custom' — Type of marker
      - `title` string — Title of the marker

## Other responses

- `400` — Bad request - Invalid input parameters
- `401` — Unauthorized - Invalid or missing authentication
- `404` — Not found - Resource does not exist
- `500` — Internal server error

---

[API](https://skmtc.net/pandavideo/apis/api-v2.md) · [All operations](https://skmtc.net/pandavideo/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pandavideo/api-v2/versions/4fbd3c623ca9/schema)
