如何获取 YouTube 播放列表观看次数?
有谁知道这个网站如何能够获取 YouTube 播放列表的历史观看数据? 根据我的研究,YouTube API 甚至不允许您获取当前的播放列表视图(我可能是错的)。
我说的是播放列表观看次数,而不是添加到播放列表中的视频的观看次数(您可以查看观看次数 此处 例如,在左侧 - 在桌面上)。
我们如何才能访问此类数据?
Does anyone know how this website is able to get historical views data for YouTube playlists?
From my research, YouTube API doesn't even let you get the current playlist views (I might be wrong).
I am talking about the playlist views, not the views from videos that were added to the playlist (you can see the view count here for example, on the left side - on desktop).
How can we get access to this type of data?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
YouTube Data API v3 再次不提供一项基本功能。
我建议您使用我的 开源 YouTube 操作 API。事实上,通过请求 JSON 文档 https://yt.lemnoslife.com/playlists? part=statistics&id=PLAYLIST_ID 包含
item["statistics"]["viewCount"]
整数,你的问题是解决了。您最多可以请求
maxResults
(当前为 50)个播放列表,其中 id 中用逗号分隔播放列表 ID,例如:https://yt.lemnoslife.com/playlists?part=statistics&id=PLAYLIST_ID_0,PLAYLIST_ID_1,...,PLAYLIST_ID_49您还可以通过添加
snippet< 来请求播放列表的标题/code> 到
部分
,例如:https://yt.lemnoslife.com/playlists?part=snippet,statistics& id=PLAYLIST_IDOne more time YouTube Data API v3 doesn't provide a basic feature.
I would recommend you to use my open-source YouTube operational API. Indeed by requesting the JSON document https://yt.lemnoslife.com/playlists?part=statistics&id=PLAYLIST_ID containing
item["statistics"]["viewCount"]
integer, your problem is solved.You can request up to
maxResults
(currently 50) playlists separating playlist ids by a comma in id, example: https://yt.lemnoslife.com/playlists?part=statistics&id=PLAYLIST_ID_0,PLAYLIST_ID_1,...,PLAYLIST_ID_49You can also request the title of the playlist by adding
snippet
topart
, example: https://yt.lemnoslife.com/playlists?part=snippet,statistics&id=PLAYLIST_ID