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.
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de ticao2 🇧🇷 pt-BR
le 14 mars 2019 Ă 12h50
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