Menu

Get playlists and playlist videos belong to a YouTube channel using youtube API with php

I have been playing around YouTube API for a while, and was bit difficult for a while to get my head around it. But it all starting to make sense in my tiny brain. I was able to get few example working with successfully. Below is an example of how to get all the playlist from a channel.

Download the Google PHP client library from GitHub. and include it in your script.

Below is the code to access the playlists.

It’s that easy.

Now we will see the code to get the videos from a playlist.

 

Leave a comment