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
找不到电影或节目?登录并创建它吧。
ticao2 🇧🇷 pt-BR 的回复
于 2024 年 04 月 09 日 5:06下午
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_04_07_2024.json.gz
And make an API Request to obtain data from each of the Collections.
JocelynD 的回复
于 2024 年 04 月 09 日 5:39下午
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 !