Videos
Learn about the video resource and how it is used to retrieve information about a YouTube video.
The video resource represents a YouTube video and can be used to get a video’s statistics. The statistics can include the view count, like count, dislike count, or the comment count of a video.
Supported methods
Some methods supported by the API for the video resource are listed below:
list: Returns a list of videos specified in the API call that match the request parameters.insert: Uploads a video to a YouTube channel with an option to set the video’s metadata.delete: Deletes a YouTube video.rate: Adds or removes a like or dislike rating for a video.
Note: The resource also supports methods like
getRatingandupdate. For this lesson, we’ll take a look at the methods mentioned above.
Let’s look at each method in detail with the help of a few examples.
The list method
It returns a list of videos specified in the API call that match the request parameters. The videos can be retrieved using the id parameter, specifying the YouTube video ID. We can also retrieve a list of videos liked or disliked by the user authorizing the API request.
Let’s ...