关于youtube:列出频道中的订阅者

list subscribers from channel

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


订户是当前订阅频道的人员列表。

如果您检查channel.list返回的Channels资源,则您能做的最好的事情就是获取SubscriberCount。因此,不,您无法获取频道的订户列表。这与您是否拥有频道无关,或者该数据似乎没有被该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.

请求订阅我不拥有的频道

1
GET https://www.googleapis.com/youtube/v3/subscriptions?part=snippet%2CcontentDetails&channelId=UC4rasfm9J-X4jNl9SvXp8xA&key={YOUR_API_KEY}

响应

1
2
3
4
5
6
7
8
9
10
11
12
13
{
"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将不会为经过身份验证的用户不拥有的频道返回订阅。