The Movie Database Support

Is there a way to retrieve the duration of a movie through the API?

21 replies (on page 2 of 2)

Jump to last post

Previous page

@superboy97 said:

I don't know Scaffold, so I can't help you on this.

In Flutter

I don't know Scaffold or Flutter. The only things I can think of are:

  • The value of the runtime property is an integer, rather than a string. If you want to display the value, you might need to convert it to a string. (Though I say this with zero knowledge of Scaffold/Flutter, so this may not be true.)
  • Beware of typos. The API property is runtime, not _runtime or _runtie. But it could be that underscores are a convention in Scaffold/Flutter; I just don't know.

Regardless, this sounds like it's more of a programming problem than an issue with the TMDB API. You might be better off asking somewhere like Stack Overflow where there will be people who know about Scaffold/Flutter.

@ldjb said:

I don't know Scaffold or Flutter. The only things I can think of are:

  • The value of the runtime property is an integer, rather than a string. If you want to display the value, you might need to convert it to a string. (Though I say this with zero knowledge of Scaffold/Flutter, so this may not be true.)
  • Beware of typos. The API property is runtime, not _runtime or _runtie. But it could be that underscores are a convention in Scaffold/Flutter; I just don't know.

Regardless, this sounds like it's more of a programming problem than an issue with the TMDB API. You might be better off asking somewhere like Stack Overflow where there will be people who know about Scaffold/Flutter.

I am also cant get "runtime" field but I can fetch "vote_count" field. Both of them are integer. I think there is a problem with the TMDB.

@cemyilmaz463 said:

@ldjb said:

I don't know Scaffold or Flutter. The only things I can think of are:

  • The value of the runtime property is an integer, rather than a string. If you want to display the value, you might need to convert it to a string. (Though I say this with zero knowledge of Scaffold/Flutter, so this may not be true.)
  • Beware of typos. The API property is runtime, not _runtime or _runtie. But it could be that underscores are a convention in Scaffold/Flutter; I just don't know.

Regardless, this sounds like it's more of a programming problem than an issue with the TMDB API. You might be better off asking somewhere like Stack Overflow where there will be people who know about Scaffold/Flutter.

I am also cant get "runtime" field but I can fetch "vote_count" field. Both of them are integer. I think there is a problem with the TMDB.

I can only fetch "null" for runtime values

@cemyilmaz463 said:
I can only fetch "null" for runtime values

I tested it now and received correct data.

https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=pt-BR&append_to_response=credits,videos

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

@cemyilmaz463 said:

@ticao2 said:

@cemyilmaz463 said:
I can only fetch "null" for runtime values

I tested it now and received correct data.

https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=pt-BR&append_to_response=credits,videos

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

you are right, here is the problem I couldn't get the runtime field because I fetch the movie from the search api section.

https://api.themoviedb.org/3/search/movie?api_key=MY_KEY&query=fight

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