The Movie Database Support

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 svar (pÄ sida 1 av 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

Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.

Globala

s fokus pÄ sökrutan
p öppna profilmenyn
esc stÀng ett öppet fönster
? öppna tangentbordsgenvÀg fönstret

PĂ„ mediasidor

b gÄ tillbaka (eller till förÀlder nÀr det Àr tillÀmpligt)
e gÄ till redigerings sidan

PÄ tv-sÀsongssidor

(höger pil) gÄ till nÀsta sÀsong
(vÀnster pil) gÄ till den föregÄende sÀsongen

PĂ„ tv-avsnittssidor

(höger pil) gÄ till nÀsta avsnitt
(vÀnster pil) gÄ till föregÄende avsnitt

PĂ„ alla bildsidor

a öppna lÀgg till bild fönstret

PĂ„ alla redigeringssidor

t öppna översÀttnings vÀljaren
ctrl+ s skicka förmulÀr

PĂ„ diskussionssidor

n skapa ny diskussion
w vÀxla sedd-status
p vÀxla offentligt/privat
c vÀxla stÀng/öppna
a öppna aktivitet
r svara pÄ diskussionen
l gÄ till det senaste svaret
ctrl+ enter skicka ditt meddelande
(höger pil) nÀsta sida
(vÀnster pil) föregÄende sida

InstÀllningar

Vill du betygsÀtta denna artikel eller lÀgga till den i en lista?

Logga in