Hey peeps!
I am working on a TV application that I think many people will use. I'll use TMDb to show information about actors/actress and movies. I think the best way to do this is to store all data I need from TMDb into a database, instead of doing a request to the API each time a user use my application.
I just want to know the best way to download all data? It's like 1M+ persons... I use the PHP Glamorous class. Should I just create a forloop and call the getPerson function each time and store the data, a million times? and it's something you allow?
Thank you.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by angelxmoreno
on March 4, 2013 at 3:49 PM
I am also looking for something similar. However, after spending some time looking through the forums it is my understanding that this no longer exist directly. Based on what I have gathered there used to be a Movie.Browse command in version 2.1 that would take in page numbers and one could theoretically loop through all the pages. Also, it appears that there will be changes made to the Search.Movie that would allow the API to do something like what 2.1 allowed us to do with Movie.Browse.
I gathered this information by reading similar questions to this request. The best thing I could come up with in the meanwhile, is to loop through each genre; given a genre loop through all the movies in that genre; for each movie make use of the "append_to_response" parameter to get as much info as needed ( and possible ) about each movie. Rinse and repeat. I have not executed this because it would be close to a gazillion ( not really, maybe ) API calls.
Until I find what the API limitations are I would not perform such a request and I DO NOT recommend anyone to do so either; at least without implementing some type of throttling.
Reply by Travis Bell
on March 4, 2013 at 11:09 PM
Hi Mikez,
Yes, the only way would be to query the API until you have all of the data. You can use the change methods to keep things in sync once you have all of the data.
It most certainly is just remember you still have top adhere to our terms of use.
Reply by Travis Bell
on March 4, 2013 at 11:10 PM
Hi angelxmoreno,
I moved the information about this onto the api docs page.
Reply by angelxmoreno
on March 5, 2013 at 2:31 AM
@Travis Bell thanks!
Reply by Michael Destici
on March 5, 2013 at 3:54 AM
Are there any limits for how many api calls you can do per day? I can't find any info about that.
Reply by Travis Bell
on March 5, 2013 at 4:08 AM
No, not per day. Only per 10 second spans.