Upload Caption
upload_captionAdd a caption track to one of your videos from a caption file, such as SRT or VTT.
Instructions
Add a caption track to one of your videos from a caption file, such as SRT or VTT.
Quota: 400 units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the caption file, at most 100 MB. | |
| name | No | Track name viewers see next to the language. Two tracks in one language need different names. | |
| draft | No | Upload it hidden from viewers. | |
| video | Yes | Video ID or URL. | |
| language | Yes | Language of the captions, e.g. en or en-US. | |
| my_channel | No | Which of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | asr: made by YouTube's speech recognition. forced: shown when no track is chosen. | |
| name | No | ||
| draft | No | Not shown to viewers yet. | |
| status | No | serving, syncing, or failed. | |
| language | Yes | ||
| video_id | Yes | ||
| updated_at | No |