标签: youtube youtube-api youtube-analytics youtube-analytics-api
我正在尝试使用start-index参数对数据进行分页,我在循环结构中递增start-index值,它适用于第一和第二循环,但每次都在3循环失败(我知道那里)是更多视频)。
我的分页错了吗?
请求https://www.googleapis.com/youtube/analytics/v1/reports?sort=-views&max-results=99&dimensions=video&start-date=2014-05-29&start-index=199&ids=channel%3D%3DUCNHqb1IRxQ5WBsWtO53JL2g&metrics=views%2Ccomments%2Clikes%2Cdislikes%2CvideosAddedToPlaylists%2CvideosRemovedFromPlaylists%2Cshares%2CfavoritesAdded%2CfavoritesRemoved%2CestimatedMinutesWatched%2CaverageViewDuration%2CaverageViewPercentage%2CannotationClickThroughRate%2CannotationCloseRate%2CannotationImpressions%2CannotationClickableImpressions%2CannotationClosableImpressions%2CannotationClicks%2CannotationCloses%2CsubscribersGained%2CsubscribersLost&alt=json&end-date=2015-10-07时的HttpError 400 返回“查询不受支持。请查看https://developers.google.com/youtube/analytics/v1/available_reports上的文档以获取支持的查询列表。”
请求https://www.googleapis.com/youtube/analytics/v1/reports?sort=-views&max-results=99&dimensions=video&start-date=2014-05-29&start-index=199&ids=channel%3D%3DUCNHqb1IRxQ5WBsWtO53JL2g&metrics=views%2Ccomments%2Clikes%2Cdislikes%2CvideosAddedToPlaylists%2CvideosRemovedFromPlaylists%2Cshares%2CfavoritesAdded%2CfavoritesRemoved%2CestimatedMinutesWatched%2CaverageViewDuration%2CaverageViewPercentage%2CannotationClickThroughRate%2CannotationCloseRate%2CannotationImpressions%2CannotationClickableImpressions%2CannotationClosableImpressions%2CannotationClicks%2CannotationCloses%2CsubscribersGained%2CsubscribersLost&alt=json&end-date=2015-10-07时的HttpError 400
返回“查询不受支持。请查看https://developers.google.com/youtube/analytics/v1/available_reports上的文档以获取支持的查询列表。”