Suporte do The Movie Database

Hi, I would like to know how to get the differents parameters of sorts for : https://api.themoviedb.org/3/movie/now_playing and https://api.themoviedb.org/3/movie/upcoming (to make a sort by release date asc)

Thanks

4 respostas (na página 1 de 1)

Jump to last post

The only parameters for these API calls are your API key, the language, the region and the page.

If you want to do something else, a sort for example, you need to use the discover call.

Thanks. I will use a php code to sort them then

@michelweb said:

Hi, I would like to know how to get the differents parameters of sorts for : https://api.themoviedb.org/3/movie/now_playing and https://api.themoviedb.org/3/movie/upcoming (to make a sort by release date asc)

Thanks

As note mention on the blue section, the endpoint for now playing and upcoming "just a discover call behind the scenes". Then add sort_by=primary_release_date.asc

Upcoming, primary_release_date.gte=2024-08-20

https://api.themoviedb.org/3/discover/movie?api_key={API_KEY}&include_adult=false&include_video=false&language=en-US&primary_release_date.gte=2024-08-20&watch_region=US&page=1&with_release_type=2|3&sort_by=primary_release_date.asc

For now playing. Generally, most movies will stay in theaters for at least four weeks. So i put primary_release_date.gte=2024-07-21 till primary_release_date.lte=2024-08-21

https://api.themoviedb.org/3/discover/movie?api_key={API_KEY}&include_adult=false&include_video=false&language=en-US&primary_release_date.gte=2024-07-21&primary_release_date.lte=2024-08-21&watch_region=US&page=1&with_release_type=2|3&sort_by=primary_release_date.asc

Thanks a lot but finally I sorted the results with a php code. It is a sort code and it works great with all the types of API calls. For me it is fixed

Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.

Geral

s focus the search bar
p abrir menu do perfil
esc close an open window
? open keyboard shortcut window

Em páginas de Média

b go back (or to parent when applicable)
e ir para a página de edição

Em páginas de temporadas de séries

(seta para a direita) ir para a próxima temporada
(seta para a esquerda) ir para a temporada anterior

Em Páginas de Episódios de Séries

(seta para a direita) ir para o próximo episódio
(seta para a esquerda) ir para o episódio anterior

Em Todas as Páginas de Imagens

a abrir janela para adicionar imagem

Em Todas as Páginas de Edição

t open translation selector
ctrl+ s submit form

Em Páginas de Discussão

n criar uma nova discussão
w toggle watching status
p toggle public/private
c toggle close/open
a abrir actividade
r reply to discussion
l ir para a última resposta
ctrl+ enter submit your message
(seta para a direita) página seguinte
(seta para a esquerda) página anterior

Definições

Deseja classificar ou adicionar este item a uma lista?

Iniciar Sessão

Ainda não é um membro?

Crie uma Conta e Adere a Comunidade