youtube - 列出 channel 中的订阅者

标签 youtube google-api youtube-api youtube-data-api

我可以从不是我的 channel 获得所有订阅者的列表吗?即我想从pewdiepie channel 获得所有订阅者。今天,有了Youtube API v3,我可以获得他的订阅,但是没有找到有关获得他的订阅者的任何文档。有人知道吗?
提前致谢。

最佳答案

订阅者是当前订阅 channel 的人员列表。

如果您检查channel.list返回的Channels resource,则最好的方法是获取SubscriberCount。因此,不,您无法获取 channel 的订户列表。这与您是否拥有 channel 无关,或者该数据似乎没有被API公开。

背景信息:

A subscription resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.



请求订阅我不拥有的 channel
GET https://www.googleapis.com/youtube/v3/subscriptions?part=snippet%2CcontentDetails&channelId=UC4rasfm9J-X4jNl9SvXp8xA&key={YOUR_API_KEY}

响应
{
 "error": {
  "errors": [
   {
    "domain": "youtube.subscription",
    "reason": "subscriptionForbidden",
    "message": "The requester is not allowed to access the requested subscriptions."
   }
  ],
  "code": 403,
  "message": "The requester is not allowed to access the requested subscriptions."
 }
}

YouTube API将不会为经过身份验证的用户不拥有的 channel 返回订阅。

关于youtube - 列出 channel 中的订阅者,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46966252/

相关文章:

asp.net - tinymce - 无法嵌入视频

适用于电子表格的 Android Google Api

youtube - 使用 YouTube 开发者 key 提取媒体关键字

ios - Google 数据 API - 访问未配置错误

javascript - 无法进行跨域 Ajax 调用

javascript - 网络 worker : A solution for stutter-free Youtube video?

php - 如何为使用YouTube数据API v3 php上传的视频启用获利功能?

youtube - 如何在 Windows8 html/javascript 应用程序中播放 YouTube 视频?

javascript - Google Map API 警告消息不支持 IE9

javascript - 如何读取和修改已绘制的 Google 图表上的轴?