The Movie Database Support Forum

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 Antwort (Seite 1 von 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

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden