# GET /v2/teams/{id}/videos

Group: Teams

Videos about a team from official channels, such as extended highlights and interviews, hosted elsewhere (YouTube): the link, title, host and the host’s thumbnail. DataSportsAPI hosts no video itself.

Plans: Every plan, Free included.

Note: Newest first; a team without any gives an empty array. For one match’s highlights, use /v2/fixtures/{id}/highlights.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | DataSportsAPI team id, a positive integer |

## Response

- `data`: `Video[]`
- `meta`: count
- Objects: Video (https://datasportsapi.com/markdown/reference.md#video)

## Errors

- 404 not_found — DataSportsAPI has never assigned this id

Plus the errors every /v2 call shares (https://datasportsapi.com/markdown/docs/errors.md).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/teams/{id}/videos"
```

TypeScript:

```ts
const { data, meta } = await client.teams.videos(id);
```

Python:

```python
res = client.teams.videos(id)
```

Go:

```go
res, err := client.Teams.Videos(ctx, id)
```

CLI:

```bash
$ dsa teams videos <id>
```

## Example response

```json
{ "data": [ { "title": "FC BARCELONA 2-3 VILLARREAL CF 2024/25 | Resumen ampliado", "description": "…", "url": "https://www.youtube.com/watch?v=TwW4X-jpkDE",
      "provider": "youtube", "thumbnailUrl": "https://i.ytimg.com/vi/TwW4X-jpkDE/maxresdefault.jpg", "embeddable": true }, … ],
  "meta": { "count": 6 } }
```

---

Base URL: https://api.datasportsapi.com. Authenticate each /v2 call with the header `Authorization: Bearer <key>` (secret keys begin with `sk_live_`).
HTML: https://datasportsapi.com/docs/teams/videos/ · Group: https://datasportsapi.com/markdown/docs/teams.md · All docs: https://datasportsapi.com/markdown/docs.md · Data model: https://datasportsapi.com/markdown/reference.md
