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
No trobeu una pel路l铆cula o una s猫rie? Inicieu la sessi贸 per a crear-la.
Desitgeu valorar o afegir aquest element a una llista?
No en sou membre?
Resposta per ticao2 馃嚙馃嚪 pt-BR
el 10 i de 2025 a les 7:15 P.M.
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.