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...
Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.
Vill du betygsätta denna artikel eller lägga till den i en lista?
Inte medlem?
Svar från Travis Bell
den 18 september 2015 vid 10:57 AM
Hi jswiss,
Are you trying to use the website or API to do this?
Svar från jswiss
den 18 september 2015 vid 4:09 PM
Hey Travis:
I will be using the API. For testing purposes, I was playing around with the URI.
Svar från Travis Bell
den 18 september 2015 vid 4:42 PM
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:
You can turn that into an OR query by switching the comma into a pipe:
You can combine these filters with any others listed in the docs, including all of the many sort options.
Cheers.
Svar från jswiss
den 19 september 2015 vid 8:36 AM
Amazing! Thanks Travis, and sorry for all the beginner questions!