The Movie Database Support

Hey, I'm Syed Hassan,

I am working on one of your APIs (discover-movie) and noticed one issue the page count isn't working correctly. I am retrieving movies released in 2023, using release primary_release_year, and there are almost 2041 pages, as you can see in the screenshot using this link(https://mega.nz/file/1toFVbyD#JAVUwzkgzRx_9vC8ys7oPGe5oCoT1lnMA7OOta_RPOU). but when the page value is increased by more than 500 it gives this error(https://mega.nz/file/I9ZCCQQC#SfWsdE9CB1CwAXTHRXMMGwqJAoKRZtfhng6qQGxrxLM).

{ "success": false, "status_code": 22, "status_message": "Invalid page: Pages start at 1 and max at 500. They are expected to be an integer." }

This is the URL I am using,

https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=501&primary_release_year=2023&sort_by=popularity.desc

Please correct me if I am doing something wrong.

Thank You!

Regards,

Syed Hassan

4 erantzun (1(e)tik 1. orrian)

Jump to last post

There are no bug here.

Even if there are 2041 pages of movies matching your criteria, the API only permit you to access the first 500 pages.

Noted! Thank you so much!

@superboy97 said:

There are no bug here.

Even if there are 2041 pages of movies matching your criteria, the API only permit you to access the first 500 pages.

I am getting error while crating new api

@princesimi said:

I am getting error while crating new api

Please, Create your own discussion topic instead of squatting an unrelated one.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Ezarpenak

Elementu hau kalifikatu edo zerrenda batera gehitzea nahi al duzu?

Saioa hasi