youtubeyoutube-apiyoutube-javascript-apiyoutube-channels

Get list of channels subscribed by user using userid, without authorization


Previously we are using GData V2 api to get list of channels subscribed by user using userid as follows,

https://gdata.youtube.com/feeds/api/users/userid/subscriptions?v=2&alt=json&max-results=50

But in V3 api, to get list of channels subscribed by user, authorization is compulsory, anyone know any other approach for this. Thanks.


Solution

  • In V3 Api you can get list of subscriptions by using channel id of that user.

    GET https://www.googleapis.com/youtube/v3/subscriptions?part=snippet&channelId=*channelid*&maxResults=20&key={YOUR_API_KEY}