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 одговора (на страни 1 од 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".

Не можеш да нађеш филм или серију? Пријави се да додаш.

Глобално

s фокусирај траку за претрагу
p отворите мени профила
esc затворити отворени прозор
? отвори прозор пречице на тастатури

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

b вратити се назад (или родитељу кад је то применљиво)
e иди на страницу за уређивање

На страницама ТВ сезона

(стрелица надесно) пређите на следећу сезону
(лева стрелица) иди на претходну сезону

На страницама ТВ епизода

(стрелица надесно) пређите на следећу епизоду
(лева стрелица) иди на претходну епизоду

На свим страницама са сликама

a отвори прозор за додавање слике

На свим страницама за уређивање

t отвори селектор превода
ctrl+ s пошаљи образац

На страницама за дискусију

n отвори нову дискусију
w мења статус гледања
p мења јавно/приватно
c мења отвори/затвори
a отвори активност
r одговор на дискусију
l иди на последњи одговор
ctrl+ enter пошаљи поруку
(стрелица надесно) следећа страница
(лева стрелица) претходна страница

Подешавања

Желите ли да оцените или додате ову ставку у листу?

Пријави се