The Movie Database Support Forum

on discover API , https://www.themoviedb.org/documentation/api/discover

there are some examples on how to 'sort' movies. I m looking a query to sort the movies by 'genre' . does anyone know how we can do that ?

3 Antworten (Seite 1 von 1)

Jump to last post

Hi @tornado1979,

There is no way to sort by genre, no. I'm not clear on how you'd expect the results to be returned in that case, can you give me some background info on what you're looking for?

Hi Travis, thanks for your interest.

i would expect the final outcome to be like below, movies in a list based on their category (action,animation etc), but as i see the structure of the json data and genres are on a separate json, it seems not possible.

..... and so on

{ movie:1 category: Action, title: title1}, { movie:2 category: Action, title: title2}, { movie:3 category: Animation, title: title3}, { movie:4 category: Animation, title: title4}, { movie:5 category: Animation, title: title5}, { movie:6 category: Comedy, title: title6}, { movie:7 category: Comedy, title: title7},

Understood.

Correct, since we return multiple genre objects this wouldn't really be possible.

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