I am using https://api.themoviedb.org/3/movie/popular?api_key=### api to load popular movies. However I want to load data / movies in chunks i.e.initially first set of movies should be loaded and when the user scrolls on web page next set of movies should be loaded. I am able to figure out parameters to be sent in url minimum and maximum parameters are given in document but I think those are for pages not number for number of elements in response array "results" Could anyone please suggest. Thanks a lot in
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط sushil.pangarkar@gmail.com
در تاریخ ژوئن 6, 2016 ساعت 1:24 ق.ض
is there any way that this api will send response data "results" in number of chunks? number / count can be passed as additional parameter from UI side. Please help !!!
پاسخ توسط Travis Bell
در تاریخ ژوئن 6, 2016 ساعت 1:33 ق.ض
Hi Sushil,
We do not support sending custom page sizes. All of our list responses are capped at 20 items per page. You can if course use the page param to iterate through all of the pages.
پاسخ توسط sushil.pangarkar@gmail.com
در تاریخ ژوئن 6, 2016 ساعت 1:55 ق.ض
Thanks Travis for your reply. Ok. As mentioned, I am using https://api.themoviedb.org/3/movie/popular?api_key=### api to get list of popular movies. Response consists of { "page": 1, "results" : [..], "total_results" : 19681, "total_pages" : 985 }
I am only getting page 1 through the give api. I was just curious whether this behavior correct. I tried by adding minimum and maximum parameters in request. Are there only 20 popular movies? How can I get more than one page data? Please suggest.
Thanks you so much once again. Best Regards, Sushil Pangarkar
پاسخ توسط Travis Bell
در تاریخ ژوئن 6, 2016 ساعت 10:11 ق.ض
Hi Sushil,
You use the
page
parameter.Etc.
پاسخ توسط sushil.pangarkar@gmail.com
در تاریخ ژوئن 6, 2016 ساعت 7:46 ب.ض
Thank you so much Travis!!!!