hello, when I send a request to get similar movies I get an array of results like this:
original_name: "Shadowhunters",
id: 63210,
name: "Shadowhunters",
etc.
but it doesn't have media_type
property so I cannot send a request like this:
https://api.themoviedb.org/3/MEDIA_TYPE/ID?api_key=MY_KEY
to get the desired item full details. So how can I get an item just by its id? thanks.
找不到电影或节目?登录并创建它吧。
Travis Bell 的回复
于 2019 年 04 月 03 日 12:50下午
Hi @blue-turtle13g,
I'm confirming that when you say "similar" you are referring to the /similar method. If so, that's odd, you shouldn't be seeing TV items in movie results, or vice versa. This method should only be returning items from the same media type.
Do you have an example where this is happening?
shorsa 的回复
于 2025 年 05 月 09 日 12:08下午
Hello, I have the same issue with https://api.themoviedb.org/3/movie/1151039. But for me, it's not a problem that it returns both media types. You just need to add this property (media_type) to the response. Thank you!
Travis Bell 的回复
于 2025 年 05 月 09 日 12:31下午
The similar endpoints do not return mixed media types. What item are you getting back that makes you think this is the case?
shorsa 的回复
于 2025 年 05 月 09 日 12:44下午
I apologize for the inconvenience, but I just realized something. At first, I thought that the /similar endpoint would return both media types, and apparently, I came across a movie that didn’t have enough data, so I assumed it was a different media type. It looks like everything is actually working as intended—this was my mistake, and now I understand that /similar returns only one media type.