Person Details
Explore how to use the TMDB API to fetch detailed information for any person involved in movies or TV shows, including their cast and crew credits. Understand how to access movie, TV, and combined credits efficiently to build comprehensive profiles for actors and crew members.
In this lesson, we’ll focus on how to fetch two main things—details of a person in a TV show or a movie and all the credits for a person in either a TV show or a movie.
The details of a person
Like movies and TV shows, we can fetch the details for each person as well. We can use the person endpoint to get the basic information about any person. A person can be any cast or crew member of any movie or TV show. This endpoint takes in an integer path parameter person_id and returns the details of that person in a single JSON response.
Here is the base URL in focus:
https://api.themoviedb.org/3/person/{person_id}?api_key={ourTMDBapikey}
Request parameters
The input query parameters supported by this endpoint are as follows:
Name | Type | Category | Description |
| string | optional | This is an |
| string | optional | This is used to append requests within the same namespace to the response. It follows the pattern ([\w]+). |
The code widget below shows how the basic personal details endpoint works. ...