This is the current list of YouTube video category IDs:
1 | Film & Animation |
2 | Autos & Vehicles |
10 | Music |
15 | Pets & Animals |
17 | Sports |
18 | Short Movies |
19 | Travel & Events |
20 | Gaming |
21 | Videoblogging |
22 | People & Blogs |
23 | Comedy |
24 | Entertainment |
25 | News & Politics |
26 | Howto & Style |
27 | Education |
28 | Science & Technology |
29 | Nonprofits & Activism |
30 | Movies |
31 | Anime/Animation |
32 | Action/Adventure |
33 | Classics |
34 | Comedy |
35 | Documentary |
36 | Drama |
37 | Family |
38 | Foreign |
39 | Horror |
40 | Sci-Fi/Fantasy |
41 | Thriller |
42 | Shorts |
43 | Shows |
44 | Trailers |
How to retrieve YouTube video category IDs?
- Source: To get YouTube video category IDs, run an API request to the YouTube Data API, with a request URL of
https://www.googleapis.com/youtube/v3/videoCategories?part=snippet®ionCode=US
. Substitute in theregionCode
of interest. - Documentation: https://developers.google.com/youtube/v3/docs/videoCategories/list
Hello Ana,
Nice blog!
Is it possible to get the list of YouTube channels for a specific Category ID?
For instance, Gaming, 20, I need the list of all channels. Is it possible?
I don't think you can do this because this list categorizes videos, not channels. You could make a request like
https://www.googleapis.com/youtube/v3/search?part=snippet&type=video&maxResults=25&videoCategoryId=20
but that would just return all the videos with a gaming category, not the channels. There used to be a categoryId for channels, too, but this page says it's been deprecated.