the discover movie API returns with different response body every day, some values are optionals and sometimes comes without being optionals so the response fails to be parsed in my data model
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:17 AM
In order for someone to help you with API Request questions, it is critical that you post here the API Request you are using.
Remember to replace your Key with [THE_KEY] , or something like that.
For example, if you are using the parameter & sort_by = popularity.desc,
the answer may be different because the popularity changes every day.
For this and other reasons it is necessary to see your API Request.
Reply by AbdallahShawky
on May 22, 2020 at 6:35 PM
i use this API https://api.themoviedb.org/3/discover/movie?api_key=[THE_KEY]&language=en-US&sort_by=popularity.desc&include_adult=false&include_video=false&page=1
Reply by ticao2 š§š· pt-BR
on May 22, 2020 at 7:29 PM
So, this is the reason.
Popularity changes all the time.
If I'm not mistaken, it is calculated based on:
Alias, see the first row of Posters on the TMDb homepage.
It is the Most Popular row.
Every time I update, the order changes.
What I didn't understand is what you mean by Optional Values.
What Values are you talking about?
In the answer, all the films have the same items.
An item may be blank because no user has added the data.