The Movie Database Support Forum

I have a selfish clarifying question. Ultimately, the answer to my question is probably "my code should be more forgiving", but I can't help but ask.

Are there any sort of guarantees — implied or otherwise — that data will have a minimum of fields, like, id?

As I sit here right now, if you load Ted Lasso Season 2 (API URL: https://api.themoviedb.org/3/tv/97546/season/2 ) returns the following crew member:

{
  "job": "Second Assistant Director",
  "department": "Directing",
  "person_id": "5c932a84c3a36861abe32a17",
  "credit_id": "61582e858e2ba6008be0742c"
}

This is episodes[8].crew[17]. It doesn't even have an id. Which, coincidentally, my JSON parsing code considers table stakes.

Is this… expected? I feel like this should be filtered out and/or rejected on the API level, but I'll be the first to admit it's completely self-centered for me to say so.

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden