Wsparcie 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 odpowied藕 (strona 1 z 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

Nie mo偶esz znale藕膰 filmu lub serialu? Zaloguj si臋, aby go utworzy膰.

Globalny

s zaznacz pasek wyszukiwania
p otw贸rz menu profilu
esc Zamknij otwarte okno
? otw贸rz okno skr贸t贸w klawiszowych

On media pages

b go back (or to parent when applicable)
e przejd藕 do strony edycji

On TV season pages

(prawa strza艂ka) przejd藕 do nast臋pnego sezonu
(lewa strza艂ka) przejd藕 do poprzedniego sezonu

On TV episode pages

(prawa strza艂ka) przejd藕 do nast臋pnego odcinka
(lewa strza艂ka) przejd藕 do poprzedniego odcinka

On all image pages

a otw贸rz okno dodawania obrazu

On all edit pages

t open translation selector
ctrl+ s prze艣lij formularz

On discussion pages

n otw贸rz now膮 dyskusj臋
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r odpowiedz na dyskusj臋
l przejd藕 do ostatniej odpowiedzi
ctrl+ enter wy艣lij swoj膮 wiadomo艣膰
(prawa strza艂ka) nast臋pna strona
(lewa strza艂ka) poprzednia strona

Ustawienia

Want to rate or add this item to a list?

Zaloguj