Hi there!
I'm using TMDB for a class project and I am using the "Popular Movies" endpoint but running into an issue where I can't access more than the first 500 pages of results - querying the https://api.themoviedb.org/3/movie/popular seems to return around 42k pages of results, but anytime I put in a number greater than 500 in the page parameter of a query/call, I get a 400 error code in response that says this (this happens in my own react/javascript environment, and also when I try a similar call on the "Try It Out" widget on this page https://developer.themoviedb.org/reference/movie-popular-list)
{
"success": false,
"status_code": 22,
"status_message": "Invalid page: Pages start at 1 and max at 500. They are expected to be an integer."
}
Is there an offset parameter or something I can use to sidestep this issue? I would love to be able to access the full 42k pages of results if possible to vastly expand the amount of TMDB movie info I'm able to pull.
Any help is greatly appreciated! Thank you!
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط colinfm88
در تاریخ فوریه 7, 2024 ساعت 12:04 ب.ض
Forgot to mention - part of my confusion is that the maximum for the page parameter says it's like 2 billion something, so it didn't feel right to be getting this response for numbers in the low 500's or 600's. Here's what the page parameter details list on the documentation page https://developer.themoviedb.org/reference/movie-popular-list
type:integer format:int32 minimum:-2147483648 maximum:2147483647
پاسخ توسط Travis Bell
در تاریخ فوریه 7, 2024 ساعت 12:34 ب.ض
Correct, we only support querying up to page 500. I recently replied to another user about this, with some examples of what you can do to get around it: https://www.themoviedb.org/talk/61bbb4dc6a300b00977d906c#65be68d06c449c017c8d5bfd
پاسخ توسط colinfm88
در تاریخ فوریه 7, 2024 ساعت 12:43 ب.ض
Thanks for the reply! I appreciate it and will play around with different filters and parameters to shrink the overall request. I had gotten so excited about the idea of picking from 42k pages of movies that this felt like a bigger setback in the moment, and this feedback helps me regain some momentum around how I can make that possible. Thanks again!