Skip to content Skip to sidebar Skip to footer

Youtube Api: Adding Videos To A Playlist With The New 32 Character Playlist Id

I've been struggling with what I thought would be a simple task: Adding a video to a youtube playlist. I've got the uri and video id, so this should work, right? uri = 'http://gdat

Solution 1:

Solution 2:

For the best result, I'd suggest you to use Data API v3

There is a great Python example that accomplished what you are trying to do. 'https://developers.google.com/youtube/v3/docs/playlistItems/insert#examples'

This should get you started really quick.

Solution 3:

I think that the best practice is always use the prefix PL:

from this article:

http://apiblog.youtube.com/2012/08/playlists-now-with-more-pl.html

While we will continue to support using unprefixed playlist IDs as metadata or in API request URLs for the time being, at some point in the future we may require the “PL” prefix to be used whenever a playlist ID is provided. We’ll provide additional guidance if we do decide to stop supporting requests with unprefixed playlist IDs.

but problems have been reported

https://groups.google.com/forum/#!topic/youtube-api-gdata/0c6dorRZ7bg

I believe that if you use the PL prefix and you get an error, then you must report a possible bug

Post a Comment for "Youtube Api: Adding Videos To A Playlist With The New 32 Character Playlist Id"