Assistance de TMDB

Hello,
I am a student and for my final project (a fake e-commerce website project that is not intended to be put online),
I want to retrieve movie data to create products (DVDs) in my database.
I would like to retrieve movie data using collections large enough to have a substantial sample of products.
I would like to retrieve a list of existing collections, but I haven't found the query to do so.
Moreover, how can I ensure that I do not exceed the allowed number of queries, and that I respect the API usage rules, knowing that I will need a significant amount of data?

Thank you in advance.
JocelynD

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

Jump to last post

@JocelynD said:

Hello,
I am a student and for my final project (a fake e-commerce website project that is not intended to be put online),
I want to retrieve movie data to create products (DVDs) in my database.
I would like to retrieve movie data using collections large enough to have a substantial sample of products.
I would like to retrieve a list of existing collections, but I haven't found the query to do so.

I don't know if I understood correctly, but...

See if this data from a Collection is the data you need.
For example Star Wars Collection
https://www.themoviedb.org/collection/10-star-wars-collection
Using this API Request to get the data from this Collection.
https://api.themoviedb.org/3/collection/10?api_key=THE_KEY&language=en-US

If this data solves your problem then I suggest you download the list of all valid Collection IDs.
https://developer.themoviedb.org/docs/daily-id-exports

http://files.tmdb.org/p/exports/collection_ids_MM_DD_YYYY.json.gz  
Pay attention to the date format. MM_DD_YYYY.  

http://files.tmdb.org/p/exports/collection_ids_04_07_2024.json.gz
And make an API Request to obtain data from each of the Collections.

Hello, I've just made my own list of 500 movies. I think I've found how to do what I want to do. I'm gonna try to use my own list... Thanks for your help !

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