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
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.
So, this is the reason.
Popularity changes all the time.
If I'm not mistaken, it is calculated based on:
Amount of access to the website page
Number of accesses by API
Quantity of inclusion in Lists
Number of votes
Average votes
Etc... Etc... Etc...
Alias, see the first row of Posters on the TMDb homepage.
It is the Most Popular row.
Every time I update, the order changes.
some values are optionals and sometimes comes without being optionals
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.
ticao2 🇧🇷 pt-BR 的回复
于 2020 年 05 月 22 日 12:17上午
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.
AbdallahShawky 的回复
于 2020 年 05 月 22 日 6:35下午
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
ticao2 🇧🇷 pt-BR 的回复
于 2020 年 05 月 22 日 7:29下午
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.