Hi
With thiis Request i get a total page count that is over 1000.
http://api.themoviedb.org/3/discover/movie?with_genres=&language=de&vote_average.gte=1&vote_average.lte=10&with_cast=&api_key=
If i set the page to a value over 1000 i get this error.
Invalid page: Pages start at 1 and max at 1000. They are expected to be an integer.
Is there anything wrong with my requests or is this an error in the API?
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط Travis Bell
در تاریخ فوریه 22, 2015 ساعت 10:44 ق.ض
Hi GehirnschneckenBob,
We don't support paging past page 1000. All of our results are limited to the first 20,000 items.
Cheers.
پاسخ توسط GehirnschneckenBob
در تاریخ فوریه 22, 2015 ساعت 4:35 ب.ض
And how it is possible to retrieve the results past the 20.000 Items ?
پاسخ توسط Travis Bell
در تاریخ فوریه 22, 2015 ساعت 9:40 ب.ض
Hi GehirnschneckenBob,
We can't fathom a useful reason anyone would actually page through 1000 pages. We've always told people who want more data like this that they should probably bring all of the data in house and build out the schema and DB internally for their own needs.
پاسخ توسط GehirnschneckenBob
در تاریخ فوریه 23, 2015 ساعت 5:35 ق.ض
I dont want to page through 1000 pages I just want to present a random movie to the user. What do you mean with "bring all the data inhouse" ? Did you mean to downlaod all movies on my own server and build a webservice at my own ?
پاسخ توسط Travis Bell
در تاریخ فوریه 23, 2015 ساعت 11:23 ق.ض
I'd go about this a different way, grab the id from the /movie/latest method and then randomize a number between 1 and the result. You will of course have to deal with deleted ids, but it's easy enough to loop through trying the id until you get a 200 status back (as opposed to a deleted movie which will return a 404).
Alternative, if you need the filters you have above in your discover filter, you'll just have to randomize a page between 1 and 1000, and then randomize which item you show from the 20 results on that page.
Yes, that's what I meant.
پاسخ توسط GehirnschneckenBob
در تاریخ فوریه 24, 2015 ساعت 3:18 ق.ض
Actualy i randomize a page between 1 and 1000 and this works. Thanks for the fast answers.
I Dont think you mean that i can download all the data from your Webservice and update this every month, or ?
پاسخ توسط Travis Bell
در تاریخ فوریه 24, 2015 ساعت 9:52 ق.ض
Perfect.
You're welcome.
We don't provide a dump of any sort but you are free to cache the data locally.
Cheers.
پاسخ توسط coolmanhaha
در تاریخ اکتبر 8, 2015 ساعت 6:33 ق.ض
Can't we have a list of all movies present. It says in the api that you have around 2,50,000 movies.