Пречице на тастатури
Напредна претрага
Searching for the genre API...
@SerenEflatun said: Genre API Searching for the genre API...
Hmmm, maybe this is what you are looking for.
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
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.
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
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=pt-BR&page=1&with_genres=35,37,80 https://api.themoviedb.org/3/discover/tv?api_key=THE_KEY&language=pt-BR&page=1&with_genres=35,37,80
Не можеш да нађеш филм или серију? Пријави се да додаш.
Пријави се
Региструј се
Желите ли да оцените или додате ову ставку у листу?
Нисте члан?
Пријавите се и прикључите се заједници
Одговор од ticao2 🇧🇷 pt-BR
дана 20. мај 2024. у 7:53 AM
Hmmm, maybe this is what you are looking for.
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