更新时间:2023-12-03 18:02:40
*** 分析 API 仅适用于您自己频道中的视频,或者,如果您是内容所有者,则适用于您的任何频道或已声明版权的视频.它反映了您可以在 https://www.***.com/analytics 上看到的大部分数据,该数据仅供您自己使用.
*** Analytics API is only for videos on your own channel, or, if you are a content owner, any of your channels or claimed videos. It reflects most of the data that you can see on https://www.***.com/analytics Likewise, that data is only available to yourself.
可用的是 *** Video API 的统计"部分.您可以在此处获取观看页面上可用的数据.例如:
What is available though, is the "statistics" part of the *** Video API. Here you can get the data that's available on the watch page. For example:
GET https://www.googleapis.com/***/v3/videos?part=statistics&id=9bZkp7q19f0&key={YOUR_API_KEY}
退货
{
"kind": "***#video",
"etag": "\"gMjDJfS6nsym0T-NKCXALC_u_rM/cCAW8VtIzXW5zJKDbjuP9BMWnt4\"",
"id": "9bZkp7q19f0",
"statistics": {
"viewCount": "2072823300",
"likeCount": "8559755",
"dislikeCount": "1090659",
"favoriteCount": "0",
"commentCount": "5247867"
}
}
以下是对 *** API 的引用,底部有一个简洁的尝试"部分,供您使用:https://developers.google.com/***/v3/docs/videos/list#try-it
Here is the reference to the *** API with a neat little "Try it" section in the bottom to play around with: https://developers.google.com/***/v3/docs/videos/list#try-it