---
title: "Comment insights"
description: "How the discussion on an item is going: open and resolved threads, messages and people, the typical time to a first reply (first_reply.median_s, seconds) and…"
canonical_url: https://docs.markdrop.in/api/comments/comment-insights
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Comment insights

`GET https://api.markdrop.in/api/v1/documents/{slug}/comments/insights`

How the discussion on an item is going: open and resolved threads, messages and people, the typical time to a first reply (`first_reply.median_s`, seconds) and how many open threads still wait for one, time to resolve, the most-discussed sections, a daily series for `range` and who comments most. Anyone who can see the item's comments.

- **Authentication:** Token optional: send `Authorization: Bearer mdk_…` to act as your account, `X-Read-Password` for a password-protected document.
- **Rate limit:** 60 per minute per IP address.
- **MCP tool:** `comment_insights` ([tools](https://docs.markdrop.in/ai/tools))
- **Guide:** [Comments](https://docs.markdrop.in/collaboration/insights-and-exports#insights)

## Path parameters

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

## Query parameters

- `range` ("7d" | "30d" | "90d" | "all"): The period to count: `7d`, `30d`, `90d` or `all`. Default `"30d"`.

## Headers

- `X-Read-Password` (string): The password of a password-protected document.
- `X-Markdrop-Workspace` (string): A workspace's id: answer only if the document is in that workspace, else `404`. Workspace domains send it; you rarely need it.

## Responses

- `200`: OK.
- `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/documents/k3x9q2m/comments/insights \
  -H "Authorization: Bearer $MARKDROP_TOKEN"
```

**JavaScript**

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