---
title: "Video and audio retention"
description: "How many people are still watching or listening through a video or audio file."
canonical_url: https://docs.markdrop.in/api/analytics/video-and-audio-retention
last_updated: 2026-10-30
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Video and audio retention

`GET https://api.markdrop.in/api/v1/me/documents/{slug}/analytics/media`

How many people are still watching or listening through a video or audio file.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 120 per minute per IP address.
- **Guide:** [Video and audio](https://docs.markdrop.in/analytics/video-and-audio)

## Path parameters

- `slug` (string, required): The document's address: the part after `markdrop.in/`.

## Query parameters

- `ver` (integer): From 1 to 100,000.
- `range` (string): The period to count: `7d`, `30d`, `90d` or `all`. One of `7d`, `30d`, `90d`, `all`. One of `7d`, `30d`, `90d`, `all`. Default `"30d"`.
- `internal` (integer): From 0 to 1. Default `0`.

## Responses

- `200`: OK.
- `401`: No token, or the token is revoked or mistyped.
- `422`: The request didn't validate. `detail` lists each problem, with where it is (`loc`) and why (`msg`).
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl https://api.markdrop.in/api/v1/me/documents/k3x9q2m/analytics/media \
  -H "Authorization: Bearer $MARKDROP_TOKEN"
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/me/documents/k3x9q2m/analytics/media", {
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
  },
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.get(
    "https://api.markdrop.in/api/v1/me/documents/k3x9q2m/analytics/media",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
)
r.raise_for_status()
print(r.json())
```
