TMDB person API: get an actor or crew member by id
The TMDB person API returns one actor, director or crew member by id at GET /3/person/{person_id}: biography, birthday, place of birth, profile image and department. The JSON matches TMDB v3. Companion paths return movie, TV and combined credits, external ids, profile images and the popular list. Person details are cached for 6 hours.
How do I get person details by id?
Send GET / with your key. Tom Hanks is 31 and Leonardo DiCaprio is 6193, the same ids TMDB uses. The reply is one JSON object with 14 fields and costs one request of your 20, 40 or 120 per minute. Do not know the id? Look the name up with the TMDB search API first. Every endpoint is listed in the API reference.
The record holds name, biography, birthday, place of birth, department, profile image and IMDb id. People who work in front of and behind the camera share one id space.
The example reads Tom Hanks and appends his combined credits, then prints the name, birthday, main department and how many acting credits he has.
curl -sSf "https://api.amodb.dev/3/person/31?language=en-US&append_to_response=combined_credits" \
-H "Authorization: Bearer $AMODB_KEY"const url = 'https://api.amodb.dev/3/person/31?language=en-US&append_to_response=combined_credits';
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.AMODB_KEY}` } });
if (!res.ok) throw new Error(`amodb returned ${res.status}`);
const person = await res.json();
console.log(person.name, person.birthday, person.known_for_department, person.combined_credits.cast.length);import os
import requests
r = requests.get(
"https://api.amodb.dev/3/person/31",
params={"language": "en-US", "append_to_response": "combined_credits"},
headers={"Authorization": f"Bearer {os.environ['AMODB_KEY']}"},
timeout=10,
)
r.raise_for_status()
person = r.json()
print(person["name"], person["birthday"], person["known_for_department"], len(person["combined_credits"]["cast"]))<?php
$url = 'https://api.amodb.dev/3/person/31?language=en-US&append_to_response=combined_credits';
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 10,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('AMODB_KEY')],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status !== 200) {
throw new RuntimeException("amodb returned $status");
}
$person = json_decode($body, true);
echo $person['name'], ' ', $person['birthday'], ' ', count($person['combined_credits']['cast']), PHP_EOL;package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
"time"
)
type Person struct {
Name string `json:"name"`
Birthday string `json:"birthday"`
Department string `json:"known_for_department"`
PlaceOfBirth string `json:"place_of_birth"`
}
func main() {
req, _ := http.NewRequest("GET", "https://api.amodb.dev/3/person/31?language=en-US", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("AMODB_KEY"))
client := &http.Client{Timeout: 10 * time.Second}
res, err := client.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
if res.StatusCode != http.StatusOK {
panic(res.Status)
}
var p Person
if err := json.NewDecoder(res.Body).Decode(&p); err != nil {
panic(err)
}
fmt.Println(p.Name, p.Birthday, p.Department, p.PlaceOfBirth)
}Parameters
person_idpathrequiredNumeric person id, for example31.api_keyqueryone of twoYour key. Use this or theAuthorization: Bearerheader.languagequeryTMDB tag such asen-USorru-RU. The biography is returned in that language when a translation exists.append_to_responsequeryComma separated list:movie_credits,tv_credits,combined_credits,external_ids,images. Unknown names are ignored.
Response fields
| Field | Type | Notes |
|---|---|---|
id | integer | Person id. |
name | string | Display name, in the requested language when a translation exists. |
also_known_as | array | Alternative names and spellings. |
biography | string | Localized text, empty when no translation exists. |
birthday, deathday | string or null | YYYY-MM-DD. deathday is null for living people. |
place_of_birth | string or null | Free text. |
gender | integer | 0 not specified, 1 female, 2 male, 3 non-binary. |
known_for_department | string | Main job, for example Acting or Directing. |
imdb_id | string or null | IMDb person id such as nm0000158. |
homepage | string or null | Official site. |
profile_path | string or null | Append to https:/. See images. |
popularity | number | Relative score used by the popular list. |
adult | boolean | Always false. Adult people are never served. |
Example response
GET /, with the biography shortened:
{
"adult": false,
"also_known_as": [
"Thomas Jeffrey Hanks"
],
"biography": "Thomas Jeffrey Hanks (born July 9, 1956) is an American actor and filmmaker. Known for both his comedic and dramatic roles, Hanks is one of the most popular...",
"birthday": "1956-07-09",
"deathday": null,
"gender": 2,
"homepage": null,
"id": 31,
"imdb_id": "nm0000158",
"known_for_department": "Acting",
"name": "Tom Hanks",
"place_of_birth": "Concord, California, USA",
"popularity": 12.98,
"profile_path": "/oFvZoKI6lvU03n4YoNGAll9rkas.jpg"
}How do I get an actor's filmography?
Three endpoints list what a person worked on. All take language and return the keys id, cast and crew. When you append them with append_to_response, the id key is left out.
| Method and path | Returns | Extra parameters |
|---|---|---|
GET / | Movies, with character and order in cast and department and job in crew | none |
GET / | Shows, with character in cast and department and job in crew | none |
GET / | Movies and shows together, each with media_type set to movie or tv | none |
Movie entries carry title and release_date. TV entries carry name and first_air_date, and TV cast entries also hold an episode_count key that is 0 in current data. Entries also carry credit_id, genre_ids, poster_path, vote_average and the other list fields. The snippet below sorts combined credits by date and prints the five newest.
const credits = person.combined_credits;
const date = (c) => c.release_date || c.first_air_date || '';
const latest = credits.cast.filter((c) => date(c)).sort((a, b) => date(b).localeCompare(date(a))).slice(0, 5);
for (const c of latest) console.log(date(c), c.media_type, c.title || c.name, 'as', c.character);Which other person endpoints are there?
| Method and path | Returns | Extra parameters |
|---|---|---|
GET /person/popular | Paged list of popular people with known_for titles | language, page |
GET / | Profile photos in a profiles array | none |
GET / | imdb_id, wikidata_id, facebook_id, instagram_id, tiktok_id, twitter_id, youtube_id | none |
Popular entries hold id, name, original_name, known_for_department, gender, profile_path, popularity and a known_for array. Pages run from 1 to 500. Profile photos are covered on TMDB image URL, and external ids are on search by IMDb id. The cast and crew of one title are on the credits API page.
amodb does not offer person translations, the newest person record, tagged images or changes. Ask for the biography in the language you need with the language parameter instead.
How many requests does a person lookup use?
| Goal | Calls | Requests used |
|---|---|---|
| Person details | /person/31 | 1 |
| Details and filmography in one call | / | 1 |
| The same data as two calls | /person/31, / | 2 |
| Name to details | /, then /person/31 | 2 |
| Popular people, page 1 | /person/popular | 1 |
Cached replies count toward the rate. Person details and credit lists stay in the edge cache for 6 hours, and the popular list for 30 minutes.
How does this differ from the TMDB person endpoint?
The paths, parameters and fields are the same, so a TMDB client needs a new base URL and key. TMDB figures come from its API terms, read on 2026-10-19.
| Item | TMDB | amodb |
|---|---|---|
| Base URL | https:/ | https:/ |
| Person details, credits, external ids, images, popular | In TMDB v3 | Offered, same fields |
| Person translations, tagged images, changes | In TMDB v3 | Not offered |
| Rate limit | About 40 requests per second per IP, and TMDB says it could change | 20, 40 or 120 requests per minute per account |
| Logo or attribution | TMDB terms require the TMDB logo and a not-endorsed notice | No amodb logo; credit JustWatch and licensed texts and images as marked |
Personal or commercial project?
TMDB is free only until your app earns money. Ads, in-app purchases, donations and subscriptions all count as earning, and TMDB staff quote $149 a month for companies under $1M revenue (2026-03-31). amodb costs from $5.19 a month, charges nothing extra for commercial use, and its terms do not prohibit it. See amodb pricing and the TMDB API alternative page.
What errors does the person API return?
| HTTP | status_code | When |
|---|---|---|
| 401 | 7 | The key is missing or wrong. |
| 402 | 36 | The plan period has ended. |
| 404 | 34 | No person with that id, an adult person, or a path that is not offered. |
| 405 | 37 | You called a write method. |
| 429 | 25 | Over your requests per minute. Wait for the Retry-After seconds. |
The full list is on error codes, and the windows per plan are on rate limits.
Practical notes
- Person details and credit lists are cached for 6 hours. The popular list is cached for 30 minutes and pages run from 1 to 500.
- Add
combined_creditsthroughappend_to_responseinstead of making a second call. Both ways return the same data. - In
movie_credits, eachcastentry has anordervalue, the person's billing position in that movie. TV entries have noorder, so sort them byfirst_air_date. - Use
known_for_departmentto decide which list to show first:castfor actors,crewfor directors and writers. - Look up a person by name with the TMDB search API, then use the id here.
- To call these paths from code, follow TMDB API in Python or TMDB API in JavaScript. The actor API page gives the product overview.