The Movie Database Support

My app uses /search to search for TV show and movie information. However, the responses do not contain any of the following properties:

  • imdb_id {both movies and TV shows}
  • runtime {movies}
  • episode_runtime[0} (does anybody know what type of data is stored in this array?) || last_episode_to_air.runtime {TV shows}
  • number_of_seasons {TV shows}
  • number_of_episodes {TV shows}

I came across the 'append to response' section in the documentation, but none of the requests below append any information to the response. Does anybody know why? What am I doing wrong?

https://api.themoviedb.org/3/search/${mediaType}?query=${encodeURIComponent(query)}&include_adult=true&language=en-US&page=1&append_to_response=details

https://api.themoviedb.org/3/search/${mediaType}?query=${encodeURIComponent(query)}&include_adult=true&language=en-US&page=1&append_to_response=runtime,imdb_id

https://api.themoviedb.org/3/search/${mediaType}?query=${encodeURIComponent(query)}&include_adult=true&language=en-US&page=1&append_to_response=number_of_seasons,number_of_episodes,episode_runtime,last_episode_to_air

7 replies (on page 1 of 1)

Jump to last post

@falez said:

My app uses /search to search for TV show and movie information. However, the responses do not contain any of the following properties:

  • imdb_id {both movies and TV shows}
  • runtime {movies}
  • episode_runtime[0} (does anybody know what type of data is stored in this array?) || last_episode_to_air.runtime {TV shows}
  • number_of_seasons {TV shows}
  • number_of_episodes {TV shows}

I came across the 'append to response' section in the documentation,
but none of the requests below append any information to the response. Does anybody know why? What am I doing wrong?

Does not work with Search.
Only with the Details method, using the Movie, TV Show or Person item ID.
See
https://developer.themoviedb.org/docs/append-to-response

append_to_response is an easy and efficient way to append extra requests to any top level namespace. The movie, TV show, TV season, TV episode and person detail methods all support a query parameter called append_to_response.

@ticao2 said:

Shucks! I guess I am forced to make 2 separate requests then :(

Thanks for the information.

@ticao2 said:

@falez said:

TV show details: response.episode_runtime[0}

Any idea what type of data this array contains? And in what format? So far, it has always returned an empty array for every TV show that I have searched for.

@falez said:

@falez said: > TV show details: response.episode_runtime[0}

Any idea what type of data this array contains?
And in what format?
So far, it has always returned an empty array for every TV show that I have searched for.

Many years ago, when TMDb was born, there was only the runtime value of a standard episode of a TV series.
In the past, when broadcast TV was the norm, this value was more respected by producers.
The runtime differences between episodes of a series were minimal.
There were laws determining how much advertising or commercial time the broadcasters could show per hour of programming.
If I remember correctly, some countries it was 12 minutes per hour and others it was 8 minutes per hour.

With the advent of Cable TV and Streaming, everything changed.
So users asked for a runtime field to be added with a specific value for each episode.
This field was added to the database about 2 years ago.
If this field is blank, it is because no user has added the value.
The format should be minutes.

@ticao2 said:

@falez said:

@falez said: > TV show details: response.episode_runtime[0}

Any idea what type of data this array contains?
And in what format?
So far, it has always returned an empty array for every TV show that I have searched for.

Many years ago, when TMDb was born, there was only the runtime value of a standard episode of a TV series.
In the past, when broadcast TV was the norm, this value was more respected by producers.
The runtime differences between episodes of a series were minimal.
There were laws determining how much advertising or commercial time the broadcasters could show per hour of programming.
If I remember correctly, some countries it was 12 minutes per hour and others it was 8 minutes per hour.

With the advent of Cable TV and Streaming, everything changed.
So users asked for a runtime field to be added with a specific value for each episode.
This field was added to the database about 2 years ago.
If this field is blank, it is because no user has added the value.
The format should be minutes.

hm, so is response.episode_runtime an array that contains the runtime of each episode as a number?

@falez said:

hm, so is response.episode_runtime an array that contains the runtime of each episode as a number?

I think so. In minutes.
Of course, some user needs to add this data.

@ticao2 said:

@falez said:

hm, so is response.episode_runtime an array that contains the runtime of each episode as a number?

I think so. In minutes.
Of course, some user needs to add this data.

Ah, I see. Thanks again for your help!!

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