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?
Non podes atopar unha película ou serie? Inicia sesión para creala.
Queres valorar ou engadir o elemento a unha listaxe?
Non es membro?
Resposta de Travis Bell
no 15 de outubro do 2020 ás 10:57AM
You can use
/discover
to do this. An example:You could also combine this with a region if you want to find movies released in the US for example:
The docs have more information about the filters you can use.
Resposta de sproleee
no 15 de outubro do 2020 ás 11:48AM
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.
Resposta de Travis Bell
no 15 de outubro do 2020 ás 11:52AM
Sure, just use
YYYY-01-01
/YYYY-12-31
:That will query 2020 for you. Obviously scale that to whatever years you want, no problem.
Resposta de ortolanph
no 17 de setembro do 2023 ás 10:46AM
The primary release date is cool.
Resposta de bitPascals
no 25 de setembro do 2023 ás 3:48PM
Please i want to search for movies by title, after all setup, the api returns nothing at all
Resposta de robbie3999
no 25 de setembro do 2023 ás 5:31PM
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".