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.
Film of tv-serie niet gevonden? Meld je aan om deze toe te voegen.
Want to rate or add this item to a list?
Not a member?
Reactie van Travis Bell
op 30 juli 2014 om 9:26 PM
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.
Reactie van Joey Richardson
op 31 juli 2014 om 12:47 AM
How many valid people are there then? I was getting a consistent amount of 671 two days ago now I am getting 808.