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
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 robbie3999
on July 31, 2023 at 11:22 AM
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.
Reply by tblackwell
on July 31, 2023 at 1:35 PM
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.