Last active
October 10, 2024 18:49
-
-
Save realChakrawarti/d9834dfeca0fd4d061a169e1a0c6fe8d to your computer and use it in GitHub Desktop.
YouTube Topic Ids
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // import topicIds from "./youtube-topics.json" with { type: "json" }; | |
| // Refer: https://developers.google.com/youtube/v3/docs/search/list | |
| const topicIds = [ | |
| { | |
| id: "/m/04rlf", | |
| topic: "Music", | |
| parent: true, | |
| }, | |
| { | |
| id: "/m/02mscn", | |
| topic: "Christian music", | |
| }, | |
| { | |
| id: "/m/0ggq0m", | |
| topic: "Classical music", | |
| }, | |
| { | |
| id: "/m/01lyv", | |
| topic: "Country", | |
| }, | |
| { | |
| id: "/m/02lkt", | |
| topic: "Electronic music", | |
| }, | |
| { | |
| id: "/m/0glt670", | |
| topic: "Hip hop music", | |
| }, | |
| { | |
| id: "/m/05rwpb", | |
| topic: "Independent music", | |
| }, | |
| { | |
| id: "/m/03_d0", | |
| topic: "Jazz", | |
| }, | |
| { | |
| id: "/m/028sqc", | |
| topic: "Music of Asia", | |
| }, | |
| { | |
| id: "/m/0g293", | |
| topic: "Music of Latin America", | |
| }, | |
| { | |
| id: "/m/064t9", | |
| topic: "Pop music", | |
| }, | |
| { | |
| id: "/m/06cqb", | |
| topic: "Reggae", | |
| }, | |
| { | |
| id: "/m/06j6l", | |
| topic: "Rhythm and blues", | |
| }, | |
| { | |
| id: "/m/06by7", | |
| topic: "Rock music", | |
| }, | |
| { | |
| id: "/m/0gywn", | |
| topic: "Soul music", | |
| }, | |
| { | |
| id: "/m/0bzvm2", | |
| topic: "Gaming", | |
| parent: true, | |
| }, | |
| { | |
| id: "/m/025zzc", | |
| topic: "Action game", | |
| }, | |
| { | |
| id: "/m/02ntfj", | |
| topic: "Action-adventure game", | |
| }, | |
| { | |
| id: "/m/0b1vjn", | |
| topic: "Casual game", | |
| }, | |
| { | |
| id: "/m/02hygl", | |
| topic: "Music video game", | |
| }, | |
| { | |
| id: "/m/04q1x3q", | |
| topic: "Puzzle video game", | |
| }, | |
| { | |
| id: "/m/01sjng", | |
| topic: "Racing video game", | |
| }, | |
| { | |
| id: "/m/0403l3g", | |
| topic: "Role-playing video game", | |
| }, | |
| { | |
| id: "/m/021bp2", | |
| topic: "Simulation video game", | |
| }, | |
| { | |
| id: "/m/022dc6", | |
| topic: "Sports game", | |
| }, | |
| { | |
| id: "/m/03hf_rm", | |
| topic: "Strategy video game", | |
| }, | |
| { | |
| id: "/m/06ntj", | |
| topic: "Sports", | |
| parent: true, | |
| }, | |
| { | |
| id: "/m/0jm_", | |
| topic: "American football", | |
| }, | |
| { | |
| id: "/m/018jz", | |
| topic: "Baseball", | |
| }, | |
| { | |
| id: "/m/018w8", | |
| topic: "Basketball", | |
| }, | |
| { | |
| id: "/m/01cgz", | |
| topic: "Boxing", | |
| }, | |
| { | |
| id: "/m/09xp_", | |
| topic: "Cricket", | |
| }, | |
| { | |
| id: "/m/02vx4", | |
| topic: "Football", | |
| }, | |
| { | |
| id: "/m/037hz", | |
| topic: "Golf", | |
| }, | |
| { | |
| id: "/m/03tmr", | |
| topic: "Ice hockey", | |
| }, | |
| { | |
| id: "/m/01h7lh", | |
| topic: "Mixed martial arts", | |
| }, | |
| { | |
| id: "/m/0410tth", | |
| topic: "Motorsport", | |
| }, | |
| { | |
| id: "/m/07bs0", | |
| topic: "Tennis", | |
| }, | |
| { | |
| id: "/m/07_53", | |
| topic: "Volleyball", | |
| }, | |
| { | |
| id: "/m/02jjt", | |
| topic: "Entertainment", | |
| parent: true, | |
| }, | |
| { | |
| id: "/m/09kqc", | |
| topic: "Humor", | |
| }, | |
| { | |
| id: "/m/02vxn", | |
| topic: "Movies", | |
| }, | |
| { | |
| id: "/m/05qjc", | |
| topic: "Performing arts", | |
| }, | |
| { | |
| id: "/m/066wd", | |
| topic: "Professional wrestling", | |
| }, | |
| { | |
| id: "/m/0f2f9", | |
| topic: "TV shows", | |
| }, | |
| { | |
| id: "/m/019_rr", | |
| topic: "Lifestyle", | |
| parent: true, | |
| }, | |
| { | |
| id: "/m/032tl", | |
| topic: "Fashion", | |
| }, | |
| { | |
| id: "/m/027x7n", | |
| topic: "Fitness", | |
| }, | |
| { | |
| id: "/m/02wbm", | |
| topic: "Food", | |
| }, | |
| { | |
| id: "/m/03glg", | |
| topic: "Hobby", | |
| }, | |
| { | |
| id: "/m/068hy", | |
| topic: "Pets", | |
| }, | |
| { | |
| id: "/m/041xxh", | |
| topic: "Physical attractiveness [Beauty]", | |
| }, | |
| { | |
| id: "/m/07c1v", | |
| topic: "Technology", | |
| }, | |
| { | |
| id: "/m/07bxq", | |
| topic: "Tourism", | |
| }, | |
| { | |
| id: "/m/07yv9", | |
| topic: "Vehicles", | |
| }, | |
| { | |
| id: "/m/098wr", | |
| topic: "Society", | |
| parent: true, | |
| }, | |
| { | |
| id: "/m/09s1f", | |
| topic: "Business", | |
| }, | |
| { | |
| id: "/m/0kt51", | |
| topic: "Health", | |
| }, | |
| { | |
| id: "/m/01h6rj", | |
| topic: "Military", | |
| }, | |
| { | |
| id: "/m/05qt0", | |
| topic: "Politics", | |
| }, | |
| { | |
| id: "/m/06bvp", | |
| topic: "Religion", | |
| }, | |
| { | |
| id: "/m/01k8wb", | |
| topic: "Knowledge", | |
| }, | |
| ]; | |
| let newTopic: Record<string, string> = {}; | |
| topicIds.forEach((topic) => { | |
| newTopic[topic.id] = topic.topic; | |
| }); | |
| console.log(newTopic); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment