Download

Downloads a caption track

5 variables
0 variables

Downloads a caption track. The caption track is returned in its original format unless the request specifies a value for the tfmt parameter and in its original language unless the request specifies a value for the tlang parameter

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • See, edit, and permanently delete your YouTube videos, ratings, comments and captions
  • View and manage your assets and associated content on YouTube

Input

This building block consumes 5 input parameters

  = Parameter name
  = Format

id STRING Required

The id parameter identifies the caption track that is being retrieved. The value is a caption track ID as identified by the id property in a caption resource

onBehalfOf STRING

ID of the Google+ Page for the channel that the request is be on behalf of

onBehalfOfContentOwner STRING

Note: This parameter is intended exclusively for YouTube content partners.

The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner

tfmt ENUMERATION

The tfmt parameter specifies that the caption track should be returned in a specific format. If the parameter is not included in the request, the track is returned in its original format

tlang STRING

The tlang parameter specifies that the API response should return a translation of the specified caption track. The parameter value is an ISO 639-1 two-letter language code that identifies the desired caption language. The translation is generated by using machine translation, such as Google Translate