I have using trending api for tmdb its sending me a list of 20 movies but the data shows there are 20,000 movies in top trending list. I get the page number as 1 always I am not sure how to get page 2,3,4 ..... and so on upto page 1000 to get a list of all trending movies. I am using node js "node-themoviedb" wrapper library for this, my code is below.
const pathParams = {
pathParameters: {
media_type:'all',
time_window: 'day'
},
}
let trending = await mdb.trending.getTrending(pathParams);
return trending.data
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط ticao2 🇧🇷 pt-BR
در تاریخ دسامبر 24, 2022 ساعت 9:57 ق.ض
If your API Request does not specify the page, by default you will receive page 1.
So for the next pages you must specify the page number you want.
For example:
That is, make an API Request for each page.
پاسخ توسط emorah4ck
در تاریخ فوریه 1, 2023 ساعت 3:13 ق.ض