Obtain Youtube Channel ID and Playlist ID

If you want to develop android app or website to view data from youtube you can read this documentation https://developers.google.com/youtube/v3/

There are three part you must prepare before you obtain data from youtube API

  1. Goolge Youtube API Key
  2. Channel ID
  3. Playlist ID

Now we only talking about Channel ID, and Playlist ID, you can read my previous post how to get Google Youtube API Key

# Channel ID is identifier for your youtube channel, we can get description, list of playlist, banner by using this ID

https://www.googleapis.com/youtube/v3/channels?key={YOUR_API_KEY}&forUsername={USER_NAME}&part=id

In example I use this channel, I search from youtube and get this channel url

https://www.youtube.com/user/boyceavenue

We can know the USER_NAME from this channel is boyceavenue, then you can get Channel ID by open this url

https://www.googleapis.com/youtube/v3/channels?key=YourAPIKeyShouldBeHereXXXXXX&forUsername=boyceavenue&part=id

The result will be like picture above, from that result we know that channel with username boyceavenue have Channel ID = UCgc00bfF_PvO_2AvqJZHXFg

# Playlist ID is identifier for list down all video owned by a channel,  to get this ID you can open a channel url , in example this channel

https://www.youtube.com/user/boyceavenue

Select tab VIDEOS then select PLAY ALL

 

In your web browser url address you will see url like this

https://www.youtube.com/watch?v=CT93cTlCLYU&list=UUgc00bfF_PvO_2AvqJZHXFg

In the end of url you can see Playlist ID = UUgc00bfF_PvO_2AvqJZHXFg

Leave a Reply

Your email address will not be published. Required fields are marked *