Soporte de The Movie Database

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 respuestas (en la página 1 de 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!!

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión