Apparently to get a person's detail, i need his/her id. but i dont even know the id of a certain person so i just put a random id in the parameter and just get a random person... what's the point? also how do i get a full list of random people with their own id and details etc?
apart from the 2 obstacles above, what's the difference between "get details" under PEOPLE section and "search people" under SEARCH section? all im really looking for is to look for people's details flexibly however i want.... this is so confusing.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on November 14, 2020 at 3:23 PM
Hi @Betrayal,
A good starting point would be this guide here. You can just substitute movie details for the person details.
Let me know if you have any more questions after walking through that.
Reply by Gerwyn
on November 16, 2020 at 6:22 AM
i dont rlly understand what u mean
Reply by talestalker
on November 16, 2020 at 8:29 AM
You can get a list of all valid people IDs (excluded person profiles marked adult) from daily export file. But the more usual way is to get a list of people for some movie or TV show or by searching for person name.
Person/get details method is used to get details for 1 person based on their ID. Search/person method is used to search for a list of people based on their name (the results are the same as people search on TMDb website). Only basic details for every matching person profile are returned, so you must call some of the person methods if you need more (e.g. full filmography, external ids, more images...)
You can get all necessary information if you read API documentation here.
Reply by ticao2 š§š· pt-BR
on November 16, 2020 at 11:49 AM
I will try to answer only the question you asked in the title of your post.
And for better clarification I will reverse the order of your 2 questions.
For example, you are looking for the person named Mike Nelson.
There are people who have the same name.
https://www.themoviedb.org/search?query=Mike+Nelson
In some cases Mike Nelson is the proper name, and in other cases it is the short name that was used as a credit in a film.
By making an API Request of the type get / search / person you will get an answer with 9 possibilities, 9 different people.
https://developers.themoviedb.org/3/search/search-people
https://api.themoviedb.org/3/search/person?api_key=THE_KEY&language=en-US&query=Mike+Nelson
In this answer given to your API Request, came some basic data that will help you to identify and choose which person of the 9 is the person you want the complete data.
In the data of each of the 9 people, the ID of these people also came. It is the "id" item in the response.
And it is this ID that will be needed to specify which of the 9 Mike Nelson you want the complete data from.
Let's say you want the data for this Michael J. Nelson also known as Mike Nelson.
https://www.themoviedb.org/person/30020-michael-j-nelson
Then you make a second API Request, this time using the ID of this person of interest.
An API Request of type get / person / {person_id}
https://developers.themoviedb.org/3/people/get-person-details
For example: https://api.themoviedb.org/3/person/30020?api_key=THE_KEY&language=en-US&append_to_response=combined_credits
With the & append_to_response= feature you can request a lot of extra data.
https://developers.themoviedb.org/3/getting-started/append-to-response
Or you can make a specific API Request for the data, the details of your interest.
get/person/{person_id}/tv_credits
https://developers.themoviedb.org/3/people/get-person-tv-credits
For example: https://api.themoviedb.org/3/person/30020/tv_credits?api_key=THE_KEY&language=en-US
Reply by dani20800
on November 27, 2022 at 3:02 AM
Thanks for the reply , ran into same problem , tried your solution , trying to download the file , but access denied , is there any way i can have ll the person ids
Reply by ticao2 š§š· pt-BR
on November 27, 2022 at 9:23 AM
I assume you want to download this file.
Be careful with the date format.
MM.DD.YYYY
If I remember correctly, it was accepted up to 2 months ago at most.
https://developers.themoviedb.org/3/getting-started/daily-file-exports This is for yesterday's file.
http://files.tmdb.org/p/exports/person_ids_11_26_2022.json.gz