The Movie Database Support

Hi

Is it possible to return duration from the search-movie endpoint? The reason I ask is because I would like to apply a minimum duration filter to the result set to remove short films i.e., less than one hour.

Thanks Tom

2 replies (on page 1 of 1)

Jump to last post

Hi @tblackwell, this feature appears to be in the future plans. Currently you would have to retrieve the search results and then query each individual movie to get the runtime.

Another possible way to do this is to use the discover movie endpoint. Here you can use the filter "with_runtime.gte=60" and there is an undocumented filter called "with_text_query={searchstring}" to search for titles. You should understand that "with_text_query" may not work as expected and is not supported.

Thanks Robbie, much appreciated - I've added an extra upvote to the Trello ticket. I'm in process of building a small game and it sounds like it's probably best to wait for search-movie to get the runtime prop and put up with the unwanted results for now rather than using the undocumented filter on discover.

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