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

后端 未结 3 522
慢半拍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:53

    Using YouTube API v3 video category id list by Dinesh Gowtham Prathap at https://gist.github.com/dgp/1b24bf2961521bd75d6c

    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
    

提交回复
热议问题