2

I need to access Youtube channel's demographics data with oauth.

One problem is that Youtube api called insight only provides zipped folders with csv files.

While I can probably download the zip, unzip, access the file, and delete the original once I get the data I need, I was wondering if there is any other way to get youtube channel's demographics data.

4

1 回答 1

0

我相信是的,使用新的 YouTube Analytics API:

https://developers.google.com/youtube/analytics/v1/available_reports

从文档:

频道报告

下表列出了可通过 API 访问的不同类型的渠道报告。要检索频道报告,请将 ids 参数值设置为 channel==USER_ID,其中 USER_ID 指定当前经过身份验证的用户的 YouTube 用户 ID。

我认为这就是你想要的报告:

dimensions: country

metrics: views, comments, favoritesAdded, favoritesRemoved, likes, dislikes, shares, subscribersGained, subscribersLost

filters: video

或者这个:

dimensions: ageGroup, gender

metrics: viewerPercentage

filters: country video(,country)

这个例子展示了如何调用 API:

https://developers.google.com/youtube/analytics/v1/sample-application

于 2013-02-01T01:17:29.897 回答