# List caption tracks

Returns caption tracks for required `video_reference`. Optional `caption_style` and `language_code` control formatting and language.

- Platform: YouTube V2
- Request: `GET https://api.toolzerhub.com/v2/youtube/subtitles`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/youtube-v2/video/get-you-tube-subtitles

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `video_reference` | query | yes | string | YouTube video ID or a full watch, youtu.be, Shorts, or embed URL. |
| `caption_style` | query | no | enum: json3, srv1, srv2, srv3, ttml, vtt, srt | Caption output style. Defaults to srv1 when omitted. |
| `language_code` | query | no | string | Language code used to localize text and audio results. |

## Example request

```bash
curl "https://api.toolzerhub.com/v2/youtube/subtitles?video_reference=<video_reference>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
