I know movies date aren’t confirmed too far in advanced, but in my app I have an unpcoming tab that shows the movies coming out in the next year. Right now when people search they get confused why they are seeing movies from pervious years.
What I was thinking it if the search had a greater than release year option that would return all movies that at least have that known release year in the system I could filter it that way.
I attempted to use discover with the greater than date and keyword but couldn’t get the results I needed return.
If there is another possible way to do this that I am missing please let me know.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 🇧🇷 pt-BR
on May 22, 2020 at 12:15 PM
Since you did not post which API Request you used, then I assume you used the release_date.gte parameter and not the primary_release_date.gte parameter.
There is this API Request.
https://developers.themoviedb.org/3/movies/get-upcoming
https://api.themoviedb.org/3/movie/upcoming?api_key=THE_KEY&language=pt-BR&page=1®ion=BR
Or you can build an API Request.
In Discover and using the & primary_release_date.gte parameter.
https://developers.themoviedb.org/3/discover/movie-discover
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=pt-BR®ion=BR&sort_by=primary_release_date.desc&page=1&primary_release_date.gte=2020-06-01
EDIT
Of course, use your Language and your Region.
And the parameter & primary_release_date.gte, I always suggest using the date of a Monday of the current week.
Thus, those that will Premiered on Friday or the weekend will be on the list.
Reply by brianminor
on May 22, 2020 at 1:27 PM
So Ticao, main issue isn’t show upcoming movie it is when trying to search only upcoming movies
Example:
I know the new Guardians of the Galaxy 3 movie has a year at least (not sure if that has changed with all the COVID-19) So in my upcoming section of the app I would love if they searched guardians of the galaxy it would just return that one rather then all the others.
that’s the issue I am talking about needing a way to solve.
Reply by ticao2 🇧🇷 pt-BR
on May 22, 2020 at 2:28 PM
Please, if it is not too difficult, post the API Request being made here.
If you do NOT want to receive films that have premiered in the past, you need to determine that the primary_release_date is not less than today.
It must be bigger than today.
But I don't know what the Requisition you are doing.
If you can post here the Request you are making, it will be much easier to provide a solution.
Please post here the API Request being made.
Reply by brianminor
on May 22, 2020 at 2:55 PM
The problem is I can’t find a way to do what I want.
So what I’d love to do would be something like this
OR
I need a way to limit the result of a call to great than or equal to a release year and have the ability and search the title.
Reply by ticao2 🇧🇷 pt-BR
on May 22, 2020 at 3:54 PM
Discover does not have a Title filter.
Search does not have a & release_year.gte filter.
Only has year or primary_release_year.
As you said in your first comment:
Next year, that is 2021.
So the API Request using Search would look like this:
Using primary we are limiting the official premiere year in the theaters.
That year that appears in parentheses, next to the film title.
If you don't use primary then even the commemorative Bluray releases, made 30 years later, may appear.
But in 2021 there is no preview of any film that has the expression Guardians in its title.
So the answer is zero.
To meet your need, requests must be made for each of the next years, 2022 and 2023.
We only have results in 2023.
I can't think of any other solution.
Maybe Travis Bell can come up with another idea.
EDIT
Another possibility is to use Discovery.
Search for all Movies that will premiere after a certain date, or within a period of time.
Then, in your APP's programming, filter this result by title that contains the expression Guardians.