使用此 API 调用时:
https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel==UCaGKtfnhSkDsIbcyVVUOL6A&start-date=2017-06-27&end-date=2017-06-27&metrics=views,comments,likes,dislikes,shares,estimatedMinutesWatched,averageViewDuration,averageViewPercentage,annotationClickThroughRate,annotationCloseRate,subscribersGained,subscribersLost&dimensions=day&filters=video==qstWdXxFmcU
我们获得的观看次数不正确。例如,下面通过 API 链接的视频有 173 次观看,但 native 仅显示 123 次观看:
https://www.youtube.com/watch?v=qstWdXxFmcU
最佳答案
来自 view metrics section的 Youtube 分析文档,它表示以与 watch time report 相同的方式报告 View 这告诉我们以下内容:
Note: Analytics views data is based in Pacific Standard Time, updated once a day, and has a delay of up to 72 hours. The numbers you see in Analytics reports might be different from the numbers you see on the video page, channel page, Video Manager, or other sources.
关于Youtube API 返回的浏览量超过了 native 列出的浏览量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45133248/