is there any API for params and genre i want to search from my value on filtered my chosen genre
Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.
Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;
Δεν είσαι μέλος;
Απάντηση από τον/την ticao2 🇧🇷 pt-BR
στις 17 Μάρτιος 2025 στις 11:24 ΜΜ
I assume you are referring to Discover API Request.
https://developer.themoviedb.org/reference/discover-movie
Using Search you cannot filter by Genre.
Discover - Filter by Genre
First you need to have the list of Genres with their IDs.
The list of Genre IDs, for Movies and TV, can be found here:
get/genre/movie/list - https://developers.themoviedb.org/3/genres/get-movie-list
get/genre/tv/list - https://developers.themoviedb.org/3/genres/get-tv-list
For example, the Comedy Genre ID for movies is 35.
Knowing the Genre ID you want, make an API Request of type:
get / discover / movie
https://developers.themoviedb.org/3/discover/movie-discover
get / discover / tv
https://developers.themoviedb.org/3/discover/tv-discover
And use the with_genres and/or without_genres parameter.
More than one genre can be searched using the comma or pipe feature
AND (with Comma) &with_genres=35,37,80
OR (with Pipe) &with_genres=35|37|80
You cannot mix AND with OR. Either one or the other.
You can use any other filter simultaneously.
&year=, &sort_by=, &with_cast= etc...
Example
Απάντηση από τον/την chinguunForce
στις 17 Μάρτιος 2025 στις 11:38 ΜΜ
i want to search movie from filtered by genre eg: https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=pt-BR&page=1&with_genres=35,37,80&query={searhedValue}
Απάντηση από τον/την ticao2 🇧🇷 pt-BR
στις 17 Μάρτιος 2025 στις 11:47 ΜΜ
Do you want to search using a movie title?
As I said, it is not possible.
The Search API request does not have the ability to filter the response using the Genre parameter.
And the Discover API request does not have the ability to use a query for title, &query={searhedValue}.
Απάντηση από τον/την ticao2 🇧🇷 pt-BR
στις 17 Μάρτιος 2025 στις 11:51 ΜΜ
By the way, the possible filters for each are listed on the pages of each of them.
You can see for yourself the available/possible filters.
https://developer.themoviedb.org/reference/search-movie
https://developer.themoviedb.org/reference/discover-movie
Απάντηση από τον/την chinguunForce
στις 18 Μάρτιος 2025 στις 12:14 ΕΊΜΑΙ
okay got it thank you.