The Movie Database 支持

Hello Team, I have integrated all movies API and added a condition for only 2019 movies but on hitting API, I am getting movies of future and past years. Also, the list of the movie has incomplete data from many movies.

Let me know the solution for this.

Thanks!

3 回复(第 1 页,共 1 页)

Jump to last post

Can you post here the exact URL of the query you refer to (without the API_KEY indeed)? Also, it would help us, if you could provide some TMDB IDs of the movies you think shouldn't be returned by that query.

Hi, this the URL of API :

http://api.themoviedb.org/3/discover/movie?api_key=<api-key>&language=en-US&page=1&primary_release_date.gte=2019-04-15&sort_by=primary_release_date.asc&region=US&certification_country=US

AFAIK your problems are caused by:

1/ As for the movies from the future, if you need movies only from the year 2019, you should also add "&primary_release_date.lte=2019-12-31" to cap your query or use the "&primary_release_year=2019" instead.

2/ As for the movies from the past, I can't replicate this problem, but imo it could be that by using the parameter "&region=US", you are getting all movies which were (or will be) released in the US in the specified time span (as defined by "&primary_release_date.gte" - "&primary_release_date.lte" or by "&primary_release_year"), including movies which were in fact premiered earlier outside the US and only in the US were (will be) released in 2019 (typically most of the non-US movies).

3/ As for the incomplete list of movies, again it is most likely caused by the use of "&region=US" which will effectively filter out all movies which don't have entered US release date yet, including movies which were (or will be) released on US.

4/ Also the parameter "&certification_country=US" is useless if you also won't use "&certification" or "&certification.lte"

Source:

找不到电影或剧集?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)前一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区