YouTube API V3: Where can i find a list of each 'videoCategoryId'?

后端 未结 3 512
慢半拍i
慢半拍i 2020-12-04 20:06

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         


        
3条回答
  •  一整个雨季
    2020-12-04 20:32

    At the bottom of: https://developers.google.com/youtube/v3/docs/videoCategories/list is a 'try it now' section.

    Put 'snippet' in the field labelled 'part' and add a region code, e.g. GB or US in the field labelled 'regionCode'.

    This will bring back a full list of categories for your chosen region.

提交回复
热议问题