Getting YouTube IDs

In order to create the proper YouTube Data API requests certain YouTube values are needed. The next section will detail these values and explain how to get them.

User ID

This is the YouTube username. If you are going to show videos from your YouTube account you can find this value in the upper right-hand corner if you are logged in or in the URL to your channel. E.g. the following is the URL for my channel:

http://www.youtube.com/user/markIndigoRose?feature=mhee

My username can be seen after the '/user/' value in the URL and is markIndigoRose

Channel ID

This is the YouTube Channel ID. Some YouTube accounts contain a Channel ID instead of a User ID. You can find this value in the URL. For example, the following is the URL for the Google Developers channel:

https://www.youtube.com/channel/UC_x5XG1OV2P6uZZ5FSM9Ttw

The channel ID can be seen after the '/channel/' value in the URL and is UC_x5XG1OV2P6uZZ5FSM9Ttw

Video ID

This represents the ID of a specific video that has been uploaded to YouTube. You can get the video ID from the URL of a video. E.g. for the following YouTube video URL:

http://www.youtube.com/watch?v=qAShPzHEu1Q1

The video id is represented by the v parameter. So in this case the video ID is: qAShPzHEu1Q1

Playlist ID

This is the ID of a playlist on YouTube. This value can be found in the URL for the playlist that you want to use. E.g. the URL for my Andromo playlist is as follows:

http://www.youtube.com/user/markIndigoRose#p/c/C9834EB1F487C712

That playlist id is after the /c/ value in the URL. So my Andromo Playlist's ID is: C9834EB1F487C712

Updated YouTube accounts may have playlist URLs like so:

http://www.youtube.com/playlist?list=PLC9834EB1F487C712

In that case the playlist id is after the ?list=PL. So the playlist ID would be: C9834EB1F487C712