Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Youtube API V3: Filter my subscribers by channels

$
0
0

So I am building a web app whereby I want to check if certain channels (users) are subscribed to an certain (authed) channel via the API.

Obviously the subscriptions/list API has restrictions when trying to retrieve mySubscribers=true and it simple wouldn't be feasible for large channels. Also the number of users I want to check is dynamic, and so iterating over them and checking from their perspective (I have auth tokens) seems a little intensive.

What I have noticed is that the forChannelId filter works to filter a users subscriptions, but not for filtering a channels subscribers.

Is this possible at all?

Ideally the query:

https://youtube.googleapis.com/youtube/v3/subscriptions?part=subscriberSnippet&forChannelId=xxxxxxx%2Cyyyyyy&mySubscribers=true&key=[YOUR_API_KEY]

Would return the authed channels subscribers filtered by the forChannelId channels, the same way as the it does for subscriptions:

https://youtube.googleapis.com/youtube/v3/subscriptions?part=subscriberSnippet&forChannelId=xxxxxxx%2Cyyyyyy&mine=true&key=[YOUR_API_KEY]

Is there any alternative way to achieve such a check in a single bulk call, without having to loop over users I want to check and spending potentially unnecessary quota points?


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>