gpt4 book ai didi

youtube - 通过 YouTube API 观看稍后播放列表网址

转载 作者:行者123 更新时间:2023-12-04 17:00:37 25 4
gpt4 key购买 nike

是否可以使用 YouTube api 获取用户稍后观看播放列表的链接?我正在尝试生成一个 url 以从第一个视频开始播放稍后观看的播放列表,以便最终链接类似于 youtube.com/watch?v=videoID&list=playlist。我正在使用 YouTube 数据 API v3。

最佳答案

不幸的是,从本月开始,Google 似乎已弃用通过公共(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.



full revision history了解更多信息。

关于youtube - 通过 YouTube API 观看稍后播放列表网址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21975200/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com