YouTube数据API-频道统计中的视频数量和“上传”中的视频数量不匹配。播放列表
我需要从特定的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论