دعم الموقع

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!

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.

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول