我正在使用 YouTube Analytics API 来检索 channel 的总观看次数。对于小 channel ,总观看次数与 channel “关于”选项卡上可见的数量相匹配。在较大的 channel 上存在巨大差异。例如,一个 channel 通过分析 API 报告 16 亿,而公共(public)页面报告 4.9 亿。为什么有区别?
GET https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3DMINE&start-date=2010-01-01&end-date=2014-10-03&metrics=views%2Ccomments%2CfavoritesAdded%2Clikes%2Cdislikes%2CestimatedMinutesWatched%2CaverageViewDuration&key={YOUR_API_KEY}
最佳答案
可以是之间的区别公众 和私有(private) 查看 .
如果视频有很多观看次数,但公众看不到她,YouTube 不会计算此公开观看次数。(计数器喜欢关于页面。)
YouTube 分析会计算此私有(private)观看次数。
we'll remove view counts from unlisted and private videos so the view count shown for a channel will include only the views from public videos. If you have private or unlisted videos that you want to count towards your channel's view count, you can simply set them to "public" and they will be included in your view count within a day.
source
关于大型 channel 的 YouTube 分析 API 总观看次数关闭?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26183546/