list subscribers from channel

Can I get a list of all subscribers from a channel that's not mine? I.e. I want to get all subscribers from pewdiepie channel. Today, with the Youtube API v3, I can get his subscriptions, but I do not found any documentations about get his subscribers. Anyone knows something about it? Thanks in advance.

Upvotes: 2

Views: 3055

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 117281

Subscribers is a list of the people currently subscribed to a channel.

If you check Channels resource returned by channel.list the best you can do is get the subscriberCount. So no you can not get a list of the subscribers to a channel. This has nothing to do with if you own the channel or not the data does not appear to be exposed by the API.

Background info:

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.

Request subscriptions for a channel i do not own

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

Response

{
 "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."
 }
}

The YouTube API will not return subscriptions for a channel that the authenticated user does not own.

Upvotes: 1

Related Questions