0

我能找到的是:https ://developers.google.com/youtube/analytics/sample-requests#channel_country_viewcounts

这样做意味着我们必须查询世界上的每个国家,然后进行排序。

4

1 回答 1

0

您可以在内容所有者报告和频道报告中按频道拉取排名靠前的国家/地区。我已包含以下链接,向您展示如何获取报告。

频道报告

文档(检查“国家”维度报告): https ://developers.google.com/youtube/analytics/v1/channel_reports#Reports

API Explorer(无需编写代码即可测试 API 调用的好工具): https ://developers.google.com/apis-explorer/#p/youtubeAnalytics/v1/youtubeAnalytics.reports.query?ids=channel%253D%253DCHANNEL_ID&start-date =2010-03-01&end-date=2013-07-31&metrics=views%252CestimatedMinutesWatched%252CaverageViewDuration%252CaverageViewPercentage%252CsubscribersGained&dimensions=country&sort=-estimatedMinutesWatched&_h=3&

API 请求:获取 https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3DCHANNEL_ID&start-date=2010-03-01&end-date=2013-07-31&metrics=views%2CestimatedMinutesWatched% 2CaverageViewDuration%2CaverageViewPercentage%2CsubscribersGained&dimensions=country&sort=-estimatedMinutesWatched&key= {YOUR_API_KEY}

内容所有者报告

内容所有者报告文档(查看“国家”维度报告): https ://developers.google.com/youtube/analytics/v1/content_owner_reports#Reports

API Explorer 链接(无需编写代码即可测试 API 调用的好工具): https ://developers.google.com/apis-explorer/#p/youtubeAnalytics/v1/youtubeAnalytics.reports.query?ids=contentOwner%253D%253DCMS_ID&start-日期=2009-01-27&end-date=2013-08-08&metrics=views&dimensions=country&filters=channel%253D%253DCHANNEL_ID&sort=-views&_h=3&

这就是 HTTP 请求:GET https://www.googleapis.com/youtube/analytics/v1/reports?ids=contentOwner%3D%3DCMS_ID&start-date=2009-01-27&end-date=2013-08-08&metrics= views&dimensions=country&filters=channel%3D%3DCHANNEL_ID&sort=-views&key= {YOUR_API_KEY}

于 2013-08-20T22:11:39.660 回答