Keyboard Shortcuts
Advanced Search
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.
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
Also note that a number of filters support being comma (,) or pipe (|) separated. Comma's are treated like an AND and query while pipe's are an OR.
Can't find a movie or TV show? Login to create it.
Login
Sign Up
Want to rate or add this item to a list?
Not a member?
Sign up and join the community
Reply by ticao2 š§š· pt-BR
on March 14, 2019 at 12:50 PM
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