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->listSearch('id,snippet', array(
'q' => $_GET['q'],
'maxResults' => 20,
'type' => 'video'
'videoCategoryId' => 'what-do-i-put-here?',
));
I've been going through their documentation for an hour and can't seem to find any reference to how I find out what the various category's ids are. In my case I'm looking for the videoCategoryId for music....