The Movie Database 支持

When using the API to call upcoming movies it is falling back as much as 11 years even with a date range applied - this also happens on the TMDB site itself (try it and add a date range); this is counter-intuitive as a movie from 2009 is not upcoming. Can this be investigated and corrected so that only movies that have not been released yet can appear in upcoming movies?

With thanks

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

Jump to last post

Hi @Davyc1,

There's some subtlety here that you need to watch out for, and also let's separate the website query from the API query. The upcoming query searches for releases types 2 & 3, in that order, and without a specified region, will search worldwide. Let's compare these two queries:

https://api.themoviedb.org/3/movie/upcoming?api_key=###

Returns 132 items right now.

https://api.themoviedb.org/3/movie/upcoming?api_key=###&region=US

Returns 17 items right now. Behind the scenes this is just assembling a discover query, so depending on your use case you are free to tweak this and build your own (say to include digital releases).

Now, the website will show you all the filters so you can see exactly what's going on. Click the "Filters" dropdown and you'll see what's happening. Depending on your country, it may be doing different things, but as an example here's mine right now from Canada. This is the "default" view, I have not clicked or changed any settings.

Hi Travis

Thanks for the quick reply. I've set my filters pretty much the same as you but I'm still getting old movies showing despite setting a date filter.

This is what I get

It really doesn't matter what filters I set there are very old movies being returned.

@Davyc1 said:
... I've set my filters pretty much the same as you but I'm still getting old movies showing despite setting a date filter.
This is what I get
It really doesn't matter what filters I set there are very old movies being returned.

The film The Ugly Truth (2009) has a release date in Ireland at 2020-08-05.

https://www.themoviedb.org/movie/20943-the-ugly-truth/releases

It is probably this date that is causing this problem.
I don't know if it's a correct date or not.
If you can post the Upcoming API Request you made here, we may be able to find out what the problem is.
When you say you made the same API Request that Travis Bell did, did you define the same region? &region=US?
In wich country are you? Was it Ireland?

I think I got the filters figured out - it took a bit of experimenting but I got the list down to 11 all not released yet, so it's just a matter of experimenting with the filters to get the result required.

Thanks all for your help and input - fantastic support and a great site that is just top notch - thanks again :)

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

全站通用

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

在媒体页面

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

在电视季页面

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

在电视集页面

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

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

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

在讨论页面

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

设置

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

登录

还不是会员?

注册加入社区