I\'m using the Youtube API V3 but can\'t find documentation for how to filter by category:
Here\'s my code:
$results = $youtube->search->listSe
Video categories are region specific -- that's why the category list service requires either a category ID or a region, but not both. This endpoint:
https://www.googleapis.com/youtube/v3/videoCategories?part=snippet®ionCode={two-character-region}&key={YOUR_API_KEY}
will return all categories, along with their ids, for a given region. So as Ikai Lan pointed out in the comments, the ID for music is '10' in the US and, in fact, in all regions where this category is allowed; but there may be some regions where it isn't allowed, or some regions that aren't supported at all.