I'm trying to get the quantity of total pages a query in https://api.themoviedb.org/3/search/movie has. I would use this value for pagination. Instead, I only get the 20 results with information for the 20 first movies, but I can't see no total_pages information in the retrieved data. I've seen people talking about this value in these forums through a research I've made. So my question is: is total_pages still available?
Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.
Doriți să evaluați sau să adăugați acest articol într-o listă?
Nu sunteți membru?
Răspuns de vitorary90
pe data de 29 noiembrie 2023 la ora 12:00 PM
I found what I was doing wrong. Instead of retrieving response.data I was retrieving response.data.results.
Răspuns de Travis Bell
pe data de 29 noiembrie 2023 la ora 12:05 PM
Hi @vitorary90,
It's there
Request
Response