The Movie Database Support Forum

I'm making a react App that uses the movie API, but I have trouble understanding how to use the genre API to filter out the genre ID?

Is there a specific step-by-step guide for this? I'm very noobish at this.

1 Antwort (Seite 1 von 1)

Jump to last post

Every genre has a corresponding ID.
On this link, using your Key, you can obtain this list of correspondence.
https://developers.themoviedb.org/3/genres/get-movie-list
An API Request for Movies.
Another API Request for TV Show.
If you specify a language-Country, you will receive genres in that language.

So, when an API Request is made using the Gender parameter, what is specified in the Request is the Gender ID, not the Gender word.
So, when a user of your react App requests movies with the Genre Action, your react App will convert Action to 28 and send the API Request with Genre ID 28.

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