---
title: "Export viewers"
description: "Every view in the range as CSV, one row each, with the same filters as List viewers: who, when, active and open time, completion, location, timezone, device,…"
canonical_url: https://docs.markdrop.in/api/analytics/export-viewers
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Export viewers

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

Every view in the range as CSV, one row each, with the same filters as List viewers: who, when, active and open time, completion, location, timezone, device, OS and browser with versions, app, screen, language, source, referrer, campaign and counts of links, copies, downloads, prints, questions and sign-offs.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 30 per minute per IP address.
- **Guide:** [Who viewed it](https://docs.markdrop.in/analytics/viewers)

## Path parameters

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

## Query parameters

- `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"`.
- `who` (string): One of `all`, `signed_in`, `anonymous`. One of `all`, `signed_in`, `anonymous`. Default `"all"`.
- `completion` (string): One of `any`, `low`, `mid`, `high`, `done`. One of `any`, `low`, `mid`, `high`, `done`. Default `"any"`.
- `own` (integer): From 0 to 1. Default `0`.
- `internal` (integer): From 0 to 1. Default `1`.
- `country` (string): Up to 2 characters.
- `device` (string): Up to 20 characters.
- `os` (string): Up to 40 characters.
- `browser` (string): Up to 40 characters.
- `source` (string): Up to 120 characters.

## 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/viewers.csv?range=30d' \
  -H "Authorization: Bearer $MARKDROP_TOKEN"
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/me/documents/k3x9q2m/analytics/viewers.csv?range=30d", {
  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/viewers.csv?range=30d",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
)
r.raise_for_status()
print(r.json())
```
