Soporte de The Movie Database

Hi,

I'm using JavaScript to fetch information related to tv-shows with the following URL:

let tv_show_name = "The Big Bang Theory";
let tv_show_id = "1418";
let API_KEY = "...";

let url = "https://api.themoviedb.org/3/tv/" + tv_show_id  + "?api_key=" + API_KEY + "&append_to_response=episode_groups&language=en"

The above code is working great, im able to get number of seasons and total number of episodes. But now i want to get number of episodes per season, and title of each episode. So i tried using the information listed under _episode_groups _ but is not listed for all the tv_shows.

So my question is how to get number of seasons, number of episodes per season and title of each episode using the above url? If that is not possible, which API i have to trigger to get the data listed in this page: https://www.themoviedb.org/tv/1418-the-big-bang-theory/seasons

¿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 discusión

n crear nueva discusión
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder a la discusión
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