The Movie Database Support

Hi there:

Is it possible to search for films that include multiple genres? For example, an action animation, or a comedy mystery? I played around a bit with the URI but couldn't get it working...

4 svar (på sida 1 av 1)

Jump to last post

Hi jswiss,

Are you trying to use the website or API to do this?

Hey Travis:

I will be using the API. For testing purposes, I was playing around with the URI.

Hi jswiss,

Ok, with the API you can use /discover/movie to do this. An example query to search for films that are both a animation AND action, you would do this:

https://api.themoviedb.org/3/discover/movie?api_key=###&with_genres=16,28

You can turn that into an OR query by switching the comma into a pipe:

    https://api.themoviedb.org/3/discover/movie?api_key=###&with_genres=16|28

You can combine these filters with any others listed in the docs, including all of the many sort options.

Cheers.

Amazing! Thanks Travis, and sorry for all the beginner questions!

Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.

Globala

s fokus på sökrutan
p öppna profilmenyn
esc stäng ett öppet fönster
? öppna tangentbordsgenväg fönstret

På mediasidor

b gå tillbaka (eller till förälder när det är tillämpligt)
e gå till redigerings sidan

På tv-säsongssidor

(höger pil) gå till nästa säsong
(vänster pil) gå till den föregående säsongen

På tv-avsnittssidor

(höger pil) gå till nästa avsnitt
(vänster pil) gå till föregående avsnitt

På alla bildsidor

a öppna lägg till bild fönstret

På alla redigeringssidor

t öppna översättnings väljaren
ctrl+ s skicka förmulär

På diskussionssidor

n skapa ny diskussion
w växla sedd-status
p växla offentligt/privat
c växla stäng/öppna
a öppna aktivitet
r svara på diskussionen
l gå till det senaste svaret
ctrl+ enter skicka ditt meddelande
(höger pil) nästa sida
(vänster pil) föregående sida

Inställningar

Vill du betygsätta denna artikel eller lägga till den i en lista?

Logga in