如何获取 YouTube 播放列表观看次数?

发布于 2025-01-13 18:17:39 字数 387 浏览 2 评论 0原文

有谁知道这个网站如何能够获取 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦一生花开无言 2025-01-20 18:17:39

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_ID

One 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_49

You can also request the title of the playlist by adding snippet to part, example: https://yt.lemnoslife.com/playlists?part=snippet,statistics&id=PLAYLIST_ID

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文