The Movie Database Support Forum

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!

3 Antworten (Seite 1 von 1)

Jump to last post

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

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

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!

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden