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?
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de vitorary90
le 29 novembre 2023 à 12h00
I found what I was doing wrong. Instead of retrieving response.data I was retrieving response.data.results.
Réponse de Travis Bell
le 29 novembre 2023 à 12h05
Hi @vitorary90,
It's there
Request
Response