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.
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.
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.
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.
talestalker 的回复
于 2021 年 07 月 31 日 2:34上午
Can you give us an example of the API query that doesn't work?
superboy97 的回复
于 2021 年 07 月 31 日 9:36上午
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.
dhiogoacioli 的回复
于 2021 年 07 月 31 日 11:00上午
it works: https://api.themoviedb.org/3/movie/tt3554046?api_key=xxx&language=en-US
it doesnt: https://api.themoviedb.org/3/tv/tt9140554?api_key=xxx&language=en-US
dhiogoacioli 的回复
于 2021 年 07 月 31 日 11:01上午
yeah, i know about this. but wouldn't it be better if I just make one api call instead of two?
superboy97 的回复
于 2021 年 07 月 31 日 11:02上午
As indicated in my previous answer, this is normal.
dhiogoacioli 的回复
于 2021 年 07 月 31 日 11:03上午
as the structure of the two apis are very similar, I believe it would be a simple improvement to be made.
superboy97 的回复
于 2021 年 07 月 31 日 11:08上午
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.
dhiogoacioli 的回复
于 2021 年 07 月 31 日 11:11上午
well, I don't know the other types, but does the imdb id always start with tt?
superboy97 的回复
于 2021 年 07 月 31 日 11:13上午
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.
dhiogoacioli 的回复
于 2021 年 07 月 31 日 11:17上午
well, it could have different parameters for different ids. I'm just thinking on the server side, the fewer calls you have, the better.
superboy97 的回复
于 2021 年 07 月 31 日 11:19上午
The correct usage of the API is by using find for the external Ids.