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!
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by superboy97
on August 12, 2025 at 11:20 AM
You need to usee the aggregate_credits method instead of the credits method.
Reply by clapton
on August 13, 2025 at 12:04 PM
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!
Reply by superboy97
on August 13, 2025 at 12:19 PM
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.