Suport de The Movie Database

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

@teamkcameron@gmail.com said:
Getting Top ~300k Movies?
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?

You can get a list of all valid Movie IDs.
In this list, in addition to the IDs, you also get:

  • Original Title
  • Popularity

For example:

{"adult":false,"id":9,"original_title":"Sonntag im August","popularity":1.131,"video":false}
{"adult":false,"id":11,"original_title":"Star Wars","popularity":107.69,"video":false}
{"adult":false,"id":12,"original_title":"Finding Nemo","popularity":84.98,"video":false}
{"adult":false,"id":13,"original_title":"Forrest Gump","popularity":55.977,"video":false}
{"adult":false,"id":14,"original_title":"American Beauty","popularity":35.829,"video":false}
{"adult":false,"id":15,"original_title":"Citizen Kane","popularity":20.755,"video":false}
{"adult":false,"id":16,"original_title":"Dancer in the Dark","popularity":14.613,"video":false}

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

Discover only lets you access the first 500 pages of popular,

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.

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.

Global

s centra la barra de cerca
p obre el men煤 del perfil
esc tanca una finestra oberta
? obre la finestra de dreceres de teclat

A les p脿gines de materials

b torna enrere (o la superior quan sigui aplicable)
e ves a la p脿gina d鈥檈dici贸

A les p脿gines de temporades

(fletxa dreta) ves a la temporada seg眉ent
(fletxa esquerra) ves a la temporada anterior

A les p脿gines d'episodis

(fletxa dreta) ves a l'episodi seg眉ent
(fletxa esquerra) ves a l'episodi anterior

A totes les p脿gines d'imatges

a obre la finestra d'afegir imatges

A totes les p脿gines d'edici贸

t obre el selector de traducci贸
ctrl+ s envia el formulari

A les p脿gines de debat

n crea un debat nou
w canvia l'estat de visualitzaci贸
p canvia p煤blic/privat
c tanca o obre
a obre activitat
r resposta al debat
l ves a la darrera resposta
ctrl+ enter envieu el vostre missatge
(fletxa dreta) p脿gina seg眉ent
(fletxa esquerra) p脿gina anterior

Configuracions

Desitgeu valorar o afegir aquest element a una llista?

Inicieu la sessi贸