The Movie Database Support

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!!

4 replies (on page 1 of 1)

Jump to last post

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:

  • original title
  • translated titles
  • alternative titles

Cheers.

Thank you very much Travis!

I have another question...

Is there a way to search by production company (Disney, Pixar, Sony Pictures, etc etc)?

@xectpp said:
Thank you very much Travis!
I have another question...
Is there a way to search by production company (Disney, Pixar, Sony Pictures, etc etc)?

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".

https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&sort_by=primary_release_date.desc&page=1&with_companies=58|82346|11073

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

Thanks so much for your example @ticao2 !

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login