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.
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة Travis Bell
بتاريخ نوفمبر 14, 2020 في 3:23 مساءا
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.
رد بواسطة Gerwyn
بتاريخ نوفمبر 16, 2020 في 6:22 صباحا
i dont rlly understand what u mean
رد بواسطة talestalker
بتاريخ نوفمبر 16, 2020 في 8:29 صباحا
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.
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ نوفمبر 16, 2020 في 11:49 صباحا
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
رد بواسطة dani20800
بتاريخ نوفمبر 27, 2022 في 3:02 صباحا
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
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ نوفمبر 27, 2022 في 9:23 صباحا
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