JamesG
JamesG

Reputation: 1601

YouTube Data API: check if an user subscribed to me

I can't seem to see in the docs if there is a way, given an user ID, if that user follows my channel or not.

I saw this API:

https://developers.google.com/youtube/v3/docs/subscriptions/list?apix_params=%7B%22part%22%3A%5B%22snippet%2CcontentDetails%22%5D%2C%22mine%22%3Atrue%7D

but that seems to only list my subscriptions. Unless I misconfigured it.

Is this even possible?

Upvotes: 0

Views: 947

Answers (1)

stvar
stvar

Reputation: 6985

Querying Subscriptions.list with mine=true will return the list of channels to which you -- the authenticated user -- subscribed.

For the other way around -- i.e. for a list of channels that are subscribers of your channel -- there are two other request parameters: myRecentSubscribers and mySubscribers.

Upvotes: 1

Related Questions