Upload captions
upload_captionsAdd a captions track to a YouTube video from a local subtitle file or inline SRT/VTT content, with options to set language, name, and replace existing tracks.
Instructions
Add a captions track (.srt, .vtt or other YouTube-supported format) to a video, from a file on this computer or inline content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Track name shown to viewers; usually empty. | |
| channel | No | Which connected channel: channel ID (UC...), @handle or name. Omit to use the default channel. | |
| content | No | Caption file contents, e.g. SRT text. | |
| is_draft | No | ||
| language | No | BCP-47 language, e.g. "en", "hi", "es". | en |
| video_id | Yes | ||
| file_path | No | ||
| replace_existing | No | Overwrite an existing uploaded track with the same language and name (default: add a new track). |