Instantly share code, notes, and snippets.

Embed
What would you like to do?
youtube api video category id list
2 - Autos & Vehicles
1 - Film & Animation
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
From youtube upload page
2 - Cars & Vehicles
23 - Comedy
27 - Education
24 - Entertainment
1 - Film & Animation
20 - Gaming
26 - How-to & Style
10 - Music
25 - News & Politics
29 - Non-profits & Activism
22 - People & Blogs
15 - Pets & Animals
28 - Science & Technology
17 - Sport
19 - Travel & Events
@sanbnl

This comment has been minimized.

Copy link

sanbnl commented Sep 6, 2016

I am interested in documentaries and i would like to know if there is a way to get subcategories id for example documentaries about econmy, nature, history... ??

i would be very appreciated if someone could help.

@arjunkori

This comment has been minimized.

Copy link

arjunkori commented Feb 23, 2017

how do get this categories via youtube api.

@shakee93

This comment has been minimized.

Copy link

shakee93 commented Mar 8, 2017

@arjunkori take look at this stack question here

@diogobruni

This comment has been minimized.

Copy link

diogobruni commented Jun 3, 2017

Thank you!

@ishaqashraf

This comment has been minimized.

Copy link

ishaqashraf commented Oct 8, 2017

how to get all channels of particular category and country ?using API

@edithconner

This comment has been minimized.

Copy link

edithconner commented Jan 4, 2018

These are only categories, but we have more topics to record! I prefer to use kparser.com/youtube-video-ideas for understanding what the YouTube tags my competitors have, and then I can see all the suggested ideas based on my personal goals! That's amazing!

@arduino731

This comment has been minimized.

Copy link

arduino731 commented May 31, 2018

some of those are wrong videocategoryid here new id number updated see as id number
/**

  • API response
    */
    {
    "kind": "youtube#videoCategoryListResponse",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/E-Ds3ITKSrXDUMT84TJGPhLUbjw"",
    "items": [
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/Xy1mB4_yLrHy_BmKmPBggty2mZQ"",
    "id": "1",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Film & Animation",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/UZ1oLIIz2dxIhO45ZTFR3a3NyTA"",
    "id": "2",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Autos & Vehicles",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/nqRIq97-xe5XRZTxbknKFVe5Lmg"",
    "id": "10",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Music",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/HwXKamM1Q20q9BN-oBJavSGkfDI"",
    "id": "15",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Pets & Animals",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/9GQMSRjrZdHeb1OEM1XVQ9zbGec"",
    "id": "17",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Sports",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/FJwVpGCVZ1yiJrqZbpqe68Sy_OE"",
    "id": "18",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Short Movies",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/M-3iD9dwK7YJCafRf_DkLN8CouA"",
    "id": "19",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Travel & Events",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/WmA0qYEfjWsAoyJFSw2zinhn2wM"",
    "id": "20",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Gaming",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/EapFaGYG7K0StIXVf8aba249tdM"",
    "id": "21",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Videoblogging",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/xId8RX7vRN8rqkbYZbNIytUQDRo"",
    "id": "22",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "People & Blogs",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/G9LHzQmx44rX2S5yaga_Aqtwz8M"",
    "id": "23",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Comedy",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/UVB9oxX2Bvqa_w_y3vXSLVK5E_s"",
    "id": "24",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Entertainment",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/QiLK0ZIrFoORdk_g2l_XR_ECjDc"",
    "id": "25",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "News & Politics",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/r6Ck6Z0_L0rG37VJQR200SGNA_w"",
    "id": "26",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Howto & Style",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/EoYkczo9I3RCf96RveKTOgOPkUM"",
    "id": "27",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Education",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/w5HjcTD82G_XA3xBctS30zS-JpQ"",
    "id": "28",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Science & Technology",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/SalkJoBWq_smSEqiAx_qyri6Wa8"",
    "id": "29",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Nonprofits & Activism",
    "assignable": true
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/lL7uWDr_071CHxifjYG1tJrp4Uo"",
    "id": "30",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Movies",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/WnuVfjO-PyFLO7NTRQIbrGE62nk"",
    "id": "31",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Anime/Animation",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/ctpH2hGA_UZ3volJT_FTlOg9M00"",
    "id": "32",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Action/Adventure",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/L0kR3-g1BAo5UD1PLVbQ7LkkDtQ"",
    "id": "33",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Classics",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/pUZOAC_s9sfiwar639qr_wAB-aI"",
    "id": "34",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Comedy",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/Xb5JLhtyNRN3AQq021Ds-OV50Jk"",
    "id": "35",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Documentary",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/u8WXzF4HIhtEi805__sqjuA4lEk"",
    "id": "36",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Drama",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/D04PP4Gr7wc4IV_O9G66Z4A8KWQ"",
    "id": "37",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Family",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/i5-_AceGXQCEEMWU0V8CcQm_vLQ"",
    "id": "38",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Foreign",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/rtlxd0zOixA9QHdIZB26-St5qgQ"",
    "id": "39",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Horror",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/N1TrDFLRppxZgBowCJfJCvh0Dpg"",
    "id": "40",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Sci-Fi/Fantasy",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/7UMGi6zRySqXopr_rv4sZq6Za2E"",
    "id": "41",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Thriller",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/RScXhi324h8usyIetreAVb-uKeM"",
    "id": "42",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Shorts",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/0n9MJVCDLpA8q7aiGVrFsuFsd0A"",
    "id": "43",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Shows",
    "assignable": false
    }
    },
    {
    "kind": "youtube#videoCategory",
    "etag": ""DuHzAJ-eQIiCIp7p4ldoVcVAOeY/x5NxSf5fz8hn4loSN4rvhwzD_pY"",
    "id": "44",
    "snippet": {
    "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
    "title": "Trailers",
    "assignable": false
    }
    }
    ]
    }
@ErturkOzturk

This comment has been minimized.

Copy link

ErturkOzturk commented Sep 23, 2018

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

And this is array for query:

let cats = ['', 'Film & Animation', 'Autos & Vehicles', '', '', '', '', '', '', '', 'Music', '', '', '', '', 'Pets & Animals', '', 'Sports', 'Short Movies', 'Travel & Events', 'Gaming', 'Videoblogging', 'People & Blogs', 'Comedy', 'Entertainment', 'News & Politics', 'Howto & Style', 'Education', 'Science & Technology', 'Nonprofits & Activism', 'Movies', 'Anime/Animation', 'Action/Adventure', 'Classics', 'Comedy', 'Documentary', 'Drama', 'Family', 'Foreign', 'Horror', 'Sci-Fi/Fantasy', 'Thriller', 'Shorts', 'Shows', 'Trailers']

console.log(cats[10]); // Music
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment