YouTube Playlists
A playlist is a collection of videos that can be viewed sequentially and shared with others. By default, playlists are public and visible to other users, but they can be public or private. They are usually associated with a channel.
Playlists request allows list, insert, update and delete methods. However, we will look into the list request in this session.
List request returns a list of playlists based on the search query parameters.
It has a quota cost of 1 per request.
API Documentation: https://developers.google.com/youtube/v3/docs/playlists
Sample Request and Response
Request
- HTTP Request: GET https://www.googleapis.com/youtube/v3/playlists
- Required Parameter to specify properties to include in the: part =
snippet
,contentDetails
- Required one of these parameters: channelId,
NOTE: We can do search youtube by a keyword, Search a specific channel by a keyword, and many others.
Response
- Check the video of this article to see what the response looks like.
POSTMAN Collection
The POSTMAN collection can be downloaded from the below GitHub repository.
Overall
We understood the YouTube Data API playlists request and have successfully executed a list request.