The Movie Database Support

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!

3 replies (on page 1 of 1)

Jump to last post

You need to usee the aggregate_credits method instead of the credits method.

  • With credits, you get only the cast and crew of the last season
  • With aggregate_credits, you get the complete cast and crew of the series

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!

  "aggregate_credits": {
    "cast": [
      {
        "adult": false,
        "gender": 3,
        "id": 1668004,
        "known_for_department": "Acting",
        "name": "Bella Ramsey",
        "original_name": "Bella Ramsey",
        "popularity": 9.076,
        "profile_path": "/wx78DnBixam4eXlwVVZs16fWP98.jpg",
        "roles": [
          {
            "credit_id": "60249992abf8e2003fa458b0",
            "character": "Ellie Williams",
            "episode_count": 16
          }
        ],
        "total_episode_count": 16,
        "order": 1
      },
      {
        "adult": false,
        "gender": 2,
        "id": 1253360,
        "known_for_department": "Acting",
        "name": "Pedro Pascal",
        "original_name": "Pedro Pascal",
        "popularity": 26.1699,
        "profile_path": "/9VYK7oxcqhjd5LAH6ZFJ3XzOlID.jpg",
        "roles": [
          {
            "credit_id": "6024a814c0ae36003d59cc3c",
            "character": "Joel Miller",
            "episode_count": 12
          },
          {
            "credit_id": "68620939083cd72025fdcc21",
            "character": "Joel Miller (uncredited)",
            "episode_count": 1
          }
        ],
        "total_episode_count": 13,
        "order": 219
      },
      {
        "adult": false,
        "gender": 2,
        "id": 111016,
        "known_for_department": "Acting",
        "name": "Gabriel Luna",
        "original_name": "Gabriel Luna",
        "popularity": 7.3245,
        "profile_path": "/2NNNl3od5K7HXOLUqlK3tzdxKkD.jpg",
        "roles": [
          {
            "credit_id": "6407840b158c85007c1ea4a9",
            "character": "Tommy Miller",
            "episode_count": 9
          }
        ],
        "total_episode_count": 9,
        "order": 2
      },

@clapton said:

Thank you, I wasn't aware of this change!

That work this way since multiple years.

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.

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.

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