The Movie Database Support

in the movie detail api, if I pass the imdb id in the id parameter, it gives me correct information. but if i do the same with the tv api, it says it didn't find anything.

11 replies (on page 1 of 1)

Jump to last post

Can you give us an example of the API query that doesn't work?

@dhiogoacioli said:

in the movie detail api, if I pass the imdb id in the id parameter, it gives me correct information. but if i do the same with the tv api, it says it didn't find anything.

This is only working for movies. /movie/{movie_id} is working with the IMDB Id (but is undocumented), but /tv/{tv_id} is not.

You need to use /find/{external_id} to always get a result.

@superboy97 said:

@dhiogoacioli said:

in the movie detail api, if I pass the imdb id in the id parameter, it gives me correct information. but if i do the same with the tv api, it says it didn't find anything.

This is only working for movies. /movie/{movie_id} is working with the IMDB Id (but is undocumented), but /tv/{tv_id} is not.

You need to use /find/{external_id} to always get a result.

yeah, i know about this. but wouldn't it be better if I just make one api call instead of two?

As indicated in my previous answer, this is normal.

as the structure of the two apis are very similar, I believe it would be a simple improvement to be made.

There is a big difference:

  • For movies, there is only one type of external Id : the IMDB Id, that can be easily differentiate from a TMDB Id.

  • For TV shows, there are multiple external Id types: IMDB Id, TVDB Id, ... and so on... Some of them can't be differentiate from a TMDB Id.

well, I don't know the other types, but does the imdb id always start with tt?

@dhiogoacioli said:

well, I don't know the other types, but does the imdb id always start with tt?

Yes, but we can't give a privilege to one type of external Id against the others, especially for an undocumented feature, which can be removed at any time.

well, it could have different parameters for different ids. I'm just thinking on the server side, the fewer calls you have, the better.

The correct usage of the API is by using find for the external Ids.

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