YouTube's Watch Later was launched earlier this year on the YouTube website and the embedded players. The feature lets you keep track of interesting videos you come across but don't have time to watch at the moment.
The 'Watch Later' list is stored as a playlist. However, that list is not included in a user's playlist feed.
Developers those who have been seeking for ways to interact with the Watch Later list via the YouTube Data API can now do so, YouTube API Team announced today.
"As explained in the documentation, the YouTube Data API treats the Watch Later list like a playlist, and the normal playlist operations (additions, retrievals, modifications) can all be performed on the Watch Later list," revealed Jeff Posnick of YouTube API Team.
Adding, "While every YouTube user has their own Watch Later list, it's important to keep in mind that by default it's a private playlist, so it will not normally be accessible unless you're making an authenticated request as the list's owner."
The developers documentation explains, that by default, the
watch_later playlist is an empty, private playlist. To determine whether a user's
watch_later playlist is accessible or if it has entries, retrieve the user's profile and check for the presence of a
<gd:feedlink> tag with a
rel attribute value of
If the tag is present, then you can access the user's
watch_later playlist via the API using the same authentication credentials as you used to retrieve the user's playlist. The tag's
href attribute will specify the feed URL for the user's
watch_later playlist, and its
countHint attribute specifies the number of videos in that list.
A sample tag is shown below:
<gd:feedlink rel="http://gdata.youtube.com/schemas/2007#user.watchlater" href="https://gdata.youtube.com/feeds/api/users/username/watch_later?v=2" counthint="17" />