Поддержка The Movie Database

https://developers.themoviedb.org/3/movies/get-upcoming

in the upcoming movies api docs it states :

"Get a list of upcoming movies in theaters. This is a release type query that looks for all movies that have a release type of 2 or 3 within the specified date range."

But there is no query parameter to set the min/max dates of the results. The results have currently returned all movies with max date set to 2020-02-03 for the past 2 weeks but nothing further. I cannot get upcoming movies beyond this date anymore. Is there a parameter missing from the docs? This wasn't a problem until this month.

json always returns:

"dates": {
    "maximum": "2020-02-03",
    "minimum": "2020-01-17"
},

3 ответов (на странице 1 из 1)

Jump to last post

Hi @lmerza,

If you'd like to build your own query, you will need to use /discover. Something like this, for example (tweak the dates as you wish):

https://api.themoviedb.org/3/discover/movie?api_key=###&region=US&release_date.gte=2020-01-17&release_date.lte=2020-02-03&with_release_type=3|2

Make sure to read through the docs for discover as there is over 25 different filters and sort options.

where in the docs are release_date.gte and release_date.lte for /movie/upcoming? Are you saying that endpoint isn't what I should use anymore? I just tried changing release_date.lte to 2020-03-03 and still only get a max of 2020-02-03

/movie/upcoming does not support customizing the release date query. I showed you how to do it with discover (which is what upcoming is using behind the scenes.)

Не можете найти фильм или сериал? Войдите на сайт, чтобы добавить его.

Глобальные

s фокусироваться на панели поиска
p открыть меню профиля
esc закрыть открытое окно
? открыть окно сочетаний клавиш

На страницах медиа

b назад (или выше, если применимо)
e перейти на страницу правки

На страницах сезонов

(стрелка вправо) перейти к следующему сезону
(стрелка влево) перейти к предыдущему сезону

На страницах эпизодов

(стрелка вправо) перейти к следующему эпизоду
(стрелка влево) перейти к предыдущему эпизоду

На всех страницах изображений

a открыть окно добавления изображения

На всех страницах правки

t открыть переключатель переводов
ctrl+ s отправить форму

На страницах обсуждения

n создать новое обсуждение
w сменить статус отслеживания
p публичное/приватное
c закрыть/открыть
a открыть страницу действий
r ответить в обсуждении
l перейти к последнему ответу
ctrl+ enter отправить своё сообщение
(стрелка вправо) следующая страница
(стрелка влево) предыдущая страница

Параметры

Хотите поставить оценку или добавить в список?

Войти