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

Erantzun 1 (1(e)tik 1. orrian)

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

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Ezarpenak

Elementu hau kalifikatu edo zerrenda batera gehitzea nahi al duzu?

Saioa hasi