Hello I am trying to pull all actors/actresses from DB. Do all the ID numbers between 1 - latest return valid people?
while (i < 100000) { NSString *num = [NSString stringWithFormat:@"%i", i];
NSString *personURL = [@"https://api.themoviedb.org/3/person/" stringByAppendingString:num];
personURL = [personURL stringByAppendingString:@"?api_key=XXXXXXXXXXXXXXXXXXXXXXXXXXX&append_to_response=images"];
I am getting some return values that say invalid ID.
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Travis Bell
le 30 juillet 2014 à 21h26
Hi jrichardson,
Yes, there will be many ids that aren't present (deleted duplicates or just invalid people). Any invalid ids will return a 404 status and can be skipped.
Réponse de Joey Richardson
le 31 juillet 2014 à 00h47
How many valid people are there then? I was getting a consistent amount of 671 two days ago now I am getting 808.