I’m doing this search. But get same result every time. Even if I set the gate 100 years in future
https://api.themoviedb.org/3/discover/movie?api_key=YOUR_KEY &watch_region=SE &with_watch_providers=8 &with_watch_monetization_types=flatrate &primary_release_date.gte=2024-01-01 &sort_by=primary_release_date.desc
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de ticao2 🇧🇷 pt-BR
le 28 mai 2025 Ă 10h09
Not exactly.
I tested it now.
Year 2024
Year 2034
Year 2094
For me, the error appears when the century changes.
And the result for any date in the next century or millennium seems to be the same.
It seems that the code has no barrier to this type of typing error.
Year 2104
Year 2124
Year 3124
EDIT
The range of the wrong result is between these dates:
Includes movies without a release date.
EDIT 2
I believe the one with the longest release date in the database is this movie.
Avatar 5 (2031)
https://www.themoviedb.org/movie/393209-avatar-5
Réponse de Jimmiq
le 28 mai 2025 Ă 12h13
Hmm ok. So what’s the correct search to get let’s say only movies that are are semi popular and released last 2 months?
Réponse de ticao2 🇧🇷 pt-BR
le 1 juin 2025 Ă 12h07
Semi-popular I don't know how to filter very well.
Maybe sorting by Popularity will help to select.
Specifying a time window.
Using:
&primary_release_date.gte= and &primary_release_date.lte=
Example:
or
&release_date.gte= and &release_date.lte=
if you want a specific country, region.