Peppershaker
Peppershaker

Reputation: 121

Youtube - How to browse all channels in a given category?

For example, there are 884 channels under beauty and fashion, however, Youtube only shows about 50 of them. How do i get the complete list? Either through API or web.

https://www.youtube.com/channels/beauty_fashion

Thanks,

Upvotes: 2

Views: 7226

Answers (2)

Akshar Patel
Akshar Patel

Reputation: 9378

Visit this site: http://www.channelcrawler.com/

You can list the channel in selected category and many other options.

Upvotes: 1

jlmcdonald
jlmcdonald

Reputation: 13667

The first thing to do is to get the Guide Category ID that you're interested in. If you do a call to

https://www.googleapis.com/youtube/v3/guideCategories?part=snippet&hl=en&regionCode=US&key={YOUR_API_KEY}

where the hl parameter is the language and the regionCode is the country code (as some categories may not be available for particular languages/regions), you'll get a list of all the categories and their IDs.

For example, that call tells us that the Beauty and Fashion guide category ID is GCQmVhdXR5ICYgRmFzaGlvbg. With that ID, we can then do a channels list call:

https://www.googleapis.com/youtube/v3/channels?part=snippet&maxResults=50&categoryId=GCQmVhdXR5ICYgRmFzaGlvbg&key={YOUR_API_KEY}

This will give you 50 channels in that category. It will also give you a 'nextPageToken' ... you do the same request as above, but add "&pageToken={WHATEVER THAT NEXT PAGE TOKEN VALUE IS}" to get the next 50, and so on.

You can retrieve up to 500 that way ... that's the limit through the API.

Note that all of these calls require an API key from console.developers.google.com

Upvotes: 5

Related Questions