Assistance de TMDB

Is there any way to retrieve a list of movies by genre alone and if not, is creating your own database using parsed api data allowed or is it against the terms of use?

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

Jump to last post

You can use discover method of our API. E.g. to get a list of English action movies sorted by popularity:

https://api.themoviedb.org/3/discover/movie?api_key=###&language=en-US&sort_by=popularity.desc&include_adult=false&include_video=false&page=1&with_genres=28&with_original_language=en

Notes:

  1. Discover methods return only first 10 000 matches. If you need more movies, you must split your discover query into smaller batches, e.g. by years.
  2. You can get the list of all valid genre ids by using genre API method.
  3. "&with_genres=" parameter supports more genre ids being comma (,) or pipe (|) separated. Comma's are treated like an AND and query while pipe's are an OR.

Amazing! This is exactly what I was looking for. Thanks for your help!

I also want to send search word with genre just like you send in search api https://developers.themoviedb.org/3/search/search-movies E.g q="War" and with_genre=12

You can't limit search to specific genres, "&with_genres=" works only with TV and movie discover methods.

All I've seen is non-answers and highly-technical talk about "API" and things ordinary people don't know about.

@andricperez said:
All I've seen is non-answers and highly-technical talk about "API" and things ordinary people don't know about.

Making API Requests is usually done by code programmers, developing APPs and data query tools.
An API Request where there is a small typing error, a comma or space more or less, does not usually work.
But it is not an impossible subject to understand.
I, for one, don't program code.
I'm just a curious 71 year old.
Who for strange reasons decided to have fun with this subject.
If you found any non-answers and want some clarification, feel free to ask. :-)

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