---
title: "Clip heatmap"
description: "The moments of each long-form video people clip and re-post most, with the clips and their views."
url: https://docs.sonderlabs.co.uk/media/heatmap
---

# Clip heatmap

The moments of each long-form video people clip and re-post most, with the clips and their views.

`GET /v1/campaigns/{id}/heatmap` (coming soon)

> **Coming soon:** this endpoint is not served yet; the shape below is what it will look like. [Ask for it](https://docs.sonderlabs.co.uk/access) if you need it.

Every matched clip lands on a moment of its source video. The heatmap adds them up: for each moment, how many clips, from how many accounts, with how many views, and the line that was said. It shows which part of an episode travelled.

## Platform support

- TikTok: Live
- Instagram: Live
- YouTube: Live
- Facebook: Not available. No video to match: text and image posts.
- X: Not available. No video to match: text and image posts.
- Threads: Not available. No video to match: text and image posts.
- Reddit: Not available. No video to match: text and image posts.
- Snapchat: Limited. Spotlights match on speech only.

## Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The campaign id. |
| `video` | query | string | no | One source video. |
| `episode` | query | string | no | One episode of a recurring show. |

## Notes

- The two clips and their views are real; the source link and times in this example are placeholders.

## Example

cURL:

```bash
curl https://yourteam.sonderlabs.co.uk/v1/campaigns/the-graham-norton-show-series-34/heatmap \
  -H "Authorization: Bearer $SONDER_API_KEY"
```

JavaScript:

```js
const res = await fetch("https://yourteam.sonderlabs.co.uk/v1/campaigns/the-graham-norton-show-series-34/heatmap", {
  headers: {
    Authorization: `Bearer ${process.env.SONDER_API_KEY}`,
  },
});
const data = await res.json();
```

Python:

```python
import os, requests

res = requests.get(
    "https://yourteam.sonderlabs.co.uk/v1/campaigns/the-graham-norton-show-series-34/heatmap",
    headers={"Authorization": f"Bearer {os.environ['SONDER_API_KEY']}"},
)
data = res.json()
```

Response:

```json
{
  "videos": [
    {
      "title": "…",
      "url": "https://www.youtube.com/watch?v=…",
      "seconds": 2940,
      "clips": 2,
      "views": 14318916,
      "moments": [
        {
          "start": 1312,
          "end": 1368,
          "label": "Did you fantasize about doing other things?",
          "posts": 2,
          "views": 14318916,
          "postIds": [
            "16904bb4aa009a1df010017aac5105d2",
            "abf505e6a8dd939360d5beaec605b807"
          ]
        }
      ]
    }
  ]
}
```
