I'm new to programming, so I don't really know how to formulate this question, thanks
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 27 octobre 2022 Ă 08h05
Making a Discover API Request.
https://developers.themoviedb.org/3/discover/movie-discover
Numerous filters are available and among them filter by Genre.
Discover - Filter by Genre
Tip: For TV Show the procedure is similar.
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
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.53,27
OR (with Pipe) &with_genres=35|53|27
You can use any other filter simultaneously. &year=, &sort_by=, &with_cast= etc...
Example
Réponse de ultraCodingNoob456
le 2 août 2023 à 14h15
tysm this really helped my project. Btw what do the last 2 numbers mean seperated by commas. Thank you in advance
Réponse de robbie3999
le 2 août 2023 à 17h10
Hi @ultraCodingNoob456, read the previous post:
Réponse de ultraCodingNoob456
le 2 août 2023 à 21h55
Oh I'm blind thanks