According to YouTube’s docs:
https://developers.google.com/youtube/2.0/developers_guide_protocol_playlists
I can go to the following URL to retrieve a list of videos in a youtube playlist:
https://gdata.youtube.com/feeds/api/playlists/8BCDD04DE8F771B2?v=2
Works well right? Well no… I’ve been unable to find a single playlist that actually works besides the one supplied by youtube. I have a playlist here: http://www.youtube.com/playlist?list=PLABD2A8CE079F70FA. It would be logical that if I simply take the ID of the playlist and plug it into the gdata URL, it should return valid data, correct? Nope… doesn’t work:
https://gdata.youtube.com/feeds/api/playlists/PLABD2A8CE079F70FA
It appears that the API doesn’t work with any playlist that starts with their new “PLA” format. What do I need to do, to get the youtube API working with the new playlist system?
Well I figured it out. The playlist API is designed with the OLD Youtube Playlist IDs in mind, the ones without the “PL” at the start. So if you want to retrieve information about the videos in a playlist, you need to drop the PL from the Playlist ID and then it will work fine…
Example:
https://gdata.youtube.com/feeds/api/playlists/ABD2A8CE079F70FA
VS:
https://gdata.youtube.com/feeds/api/playlists/PLABD2A8CE079F70FA