The Movie Database Support

I tried to make the following request

https://api.themoviedb.org/3/discover/movie?api_key=myapikey&with_runtime.lte=10

Which should give me movies that are no longer than 10 minutes. The request however does include movies that are longer than that.

For example the first movie in the results is:

{
  "popularity": 197.528,
  "vote_count": 178,
  "video": false,
  "poster_path": "/fapXd3v9qTcNBTm39ZC4KUVQDNf.jpg",
  "id": 423204,
  "adult": false,
  "backdrop_path": "/k2WyDw2NTUIWnuEs5gT7wgrCQg6.jpg",
  "original_language": "en",
  "original_title": "Angel Has Fallen",
  "genre_ids": [
    28
  ],
  "title": "Angel Has Fallen",
  "vote_average": 5.9,
  "overview": "Secret Service Agent Mike Banning is framed for the attempted assassination of the President and must evade his own agency and the FBI as he tries to uncover the real threat.",
  "release_date": "2019-08-23"
}

Which is 2h 1m.

Please correct me if I'm not using the with_runtime parameter properly.

5 replies (on page 1 of 1)

Jump to last post

Hi @guy6767,

You can see here, that someone added a runtime of 2. That would be why it's being returned.

I've updated the value, is it still being returned?

It's not being returned anymore.

However this also happens to about 90% of the movies that are being returned. The thing is, when I'm using the /movie/{movie_id} request, the runtime is correct.

For example, the first result for discover/movie?api_key=myapikey&with_runtime.lte=45 is:

{
"popularity": 36.064,
"vote_count": 422,
"video": false,
"poster_path": "/wwnkDdJo87p7RVBPH18DmsWTUxE.jpg",
"id": 502416,
"adult": false,
"backdrop_path": "/mBOv5YrX5QGr5CusK0PKSHuxOt9.jpg",
"original_language": "en",
"original_title": "Ma",
...
}

So for the runtime I request https://api.themoviedb.org/3/movie/502416?api_key=myapikey, and I'm getting:

{
....
"original_language": "en",
"original_title": "Ma",
...
"id": 3172,
...
"runtime": 99,
...
}

Is there anyway to ensure that the "with_runtime.lte" parameter uses the same runtime I'm getting from /movie/{movie_id}?

Is there anyway to ensure that the "with_runtime.lte" parameter uses the same runtime I'm getting from /movie/{movie_id}?

Not currently, no. Runtimes can be added to each translation, and all of these values get queried when you run a discover request with with_runtime.lte.

You can see Ma, has the same issue as Angel Has Fallen: https://www.themoviedb.org/movie/502416-ma/changes?filter_key=key&filter=runtime

I see, thanks for the detailed reply.

No worries. I've gone ahead and corrected the pt-BR translation for Ma, which should remove it. If you come across more, you can make these edits yourself, or use the "Report" button on each movie and submit a report to have a moderator look at them. This helps everybody out. :wink:

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