The Movie Database Support

On some TVShows there is a different "number_of_episodes" in the TVShow facts, if the Information is requested by "/tv/{id}".

On these TVShows the number of episodes is mostly one less than the "count" of all episodes of all seasons.

For example there a these TVShows i found: Heroes Reborn: 1 Season with 1 Episode but in the API-Request there are 0 Episodes for the "number_of_episodes".

Gotham: 1 Season with 22 Episodes but in the API-Request there are 21 Episodes for the "number_of_episodes".

I know the difference between requesting the "number_of_episodes" via the "/tv/{id}" call and calculate the number of Episodes via call the "/tv/{id}/season/{season_number}" and count the "episodes" array.

But at the end, there have to be the same result or not?

Can someone explain me whats wrong or whats my problem here?

2 replies (on page 1 of 1)

Jump to last post

Hi CaptainBarnius,

I've re-synced the counts and found the reason they could get out of sync which I've also fixed. It should be good from here on in. You'll see the updated counts as soon as the items purge from cache (usually within 6 hours).


Hello Travis,

thank you for fixing the counts of episodes. Now the number is correct!

Great work you, and all other doing here on themoviedb!

Can't find a movie or TV show? Login to create it.


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


Want to rate or add this item to a list?