Is there a way to get the “Watch Later” playlist u

2019-02-12 16:08发布

I was wondering if this is available in v3 (I know it's possible with v2)?

I've tried using watch_later as the id and mine=true in a playlist request. The watch_later playlist is not returned in the generic playlists list results when specifying mine=true.

1条回答
一纸荒年 Trace。
2楼-- · 2019-02-12 16:50

You can get the IDs of you special private playlists with an authenticated request to

GET https://www.googleapis.com/youtube/v3/channels?part=contentDetails&mine=true&key={YOUR_API_KEY}

One of these is your watchLater playlist. Note the playlist id and use it in another authenticated request to get a list of all items on your watchLater list:

GET https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId={YOUR_PLAYLIST_ID}&key={YOUR_API_KEY}
查看更多
登录 后发表回答