Im using the http://api.themoviedb.org/3/person/287(or whichever)?api_key=### api call to grab people, but I have no clue how to find out what a specific actor's id number is. Is John Wayne 213? or 124? or 654? I have no clue. I feel like this is a dumb question but I've been looking for two days and cant find an answer. Please help.
The most common way you would retrieve these ids is by searching. Search for a person and then in the response, there's a results array. Iterate over the items returned and you can get the IDs.
You would do the same on the movie side, you could find the movies you're interested in and then thinking about cast, grab the credits array and parse each person that way as well.
Alternatively, depending on your needs, you can start at ID 1 and just iterate up to the last id in our db, found by using the /person/latest method.
Film of tv-serie niet gevonden? Log dan in om deze te creëren.
Reactie van elijahvazquez
op 14 april 2014 om 9:14 PM
Im using the http://api.themoviedb.org/3/person/287(or whichever)?api_key=### api call to grab people, but I have no clue how to find out what a specific actor's id number is. Is John Wayne 213? or 124? or 654? I have no clue. I feel like this is a dumb question but I've been looking for two days and cant find an answer. Please help.
Reactie van Travis Bell
op 15 april 2014 om 10:05 AM
Hi elijahvazquez,
The most common way you would retrieve these ids is by searching. Search for a person and then in the response, there's a results array. Iterate over the items returned and you can get the IDs.
You would do the same on the movie side, you could find the movies you're interested in and then thinking about cast, grab the credits array and parse each person that way as well.
Alternatively, depending on your needs, you can start at ID 1 and just iterate up to the last id in our db, found by using the /person/latest method.