Hello,
I'm encountering an issue with the Season Details API endpoint (https://api.themoviedb.org/3/tv/2316/season/0), where crew data for some episodes shows two different object structures for crew members. Specifically, Episode 30 of Season 0 from "The Office" returns the following for the crew array:
"crew": [
{
"department": "Writing",
"job": "Writer",
"credit_id": "52573091760ee3776a342426",
"adult": false,
"gender": 0,
"id": 1225966,
"known_for_department": "Writing",
"name": "Jonathan Hughes",
"original_name": "Jonathan Hughes",
"popularity": 0.832,
"profile_path": null
},
{
"department": "Writing",
"job": "Writer",
"credit_id": "525730a1760ee3776a343728",
"adult": false,
"gender": 0,
"id": 1230853,
"known_for_department": "Writing",
"name": "Nate Federman",
"original_name": "Nate Federman",
"popularity": 1.224,
"profile_path": null
},
{
"job": "Director",
"department": "Directing",
"person_id": "5aa23117c3a36829b0006a04",
"credit_id": "63314514293835009111309d"
}
]
The first two contain all the expected fields, as outlined in the TMDb documentation. The last one has a much simpler object structure that lacks many of the documented fields and uses a string ("person_id") instead of an integer ("id") for identification.
Additionally, the Episode Details endpoint (/tv/{series_id}/season/{season_number}/episode/{episode_number}
) doesn’t include this director role at all, only listing the two writers in the crew array.
Is this an intentional design, or could this be a bug with the API? If it is intentional, is there a way to ensure consistency in the returned data? Any guidance would be greatly appreciated. Also sorry if this was brought up before. I couldn't find anything related to this in the forum.
Thank you!
Nie możesz znaleźć filmu lub serialu? Zaloguj się, aby go utworzyć.
Want to rate or add this item to a list?
Not a member?
Odpowiedź użytkownika Waffiq
11 listopada 2024 o godz. 6:52AM
i tried with same endpoint on postman and return as should be
Odpowiedź użytkownika Titus040
11 listopada 2024 o godz. 9:31AM
Hmm, I still get the same result even on Postman. It's the same object for episodes 30-33. I just looked it up and it seems all 4 are pointing to Kelly Cantley-Kashima. I also noticed that the "Directed by" field is empty on the season page of TMDb instead of the usual "No director has been added.". Funny enough, if you open the "Full Cast & Crew" Kelly Cantley-Kashima is listed as director (but still missing through the API - https://api.themoviedb.org/3/tv/2316/season/0/episode/30).
Odpowiedź użytkownika Waffiq
11 listopada 2024 o godz. 12:07PM
ow thats the problem, i tried id and same result with you
Odpowiedź użytkownika Titus040
11 listopada 2024 o godz. 12:58PM
Don't know if this helps, but I found another similar issue for Parks and Recreation. This time, some objects in the cast array are different.
Season 5 - Episode 11 (https://api.themoviedb.org/3/tv/8592/season/5)
Season 7 - Episode 7 (https://api.themoviedb.org/3/tv/8592/season/7)