

A caption track is associated with exactly one YouTube video.ĭownloads a caption track. Note: This method has been deprecated and is no longerĪ caption resource represents a YouTube caption track. For example, you can retrieve events associated with a particular channel or with the user's own channel. Returns a list of channel activity events that match the request criteria. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.įor more information about this resource, see its resource representation and list of properties. The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, uploading a video, and so forth.

You can provide an OAuth 2.0 token in either of the following ways: The API supports the OAuth 2.0 authentication protocol. For example, a request to retrieve a user's uploaded videos may also contain private videos if the request is authorized by that specific user. In addition, some API methods for retrieving resources may support parameters that require authorization or may contain additional metadata when requests are authorized. You must also send an authorization token for any request that retrieves the authenticated user's private data. You must send an authorization token for every insert, update, and delete request. Your API key is available in the Developer Console's API Access pane for your project. The following requirements apply to YouTube Data API requests:Įvery request must either specify an API key (with the key parameter) or provide an OAuth 2.0 token. The guide also lists one or more supported methods ( LIST, POST, DELETE, etc.) for each resource type and explains how to use those methods in your application. For each resource type, the guide lists one or more data representations, and resources are represented as JSON objects.

A resource represents a type of item that comprises part of the YouTube experience, such as a video, a playlist, or a subscription. This reference guide explains how to use the API to perform all of these operations. The API also supports methods to insert, update, or delete many of these resources. The lists below identify the different types of resources that you can retrieve using the API. The YouTube Data API lets you incorporate functions normally executed on the YouTube website into your own website or application.
