The Movie Database Подршка

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 одговора (на страни 1 од 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!

Не можеш да нађеш филм или серију? Пријави се да додаш.

Глобално

s фокусирај траку за претрагу
p отворите мени профила
esc затворити отворени прозор
? отвори прозор пречице на тастатури

На страницама медија

b вратити се назад (или родитељу кад је то применљиво)
e иди на страницу за уређивање

На страницама ТВ сезона

(стрелица надесно) пређите на следећу сезону
(лева стрелица) иди на претходну сезону

На страницама ТВ епизода

(стрелица надесно) пређите на следећу епизоду
(лева стрелица) иди на претходну епизоду

На свим страницама са сликама

a отвори прозор за додавање слике

На свим страницама за уређивање

t отвори селектор превода
ctrl+ s пошаљи образац

На страницама за дискусију

n отвори нову дискусију
w мења статус гледања
p мења јавно/приватно
c мења отвори/затвори
a отвори активност
r одговор на дискусију
l иди на последњи одговор
ctrl+ enter пошаљи поруку
(стрелица надесно) следећа страница
(лева стрелица) претходна страница

Подешавања

Желите ли да оцените или додате ову ставку у листу?

Пријави се