Hey, I'm looking at a case where "Pedro Pascal" is listed on the TMDB website (https://www.themoviedb.org/tv/100088-the-last-of-us/cast?language=en-US) but missing when I'm requesting that same show through the API with the following endpoint:
https://api.themoviedb.org/3/tv/100088?api_key=&append_to_response=external_ids,credits
I'm only getting 4 persons in the "credits" array, none of these is Pedro Pascal. I've been seeing some similar "missing cast" reports in the forum, so I'm unsure if there's a general issue or not.
Thanks!
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة superboy97
بتاريخ أغسطس 12, 2025 في 11:20 صباحا
You need to usee the aggregate_credits method instead of the credits method.
رد بواسطة clapton
بتاريخ أغسطس 13, 2025 في 12:04 مساءا
Thank you, I wasn't aware of this change! There's something that is confusing to me on the aggregate_credits field. The sorting on the website seems to not be reflected by the "order" field value. In the case of "Pedro Pascal" he's listed as order 219, while on the website he's in position 2.
Is this a bug or intentional? It almost looks like the order of the array is used on the website and not the order field.
Thanks!
رد بواسطة superboy97
بتاريخ أغسطس 13, 2025 في 12:19 مساءا
That work this way since multiple years.
The main order on the website is based on the number of episodes in which the actor is credited.
I think that the "order" value is only used as the second key, to order actors with the same number of episodes.