list_captions
Retrieve caption tracks for any YouTube video by providing its video ID. Get available captions or an empty list if none exist, with optional part selection for id and snippet details.
Instructions
Retrieves a list of caption tracks for a YouTube video. Returns an empty list if no captions exist, or fails if the video ID is invalid or not found.
Args: video_id: The YouTube video ID for which to return caption tracks. part: Comma-separated list of caption resource parts to include. Valid parts are 'id' and 'snippet'. Default: 'id,snippet'.
Returns: Object with 'data' (caption list), 'error' (if any), and 'successful' boolean.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | ||
| video_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||