Hello! I have a question about the API. Specifically about the service /search/movie
Is there any way to search movies by year range?
And the "query" field on which fields does it search?
Thank you so much!!
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on March 22, 2023 at 3:31 PM
Hi @xectpp, unfortunately no, the search endpoints only support the:
year
primary_release_year
first_air_date_year
Filters. No ranges.
The
query
searches all of the available title fields:Cheers.
Reply by xectpp
on March 23, 2023 at 3:49 AM
Thank you very much Travis!
I have another question...
Is there a way to search by production company (Disney, Pixar, Sony Pictures, etc etc)?
Reply by ticao2 š§š· pt-BR
on March 23, 2023 at 9:21 AM
Making Discover API Request using production company ID.
In some cases quite laborious because, for example, there are more than 90 Sony.
https://www.themoviedb.org/search/company?query=Sony
But I'll give an example with Sony using more than one ID.
https://www.themoviedb.org/company/58/movie
https://www.themoviedb.org/company/82346/movie
https://www.themoviedb.org/company/11073/movie
The IDs are 58, 82346 and 11073.
Use Pipe "|" as separator. Works like "OR".
The list of valid IDs can be obtained here:
https://developers.themoviedb.org/3/getting-started/daily-file-exports
CAUTION: Date format must be MM_DD_YYYY
Reply by xectpp
on March 23, 2023 at 11:49 AM
Thanks so much for your example @ticao2 !