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

Hi I have some questions

Am using /discover API. I think it is great.

  1. can we combine sorting? for example, i want to sort by average votes and number of votes. is something like sort_by=vote_average.desc&sort_by=vote_count.desc allowed?

  2. how to include main casts in movie list returned?

Thanks

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

Jump to last post

Hi @emirBytes

  1. can we combine sorting? for example, i want to sort by average votes and number of votes. is something like sort_by=vote_average.desc&sort_by=vote_count.desc allowed?

No, combined sorting is not currently supported. I'll have to think about whether this is something I want to add or not.

  1. how to include main casts in movie list returned?

You can't from a list method (search/discover/find, etc...). You'll have to make a query to the movie credits method. You can of course combine the credits call with append_to_response.

Hi Travis. Thanks for your reply. I am not so sure how to use append_to_response with movie credits. Do you mean I can query credits for multiple movies in one request? If so, can you show an example?

My guess is: https://api.themoviedb.org/3/movie/1234/credits?api_key=KEY&append_to_response=2345,3456 Is this right?

Hi,

Not quite. Take a read through the document I linked to above, it gives examples and outlines what you can do with it. It is used for querying sub-requests within the same ID (if you wanted the primary movie details and credits for example).

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

Глобальные

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

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

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

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

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

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

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

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

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

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

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

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

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

Параметры

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

Войти