Supporto 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

1 risposta (nella pagina 1 di 1)

Jump to last post

@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

Non riesci a trovare un film o una serie Tv? Accedi per crearlo.

Globale

s focalizza la barra di ricerca
p apri menu profilo
esc chiudi una finestra aperta
? apri finestra scorciatoia tastiera

Su tutte le pagine di media

b torna indietro (o al precedente quando applicabile)
e vai alla pagina di modifica

Nelle pagine delle stagioni TV

(freccia destra) vai alla stagione successiva
(freccia sinistra) vai alla stagione precedente

Nelle pagine degli episodi TV

(freccia destra) vai all'episodio successivo
(freccia sinistra) vai all'episodio precedente

Su tutte le pagine di immagini

a apri finestra aggiungi immagine

Su tutte le pagine di modifica

t apri selettore traduzione
ctrl+ s invia modulo

Sulle pagine di discussione

n crea nuova discussione
w segna come visto/non visto
p cambia publico/privato
c cambia chiuso/aperto
a apri attivita
r rispondi alla discussione
l vai all'ultima risposta
ctrl+ enter invia il tuo messaggio
(freccia destra) pagina successiva
(freccia sinistra) pagina precedente

Impostazioni

Vuoi valutare o aggiungere quest'elemento a una lista?

Accedi