---
title: "Get media files"
description: "Links to a post's video, audio and cover image, for your own analysis."
url: https://docs.sonderlabs.co.uk/media/files
---

# Get media files

Links to a post's video, audio and cover image, for your own analysis.

`GET /v1/posts/{id}/media` (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.

Returns short-lived links (valid for an hour) to the cover image and, where offered, the video and an audio-only track. Use them for your own models; respect the platform's and creator's rights.

## Platform support

- TikTok: Live
- Instagram: Live
- YouTube: Live
- Facebook: Limited. Cover image only.
- X: Limited. Cover image only.
- Threads: Limited. Cover image only.
- Reddit: Limited. Cover image only.
- Snapchat: Limited. Cover image only.

## Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | A Sonder post id, from any endpoint that returns posts or from [post lookup](https://docs.sonderlabs.co.uk/posts/lookup). |
| `kind` | query | string | no | `cover`, `video`, `audio`, or a comma list. Default all. |

## Example

cURL:

```bash
curl https://yourteam.sonderlabs.co.uk/v1/posts/9dda86b0e89c04f35bcbf8e8528fd7d0/media \
  -H "Authorization: Bearer $SONDER_API_KEY"
```

JavaScript:

```js
const res = await fetch("https://yourteam.sonderlabs.co.uk/v1/posts/9dda86b0e89c04f35bcbf8e8528fd7d0/media", {
  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/posts/9dda86b0e89c04f35bcbf8e8528fd7d0/media",
    headers={"Authorization": f"Bearer {os.environ['SONDER_API_KEY']}"},
)
data = res.json()
```

Response:

```json
{
  "postId": "9dda86b0e89c04f35bcbf8e8528fd7d0",
  "cover": {
    "url": "https://media.sonderlabs.co.uk/c/9dda86b0….jpg"
  },
  "video": {
    "url": "https://media.sonderlabs.co.uk/v/9dda86b0….mp4",
    "durationSec": 40
  },
  "audio": {
    "url": "https://media.sonderlabs.co.uk/a/9dda86b0….m4a"
  },
  "expiresAt": "2026-11-13T21:00:00Z"
}
```
