Assistance de TMDB

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!

6 réponses (sur la page 1 sur 1)

Jump to last post

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.

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?

You all don't somehow provide a full DB dump do you?

No, we do not. API access only.

Cheers.

Travis:

Two more quick follow-ups:

  1. Is there any way to return a full data set instead of a particular page?
  2. Using discover, I can "filter" by a genre via "with_genres" but I don't see any way to push it a little further with an actor as well (my original example question). You suggested I could there 90%, though. Further suggestion?
  1. Is there any way to return a full data set instead of a particular page?

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.

  1. Using discover, I can "filter" by a genre via "with_genres" but I don't see any way to push it a little further with an actor as well (my original example question). You suggested I could there 90%, though. Further suggestion?

Discover doesn't support any type of cast or person search. For this you'd have to build something on your own.

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.

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion