The Movie Database-ondersteuning

Can endpoints be filtered by Genre?

For example, the Now Playing (https://api.themoviedb.org/3/movie/now_playing) or the Search Movie (https://api.themoviedb.org/3/search/movie) endpoints return only movies by specific genre.

In this way: https://api.themoviedb.org/3/movie/now_playing?genre=animation returns only animation movies that are Now Playing.

Thanks.

1 antwoord (op pagina 1 van 1)

Jump to last post

@gabrielizalo said:
Can endpoints be filtered by Genre?
Can endpoints be filtered by Genre?
For example, the Now Playing (https://api.themoviedb.org/3/movie/now_playing)
or the Search Movie (https://api.themoviedb.org/3/search/movie) endpoints return only movies by specific genre.
In this way: https://api.themoviedb.org/3/movie/now_playing?genre=animation returns only animation movies that are Now Playing.
Thanks.

Using Search Movies is not possible.
In the case of Now Playing it is possible.
https://developer.themoviedb.org/reference/movie-now-playing-list
As the text on the page states, it is based on Discover.

Note
This call is really just a discover call behind the scenes. If you would like to tweak any of the default filters head over and read about discover.

https://developer.themoviedb.org/reference/discover-movie
Just specify the release_date values.
For example:

https://api.themoviedb.org/3/discover/movie?page=1&region=BR&release_date.gte=2024-10-02&release_date.lte=2024-10-30

And you can specify one or more genre IDs, separated by commas.

https://api.themoviedb.org/3/discover/movie?page=1&region=BR&release_date.gte=2024-10-02&release_date.lte=2024-10-30&with_genres=35,16

Film of tv-serie niet gevonden? Meld je aan om deze toe te voegen.

Wereldwijd

s focus op zoekbalk
p open profielmenu
esc sluit een open venster
? open sneltoetsen venster

Op media pagina's

b ga terug (of ga naar bovenliggend item)
e ga naar beweken

Op tv-seizoenspagina's

(rechter pijl) ga naar volgende seizoen
(linker pijl) ga naar vorig seizoen

Op pagina's met tv-series

(rechter pijl) ga naar volgende aflevering
(linker pijl) ga naar vorige aflevering

Op alle afbeeldingspagina's

a open venster afbeelding toevoegen

Op alle bewerkte pagina's

t open vertaalmenu
ctrl+ s verstuur formulier

Op discussiepagina's

n start nieuwe discussie
w Verander kijk status
p privé of openbaar
c schakelen sluiten/openen
a open activiteit
r beantwoord discussie
l ga naar laatste antwoord
ctrl+ enter verstuur uw bericht
(rechter pijl) volgende pagina
(linker pijl) vorige pagina

Instellingen

Want to rate or add this item to a list?

Inloggen