The Movie Database-ondersteuning

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 antwoorde (op blad 1 van 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 ’n rolprent of TV-program nie vind nie? Teken aan om dit te skep.

Globaal

s fokus op soekbalk
p open profielkieslys
esc sluit ’n oop venster
? open sneltoetsvenster

Op mediablaaie

b gaan terug (na ouer waar van toepassing)
e gaan na wysigblad

Op TV-seisoenblaaie

(regterpyl) gaan na volgende seisoen
(linkerpyl) gaan na vorige seisoen

Op TV-episodeblaaie

(regterpyl) gaan na volgende episode
(linkerpyl) gaan na vorige episode

Op alle beeldblaaie

a open beeldtoevoegvenster

Op alle wysigingsblaaie

t open vertaalkieser
ctrl+ s dien form in

Op besprekingsblaaie

n skep nuwe bespreking
w tokkel kykstatus
p tokkel openbaar/privaat
c tokkel maak oop/toe
a open aktiwiteit
r reageer op bespreking
l gaan na laaste reaksie
ctrl+ enter dien u boodskap in
(regterpyl) volgende blad
(linkerpyl) vorige blad

Instellings

Wil u hierdie item gradeer of tot ’n lys toevoeg?

Teken aan