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

Group: Players

Videos about a player published on official channels and hosted elsewhere (YouTube): the link, title, host and the host’s thumbnail. DataSportsAPI hosts no video itself.

Plans: Every plan, Free included.

Note: Most players have none, which gives an empty array. Link to the video on its host, or embed it there when embeddable is true.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | DataSportsAPI player 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 issued this player 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/players/{id}/videos"
```

TypeScript:

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

Python:

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

Go:

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

CLI:

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

## Example response

```json
{ "data": [ { "title": "…", "description": null, "url": "https://www.youtube.com/watch?v=…", "provider": "youtube",
      "thumbnailUrl": "https://i.ytimg.com/vi/…/maxresdefault.jpg", "embeddable": true } ],
  "meta": { "count": 1 } }
```

---

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/players/videos/ · Group: https://datasportsapi.com/markdown/docs/players.md · All docs: https://datasportsapi.com/markdown/docs.md · Data model: https://datasportsapi.com/markdown/reference.md
