Hi!
I'd like to be able to search for a movie on multiple keys. For example, I'd like to be able to get a movie result list which has a specific genre and cast.
For example: Show movies with genres "Action" and "Adventure" (passing genre ids) with cast "Brad Pitt" (passing cast ID).
I don't see this as possible with how the API v3 stands now, but maybe I'm missing something.
I could technically make it work but it'd require searching for a movie response on a particular genre, then individually filtering each result by checking the cast of each result. Obviously this isn't very efficient and would require a massive number of requests to the API.
Thanks!
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Travis Bell
le 31 mai 2013 à 10h13
Hi Chris,
You can use the discover method to get you 90% there. The only thing missing is being able to add any kind of text search (or person id) along side the discover method. Discover is more about being a movie data search than text or cast.
Other than that though, you'd have to build this yourself. There is nothing planned to take discover the extra mile you're looking for.
Réponse de Chris Cooper
le 31 mai 2013 à 10h25
Thanks Travis, I've started looking into the Discover method. There's many more pieces of data I'd like to filter on than the two examples I provided, but of course - have to start somewhere. You all don't somehow provide a full DB dump do you?
Réponse de Travis Bell
le 31 mai 2013 à 10h27
No, we do not. API access only.
Cheers.
Réponse de Chris Cooper
le 31 mai 2013 à 12h10
Travis:
Two more quick follow-ups:
Réponse de Travis Bell
le 31 mai 2013 à 12h12
You referring to doing that with the discover method? No. We return results only, you'd have to go off and query each ID for the full details.
Discover doesn't support any type of cast or person search. For this you'd have to build something on your own.
Réponse de Chris Cooper
le 31 mai 2013 à 12h18
Thanks!
For #1) I was simply referring to the general result set being paginated instead of a full set. For example, if I get the Discover results down to perhaps 45 items, I end up with 3 "pages" (max, 20 items per page it seems). This is important because, as you've suggested, I'd have to build something myself - and having to build a full result set to then cull means I have to gather the full result set to start with. The pagination, as I'm sure you're aware, applies to more than just discover.