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 svar (på side 1 af 1)

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.

Kan du ikke finde en film eller TV-serie? Log in og opret den.

Global

s focus the search bar
p open profile menu
esc luk et åbent vindue
? open keyboard shortcut window

På mediesider

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

På alle billedesider

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

På diskussionssider

n opret ny diskussion
w toggle watching status
p toggle public/private
c toggle close/open
a åben aktivitet
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Indstillinger

Want to rate or add this item to a list?

Log ind