YouTube数据API-频道统计中的视频数量和“上传”中的视频数量不匹配。播放列表

发布于 2025-01-24 11:57:53 字数 1280 浏览 1 评论 0原文

我需要从特定的YouTube频道检索完整的视频。 我使用 youtube数据API v3 google> google> google-api-python-client < /代码>软件包。

基本上,我获得了“上传”播放列表的ID,然后使用playlistItems.list api方法。问题是,YouTube API似乎没有返回完整的视频列表。 如果我尝试获取频道统计信息(使用channels.list方法),它说频道具有32356个视频。但是,playlistitems.list仅返回19989年的视频。

频道ID是UCDL_GZZR6BTKI45EHFGADUW。当我执行 chandels.list request 它返回statistics.videocount = 32356。但是,当我使用 playListItems.listems.list method>方法 它说19989年总共有视频(pageinfo.totalresults字段)。

因此,我想知道为什么频道统计数据和视频数量之间有如此大的区别?我以为可能有些视频是私人的,或者被删除,并且频道统计数据没有更新,但是如此巨大的差异感觉过多。

I need to retrieve full set of videos from particular Youtube channel.
I do this using Youtube Data API v3 and google-api-python-client package.

Basically, I get ID of "uploads" playlist, then use playlistItems.list API method. The problem is, Youtube API doesn't seem to return full list of videos.
If I try to get channel statistics ( using channels.list method ) it says channel has 32356 videos. However, playlistItems.list returns just 19989 videos.

Channel ID in question is UCdl_gZZR6BtKi45eHFGAduw. When I perform channels.list request
it returns statistics.videoCount = 32356. However, when I use playlistItems.list method
it says there are 19989 videos in total ( pageInfo.totalResults field ).

So I'm wondering why such a big difference between channel stats and number of videos? I was thinking that maybe some videos are private, or were deleted and channel stats wasn't updated, but such a big difference feels excessive.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文