The Movie Database Support Forum

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 Antworten (Seite 1 von 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.

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden