The Movie Database Support

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 svar (på sida 1 av 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!

Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.

Globala

s fokus på sökrutan
p öppna profilmenyn
esc stäng ett öppet fönster
? öppna tangentbordsgenväg fönstret

På mediasidor

b gå tillbaka (eller till förälder när det är tillämpligt)
e gå till redigerings sidan

På tv-säsongssidor

(höger pil) gå till nästa säsong
(vänster pil) gå till den föregående säsongen

På tv-avsnittssidor

(höger pil) gå till nästa avsnitt
(vänster pil) gå till föregående avsnitt

På alla bildsidor

a öppna lägg till bild fönstret

På alla redigeringssidor

t öppna översättnings väljaren
ctrl+ s skicka förmulär

På diskussionssidor

n skapa ny diskussion
w växla sedd-status
p växla offentligt/privat
c växla stäng/öppna
a öppna aktivitet
r svara på diskussionen
l gå till det senaste svaret
ctrl+ enter skicka ditt meddelande
(höger pil) nästa sida
(vänster pil) föregående sida

Inställningar

Vill du betygsätta denna artikel eller lägga till den i en lista?

Logga in