The Movie Database Support

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

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