The Movie Database atbalsts

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.

6 replies (on page 1 of 1)

Jump to last post

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.

@travisbell said:

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.

i dont rlly understand what u mean

also how do i get a full list of random people with their own id and details etc?

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.

apart from the 2 obstacles above, what's the difference between "get details" under PEOPLE section and "search people" under SEARCH section?

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...)

i dont rlly understand what u mean

You can get all necessary information if you read API documentation here.

@Betrayal said:
How to get a full list of people's details and how to get the id of a specific person?

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.

how to get the id of a specific person?

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.

How to get a full list of people's details?

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

@talestalker said:

also how do i get a full list of random people with their own id and details etc?

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.

apart from the 2 obstacles above, what's the difference between "get details" under PEOPLE section and "search people" under SEARCH section?

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...)

i dont rlly understand what u mean

You can get all necessary information if you read API documentation here.

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

@dani20800 said:

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

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

Nevari atrast filmu vai TV pārraidi? Jāpiesakās, lai to izveidotu.

Vispārējs

s fokusēties uz meklēšanas joslu
p atvērt profila izvēlni
esc aizvērt atvērtu logu
? atvērt īsinājumtaustiņu logu

Informācijas nesēju lapās

b atgriezties (vai pie vecākiem, ja nepieciešams)
e doties uz labošanas lapu

TV sezonas lapās

(labā bultiņa) pāriet uz nākamo sezonu
(kreisā bultiņa) pāriet uz iepriekšējo sezonu

TV sērijas lapās

(labā bultiņa) pāriet uz nākamo sēriju
(kreisā bultiņa) pāriet uz iepriekšējo sēriju

Visās attēlu lapās

a atvērt attēla pievienošanas logu

Visās labošanas lapās

t atvērt tulkošanas atlasītāju
ctrl+ s iesniegt veidlapu

Diskusiju lapās

n radīt jaunu diskusiju
w pārslēgt skatīšanās stāvokli
p pārslēgt publisko/privāto
c pārslēgt aizvērt/atvērt
a atklāta darbība
r atbilde uz diskusiju
l doties uz pēdējo atbildi
ctrl+ enter iesniegt savu ziņojumu
(labā bultiņa) nākamajā lapā
(kreisā bultiņa) iepriekšējā lapa

Iestatījumi

Vēlies novērtēt šo vienumu vai pievienot to sarakstam?

Pieteikties