Dear Sir/Madam
Can I filter or search movie by genre? I want to search movie by genre while client easy to find more than search other.
Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.
Doriți să evaluați sau să adăugați acest element într-o listă?
Nu eşti membru?
Răspuns de ticao2 🇧🇷 pt-BR
pe data de 14 martie 2019 la ora 12:50PM
Yes, it is possible.
First you need to know what the Gender IDs are.
They will be used as a filter or parameter in the search.
https://developers.themoviedb.org/3/genres/get-movie-list
https://api.themoviedb.org/3/genre/movie/list?api_key=[MY_KEY]&language=en-US
Second, use the Filter or Genre parameter in your Request.
https://developers.themoviedb.org/3/discover/movie-discover
For example, using Action (28) and Adventure (12) and Crime (80).
https://api.themoviedb.org/3/discover/movie?api_key=[MY_KEY]&language=en-US&page=1&primary_release_year=2019&with_genres=28,12,80