Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Watch Later playlist url via YouTube API

Is it possible to get the link for a users watch later playlist using the YouTube api? I'm trying to generate a url to start playing the watch later playlist from the first video, so that the final link would be something like youtube.com/watch?v=videoID&list=playlist. I'm using the YouTube Data API v3.

like image 415
CupOfTea696 Avatar asked Feb 23 '14 21:02

CupOfTea696


2 Answers

Unfortunately, it looks like as of this month Google has deprecated access to the Watch Later playlist via the public API:

The channel resource's contentDetails.relatedPlaylists.watchHistory and contentDetails.relatedPlaylists.watchLater properties now contain values of HL and WL, respectively, for all channels. (The properties are only visible to an authorized user retrieving data about the user's own channel.)

In addition, requests to retrieve playlist details (playlists.list) or playlist items (playlistItems.list) for a channel's watch history or watch later playlist now return empty lists. This behavior is true for the new values, HL and WL, as well as for any watch history or watch later playlist IDs that your API Client may have already stored.

See the full revision history for more information.

like image 148
Dawngerpony Avatar answered Sep 20 '22 02:09

Dawngerpony


You should do a channels->list with mine = true.

Then from the channel response, you will get the watchlater-playlistID.

like image 24
Ibrahim Ulukaya Avatar answered Sep 18 '22 02:09

Ibrahim Ulukaya