有没有办法获得“稍后观看"?使用 YouTube API v3 的播放列表? [英] Is there a way to get the "Watch Later" playlist using YouTube API v3?

查看:19
本文介绍了有没有办法获得“稍后观看"?使用 YouTube API v3 的播放列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道这在 v3 中是否可用(我知道在 v2 中可以)?

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

我尝试在播放列表请求中使用 watch_later 作为 id 和 mine=true.指定 mine=true 时,通用播放列表列表结果中不会返回 watch_later 播放列表.

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.

推荐答案

更新

自 2016 年 9 月 12 日起,请稍后观看无法再检索 YouTube Data API v3 的观看历史记录.

Update

As of Sep 12 2016, watch later and watch history can no longer be retrieved YouTube Data API v3.

您可以通过经过身份验证的请求获取您的特殊私人播放列表的 ID

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}

其中之一是您的 watchLater 播放列表.记下播放列表 ID,并在另一个经过身份验证的请求中使用它来获取 watchLater 列表中所有项目的列表:

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}

这篇关于有没有办法获得“稍后观看"?使用 YouTube API v3 的播放列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆