I was hoping there was going to be some documentation I could find on this. I want my users to able to search by genre type and it is hard to pick out genre types if they aren't listed. For example: genre ID: 1 would relate to Action movies, Genre ID: 2 would relate to Comedy movies. Can anyone point me in the right direction to find this out?
找不到电影或节目?登录并创建它吧。
ticao2 🇧🇷 pt-BR 的回复
于 2019 年 10 月 23 日 8:58上午
See here:
Genre IDs
Movies
https://developers.themoviedb.org/3/genres/get-movie-list
https://api.themoviedb.org/3/genre/movie/list?api_key=[MY_KEY]&language=en-US
TV Show
https://developers.themoviedb.org/3/genres/get-tv-list
https://api.themoviedb.org/3/genre/tv/list?api_key=[MY_KEY]&language=en-US
legend5123 的回复
于 2019 年 10 月 23 日 1:01下午
Thank you for your help!
MrRobot1413 的回复
于 2021 年 04 月 22 日 2:09上午
looks like it's been changed
{"genres":[{"id":28,"name":"Action"},
{"id":12,"name":"Adventure"},
{"id":16,"name":"Animation"},
{"id":35,"name":"Comedy"},
{"id":80,"name":"Crime"},
{"id":99,"name":"Documentary"},
{"id":18,"name":"Drama"},
{"id":10751,"name":"Family"},
{"id":14,"name":"Fantasy"},
{"id":36,"name":"History"},
{"id":27,"name":"Horror"},
{"id":10402,"name":"Music"},
{"id":9648,"name":"Mystery"},
{"id":10749,"name":"Romance"},
{"id":878,"name":"Science Fiction"},
{"id":10770,"name":"TV Movie"},
{"id":53,"name":"Thriller"},
{"id":10752,"name":"War"},
{"id":37,"name":"Western"}]}
superboy97 的回复
于 2021 年 04 月 22 日 3:40上午
Where do you see a change ? This is the exact same genre list for movies.
visux 的回复
于 2022 年 05 月 21 日 9:21上午
thanks, this will serve me well
PT 100 的回复
于 2022 年 05 月 21 日 11:39下午
FYI, I think you misspelled "genre" above.
ticao2 🇧🇷 pt-BR 的回复
于 2022 年 05 月 22 日 8:25上午
I didn't translate. Google did the translation. :-)
And keep translating like this.
pt Gênero = en Gender
But I agree, it must be wrong.
I will correct. Thanks
swap665 的回复
于 2024 年 11 月 26 日 1:21下午
const genreId = { 28: "Action", 12: "Adventure", 16: "Animation", 35: "Comedy", 80: "Crime", 99: "Documentary", 18: "Drama", 10751: "Family", 14: "Fantasy", 36: "History", 27: "Horror", 10402: "Music", 9648: "Mystery", 10749: "Romance", 878: "Science Fiction", 10770: "TV Movie", 53: "Thriller", 10752: "War", 37: "Western" };
Thank Me later "REACT DEVELOPERS" 😊