I want to get movies released within a specific date. What I am doing...
https://api.themoviedb.org/3/discover/movie?api_key=<key>&language=en-US&sort_by=release_date.desc&page=1&release_date.gte=2017-12-31&release_date.lte=2020-1-1&with_genres=16%2C35
But I get empty list.
Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.
Doriți să evaluați sau să adăugați acest element într-o listă?
Nu eşti membru?
Răspuns de ticao2 🇧🇷 pt-BR
pe data de 16 martie 2020 la ora 8:30AM
The problem is the date format.
It has to be YYYY-MM-DD
Two digits for month and day.
2020-01-01
Răspuns de htetlynnhtun
pe data de 16 martie 2020 la ora 9:57PM
Oh. Yeah. Now it's working. Thank you so much sir.
Răspuns de IamSanjayGupta
pe data de 2 iulie 2022 la ora 4:58AM
some time data is not sorted
Răspuns de ticao2 🇧🇷 pt-BR
pe data de 2 iulie 2022 la ora 8:55AM
It looks like your problem is not the same problem as this topic.
I suggest you create a new topic with your specific problem and describe a little more what your problem is.
That is, post the API Request you made and inform what is wrong in the response data.
Răspuns de IamSanjayGupta
pe data de 3 iulie 2022 la ora 5:43AM
Thanks for reply my problem got resolved by using primary_release_date. Thank you again