Suporte do The Movie Database

How would I search movies that are between X and Y year? I see that there is only a year field. Is it possible to search between a range of years?

6 respostas (na página 1 de 1)

Jump to last post

You can use /discover to do this. An example:

https://api.themoviedb.org/3/discover/movie?api_key=###&primary_release_date.gte=2020-10-01&primary_release_date.lte=2020-10-15

You could also combine this with a region if you want to find movies released in the US for example:

https://api.themoviedb.org/3/discover/movie?api_key=###&release_date.gte=2020-10-01&release_date.lte=2020-10-15&region=US

The docs have more information about the filters you can use.

@travisbell said:

You can use /discover to do this. An example:

https://api.themoviedb.org/3/discover/movie?api_key=###&primary_release_date.gte=2020-10-01&primary_release_date.lte=2020-10-15

You could also combine this with a region if you want to find movies released in the US for example:

https://api.themoviedb.org/3/discover/movie?api_key=###&release_date.gte=2020-10-01&release_date.lte=2020-10-15&region=US

The docs have more information about the filters you can use.

Thanks for the reply.

I'm aware of the discovery filtering system. What I'm looking for is to search between years (integer) and not dates (string). Is that possible?

For example, search for movies between the year 2010 and 2012.

Sure, just use YYYY-01-01/YYYY-12-31:

https://api.themoviedb.org/3/discover/movie?api_key=###&primary_release_date.gte=2020-01-01&primary_release_date.lte=2020-12-31

That will query 2020 for you. Obviously scale that to whatever years you want, no problem.

The primary release date is cool.

@travisbell said:

You can use /discover to do this. An example:

https://api.themoviedb.org/3/discover/movie?api_key=###&primary_release_date.gte=2020-10-01&primary_release_date.lte=2020-10-15

You could also combine this with a region if you want to find movies released in the US for example:

https://api.themoviedb.org/3/discover/movie?api_key=###&release_date.gte=2020-10-01&release_date.lte=2020-10-15&region=US

The docs have more information about the filters you can use.

Please i want to search for movies by title, after all setup, the api returns nothing at all

Hi @bitPascals, what is the URL you are calling that returns no results? Replace your api key with a string like "API_KEY" or "xxxxxx".

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