Sprijin Bază de date filme (The Movie Database)

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?

8 răspunsuri (pe pagina 1 din 1)

Jump to last post

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

MOVIE
Action          28
Adventure       12
Animation       16
Comedy          35
Crime           80
Documentary     99
Drama           18
Family          10751
Fantasy         14
History         36
Horror          27
Music           10402
Mystery         9648
Romance         10749
Science Fiction 878
TV Movie        10770
Thriller        53
War             10752
Western         37

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

TV SHOW
Action & Adventure  10759
Animation           16
Comedy              35
Crime               80
Documentary         99
Drama               18
Family              10751
Kids                10762
Mystery             9648
News                10763
Reality             10764
Sci-Fi & Fantasy    10765
Soap                10766
Talk                10767
War & Politics      10768
Western             37

Thank you for your help!

@ticao2 said:

See here:
Gender 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

MOVIE
Action            28
Adventure     12
Animation     16
Comedy            35
Crime         80
Documentary       99
Drama         18
Family            10751
Fantasy           14
History           36
Horror            27
Music         10402
Mystery           9648
Romance           10749
Science Fiction   878
TV Movie      10770
Thriller      53
War               10752
Western           37
TV SHOW
Action & Adventure    10759
Animation         16
Comedy                35
Crime             80
Documentary           99
Drama             18
Family                10751
Kids              10762
Mystery               9648
News              10763
Reality               10764
Sci-Fi & Fantasy  10765
Soap              10766
Talk              10767
War & Politics        10768
Western               37

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"}]}

@MrRobot1413 said:

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"}]}

Where do you see a change ? This is the exact same genre list for movies.

thanks, this will serve me well

@ticao2 said:

See here:

Gender IDs

FYI, I think you misspelled "genre" above.

@pt100 said:

@ticao2 said:

See here:

Gender IDs

FYI, I think you misspelled "genre" above.

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

@ticao2 said:

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

MOVIE
Action            28
Adventure     12
Animation     16
Comedy            35
Crime         80
Documentary       99
Drama         18
Family            10751
Fantasy           14
History           36
Horror            27
Music         10402
Mystery           9648
Romance           10749
Science Fiction   878
TV Movie      10770
Thriller      53
War               10752
Western           37

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

TV SHOW
Action & Adventure    10759
Animation         16
Comedy                35
Crime             80
Documentary           99
Drama             18
Family                10751
Kids              10762
Mystery               9648
News              10763
Reality               10764
Sci-Fi & Fantasy  10765
Soap              10766
Talk              10767
War & Politics        10768
Western               37

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" 😊

Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.

Globale

s focalizează bara de căutare
p deschide meniul profilului
esc închide o fereastră deschisă
? deschide fereastra cu scurtături de la tastatură

Pe paginile media

b mergi înapoi (sau la părinte atunci când este cazul)
e mergi la pagina de editare

Pe paginile sezoanelor filmelor seriale

(săgeată dreapta) mergi la sezonul următor
(săgeată stânga) mergi la sezonul precedent

Pe paginile episoadelor filmelor seriale

(săgeată dreapta) mergi la episodul următor
(săgeată stânga) mergi la episodul precedent

Pe toate paginile de imagini

a deschide fereastra pentru adăugarea de imagini

Pe toate paginile de editare

t deschide selectorul de traduceri
ctrl+ s trimite formularul

Pe paginile de discuții

n crează o discuție nouă
w comută starea de vizionare
p comută publică/privată
c comută închisă/deschisă
a deschide activitatea
r răspunde la discuție
l mergi la ultimul răspuns
ctrl+ enter trimite mesajul
(săgeată dreapta) pagina următoare
(săgeată stânga) pagina precedentă

Setări

Doriți să evaluați sau să adăugați acest articol într-o listă?

Autentificare