Hey I'm trying to get the list of future release movies sorted by the local release date.
My request is
https://api.themoviedb.org/3/discover/movie?language=it&page=1&include_adult=false&release_date.gte=2024-10-25&release_date.lte=2024-11-25&sort_by=primary_release_date.desc&vote_average.gte=0®ion=IT
I'm not sure why, but as results I have a movie with a release date set as "release_date": "1993-09-01".
Here is the movie object returned.
{
"adult": false,
"backdrop_path": "/8rKJ1apU6VEzEoqRqMmDnpU1mnb.jpg",
"genre_ids": [
14,
27,
53,
878
],
"id": 28790,
"original_language": "en",
"original_title": "Arcade",
"overview": "Nella sala giochi \"Dante's Inferno\" è arrivato \"Arcade\" un nuovo rivoluzionario videogame. Il gioco ottiene un grande successo anche nella versione su console. Ben presto alcuni ragazzi iniziano a sparire. Solo la liceale Alex si rende conto che le misteriose sparizioni dei suoi amici sono collegate all'Arcade. La ragazza, insieme ad un compagno di scuola, per liberare i suoi amici, dovrà giocare una partita nel pericoloso mondo virtuale del gioco.",
"popularity": 5.671,
"poster_path": "/g5uDwh2MRvPzoAYgqnlTGBaJ1FK.jpg",
"release_date": "1993-09-01",
"title": "Arcade - Impatto Virtuale",
"video": false,
"vote_average": 4.7,
"vote_count": 39
}
Also the sort is not working properly and return more recent movies in the next pages after pagination. is this a problem of my request, or maybe somethings is missing?
Thanks for the help 🙏
Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.
Diesen Eintrag bewerten oder zu einer Liste hinzufügen?
Kein Mitglied?
Antwort von ticao2 🇧🇷 pt-BR
am 25. Oktober 2024 um 08:24
Where you used it:
&release_date.gte=2024-10-25&release_date.lte=2024-11-25
Replace it with:
&primary_release_date.gte=2024-10-25&primary_release_date.lte=2024-11-25
Antwort von g.orpello
am 25. Oktober 2024 um 09:12
Amazing, thanks for the help 🙏