Hi all,
Is there a more efficient way to get 300k movies for a database besides sequentially sweeping and checking if a movie ID exists before requesting?
Discover only lets you access the first 500 pages of popular, but I'm trying to build a "six degrees of Kevin Bacon" type app, so I need many more movies to actually be able to find shortest links.
I don't want every movie in the database.
Just the top 300k English movies or so.
Thanks
Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.
Vill du betygsÀtta denna artikel eller lÀgga till den i en lista?
Inte medlem?
Svar frĂ„n ticao2 đ§đ· pt-BR
den 10 februari 2025 vid 7:15 PM
You can get a list of all valid Movie IDs.
In this list, in addition to the IDs, you also get:
For example:
So you can sort all the IDs by popularity, on your side.
And eventually use only those with original titles in English.
You can find the list here:
https://developer.themoviedb.org/docs/daily-id-exports
Pay attention to the date format: MM_DD_YYYY
This is the maximum limit on any API Request.
The number/quantity of Items per Page and the number/quantity of Pages
cannot be changed, configured, specified, restricted, or anything like that.
There will always be up to 20 items per page.
And a maximum of 500 pages.
Therefore, at most 10,000 items.