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
- Goolge Youtube API Key
- Channel ID
- 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
- YOUR_API_KEY = Google Youtube API Key
- USER_NAME = username of channel
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 only need to change prefix form Channel ID, from UC to UUChannel ID = UC..............
Playlist ID = UU..............
In the end of url you can see Playlist ID = UUgc00bfF_PvO_2AvqJZHXFg
CONCLUSION
Channel ID and Playlist ID is looks similar but its different when your ChannelID start with UC your PlaylistID should be start with UU
Channel ID = UCgc00bfF_PvO_2AvqJZHXFg
Playlist ID = UUgc00bfF_PvO_2AvqJZHXFg
Or you can USE TOOL : https://commentpicker.com/youtube-channel-id.php
Comments
Post a Comment