---
title: "Match a clip to your footage"
description: "Which of your long-form videos a clip was cut from, and the exact moment."
url: https://docs.sonderlabs.co.uk/media/clip-match
---

# Match a clip to your footage

Which of your long-form videos a clip was cut from, and the exact moment.

`POST /v1/footage/match` (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.

Give a clip and the long-form videos it might come from. Sonder matches by the audio, the frames and what is said, and returns the source video, the start and end second, and how the match was made. A fan's re-cut with music over it still matches on frames and speech.

Source videos are long-form YouTube videos (yours or any public one). Matching a whole campaign's clips at once is part of [campaigns](https://docs.sonderlabs.co.uk/campaigns/episodes).

## 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. Matched on speech only.

## Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `clip` | body | string | yes | The clip's link. |
| `sources` | body | string[] | yes | Up to 50 long-form YouTube video links to match against. |

## Notes

- The clip and the line are real; the source link and times in this example are placeholders.

## Example

cURL:

```bash
curl -X POST https://yourteam.sonderlabs.co.uk/v1/footage/match \
  -H "Authorization: Bearer $SONDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "clip": "https://www.youtube.com/shorts/1c19BTs-dQU",
    "sources": [
      "https://www.youtube.com/watch?v=…"
    ]
  }'
```

JavaScript:

```js
const res = await fetch("https://yourteam.sonderlabs.co.uk/v1/footage/match", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SONDER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "clip": "https://www.youtube.com/shorts/1c19BTs-dQU",
    "sources": [
      "https://www.youtube.com/watch?v=…"
    ]
  }),
});
const data = await res.json();
```

Python:

```python
import os, requests

res = requests.post(
    "https://yourteam.sonderlabs.co.uk/v1/footage/match",
    headers={"Authorization": f"Bearer {os.environ['SONDER_API_KEY']}"},
    json={
        "clip": "https://www.youtube.com/shorts/1c19BTs-dQU",
        "sources": [
            "https://www.youtube.com/watch?v=…"
        ]
    },
)
data = res.json()
```

Response:

```json
{
  "clip": {
    "id": "abf505e6a8dd939360d5beaec605b807",
    "platform": "youtube",
    "url": "https://www.youtube.com/shorts/1c19BTs-dQU",
    "creator": {
      "handle": "celebrityreporter1224"
    },
    "views": 6518916,
    "durationSec": 56
  },
  "match": {
    "source": "https://www.youtube.com/watch?v=…",
    "start": 1312,
    "end": 1368,
    "by": [
      "speech",
      "frames"
    ],
    "said": "As a child, did you fantasize about doing other things?"
  }
}
```
