YouTube 分析 API 是否只是为您提供频道的统计信息? [英] Does YouTube Analytics API just give you statistics of your channel?

查看:26
本文介绍了YouTube 分析 API 是否只是为您提供频道的统计信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有办法获取其他频道的统计信息.我只能看到我的视频的统计数据.当我使用其他 contentOwners 或频道时,它说这是禁止的.

I am wondering if there is a way that I can get statistics of other channels. I only can see the statistics of my videos. When I use other contentOwners or channels, it says it is forbidden.

有些统计数据是为您自己准备的,例如所有自己上传的内容的总观看次数(以及更多)"但其他一些像前 10 名 – 内容所有者观看次数最多的视频"应该适用于所有人,对吗?

Some of the statistics are for yourself like "Total viewcounts (and more) for all self-uploaded content" But some others like "Top 10 – Most watched videos for a content owner" should work for everyone, right?

有谁知道如何获取不同渠道的统计信息的解决方案?

Does anyone know the solution that how can I get statistics of different channels?

谢谢

推荐答案

YouTube 分析 API 仅适用于您自己频道中的视频,或者,如果您是内容所有者,则适用于您的任何频道或已声明版权的视频.它反映了您可以在 https://www.youtube.com/analytics 上看到的大部分数据,该数据仅供您自己使用.

YouTube 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.youtube.com/analytics Likewise, that data is only available to yourself.

可用的是 YouTube Video API 的统计"部分.您可以在此处获取观看页面上可用的数据.例如:

What is available though, is the "statistics" part of the YouTube Video API. Here you can get the data that's available on the watch page. For example:

GET https://www.googleapis.com/youtube/v3/videos?part=statistics&id=9bZkp7q19f0&key={YOUR_API_KEY}

退货

{
  "kind": "youtube#video",
  "etag": "\"gMjDJfS6nsym0T-NKCXALC_u_rM/cCAW8VtIzXW5zJKDbjuP9BMWnt4\"",
  "id": "9bZkp7q19f0",
  "statistics": {
    "viewCount": "2072823300",
    "likeCount": "8559755",
    "dislikeCount": "1090659",
    "favoriteCount": "0",
    "commentCount": "5247867"
  }
}

以下是对 YouTube API 的引用,底部有一个简洁的尝试"部分,供您使用:https://developers.google.com/youtube/v3/docs/videos/list#try-it

Here is the reference to the YouTube API with a neat little "Try it" section in the bottom to play around with: https://developers.google.com/youtube/v3/docs/videos/list#try-it

这篇关于YouTube 分析 API 是否只是为您提供频道的统计信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆