Movie Credits
curl --request GET \
--url https://api.themoviedb.org/3/person/{person_id}/movie_credits \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.themoviedb.org/3/person/{person_id}/movie_credits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.themoviedb.org/3/person/{person_id}/movie_credits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.themoviedb.org/3/person/{person_id}/movie_credits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.themoviedb.org/3/person/{person_id}/movie_credits"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.themoviedb.org/3/person/{person_id}/movie_credits")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.themoviedb.org/3/person/{person_id}/movie_credits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"cast": [
{
"adult": false,
"backdrop_path": "/1u4VTwPzi8XAwdqZdv2QmUj1Rou.jpg",
"genre_ids": [
99
],
"id": 77801,
"original_language": "en",
"original_title": "Miss Representation",
"overview": "The film MISS REPRESENTATION exposes how American youth are being sold the concept that women and girls’ value lies in their youth, beauty and sexuality. Explores the under-representation of women in positions of power and influence in America, and challenges the media's limited portrayal of what it means to be a powerful woman. It’s time to break that cycle of mistruths.",
"popularity": 5.657,
"poster_path": "/98owJxMsoARozljBXpQXH93v2fF.jpg",
"release_date": "2011-01-20",
"title": "Miss Representation",
"video": false,
"vote_average": 7.042,
"vote_count": 84,
"character": "Self",
"credit_id": "52fe497cc3a368484e12de89",
"order": 16
}
],
"crew": [
{
"adult": false,
"backdrop_path": "/7Wev9JMo6R5XAfz2KDvXb7oPMmy.jpg",
"genre_ids": [
9648,
53
],
"id": 77,
"original_language": "en",
"original_title": "Memento",
"overview": "Leonard Shelby is tracking down the man who raped and murdered his wife. The difficulty of locating his wife's killer, however, is compounded by the fact that he suffers from a rare, untreatable form of short-term memory loss. Although he can recall details of life before his accident, Leonard cannot remember what happened fifteen minutes ago, where he's going, or why.",
"popularity": 44.722,
"poster_path": "/nWtySDlffTfwAa0rSfq61o33ZXV.jpg",
"release_date": "2000-10-11",
"title": "Memento",
"video": false,
"vote_average": 8.2,
"vote_count": 14936,
"credit_id": "52fe4214c3a36847f8002515",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"backdrop_path": "/4JNo2oemP4KRIt2tEdpVPYgc0KO.jpg",
"genre_ids": [
35,
18,
10749
],
"id": 2313,
"original_language": "en",
"original_title": "Prime",
"overview": "A career driven professional from Manhattan is wooed by a young painter, who also happens to be the son of her psychoanalyst.",
"popularity": 11.921,
"poster_path": "/gz17H1jiLI9OrTo8ruS31WkP9Am.jpg",
"release_date": "2005-09-21",
"title": "Prime",
"video": false,
"vote_average": 6,
"vote_count": 794,
"credit_id": "52fe434dc3a36847f8049f09",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"backdrop_path": "/xI1tAzzUk2v9nON6DLAHzcOLK42.jpg",
"genre_ids": [
12,
35,
80,
878
],
"id": 817,
"original_language": "en",
"original_title": "Austin Powers: The Spy Who Shagged Me",
"overview": "When diabolical genius Dr. Evil travels back in time to steal superspy Austin Powers's ‘mojo,’ Austin must return to the swingin' '60s himself - with the help of American agent, Felicity Shagwell - to stop the dastardly plan. Once there, Austin faces off against Dr. Evil's army of minions to try to save the world in his own unbelievably groovy way.",
"popularity": 39.827,
"poster_path": "/wqcE8EAmVl5j3mLuIrHFG7RmQyg.jpg",
"release_date": "1999-06-08",
"title": "Austin Powers: The Spy Who Shagged Me",
"video": false,
"vote_average": 6.3,
"vote_count": 3328,
"credit_id": "52fe427ac3a36847f8021fdb",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"backdrop_path": "/wSm5McaHSAyOx4gGRYdlDHzj00y.jpg",
"genre_ids": [
878,
35,
80
],
"id": 816,
"original_language": "en",
"original_title": "Austin Powers: International Man of Mystery",
"overview": "As a swinging fashion photographer by day and a groovy British superagent by night, Austin Powers is the '60s' most shagadelic spy. But can he stop megalomaniac Dr. Evil after the bald villain freezes himself and unthaws in the '90s? With the help of sexy sidekick Vanessa Kensington, he just might.",
"popularity": 32.505,
"poster_path": "/5uD4dxNX8JKFjWKYMHyOsqhi5pN.jpg",
"release_date": "1997-05-02",
"title": "Austin Powers: International Man of Mystery",
"video": false,
"vote_average": 6.6,
"vote_count": 3412,
"credit_id": "52fe427ac3a36847f8021ec5",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"backdrop_path": "/kuPpElzfYnzsCye0hF8EbJSrvwo.jpg",
"genre_ids": [],
"id": 751653,
"original_language": "en",
"original_title": "Fake!",
"overview": "The true-life story of Jen McAdam and her involvement with the OneCoin Ponzi scheme.",
"popularity": 0.612,
"poster_path": null,
"release_date": "",
"title": "Fake!",
"video": false,
"vote_average": 0,
"vote_count": 0,
"credit_id": "5f80af9769eb900039b60156",
"department": "Production",
"job": "Producer"
}
],
"id": 550
}PEOPLE
Movie Credits
This endpoint is used to get the movie credits for a person.
GET
/
person
/
{person_id}
/
movie_credits
Movie Credits
curl --request GET \
--url https://api.themoviedb.org/3/person/{person_id}/movie_credits \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.themoviedb.org/3/person/{person_id}/movie_credits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.themoviedb.org/3/person/{person_id}/movie_credits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.themoviedb.org/3/person/{person_id}/movie_credits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.themoviedb.org/3/person/{person_id}/movie_credits"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.themoviedb.org/3/person/{person_id}/movie_credits")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.themoviedb.org/3/person/{person_id}/movie_credits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"cast": [
{
"adult": false,
"backdrop_path": "/1u4VTwPzi8XAwdqZdv2QmUj1Rou.jpg",
"genre_ids": [
99
],
"id": 77801,
"original_language": "en",
"original_title": "Miss Representation",
"overview": "The film MISS REPRESENTATION exposes how American youth are being sold the concept that women and girls’ value lies in their youth, beauty and sexuality. Explores the under-representation of women in positions of power and influence in America, and challenges the media's limited portrayal of what it means to be a powerful woman. It’s time to break that cycle of mistruths.",
"popularity": 5.657,
"poster_path": "/98owJxMsoARozljBXpQXH93v2fF.jpg",
"release_date": "2011-01-20",
"title": "Miss Representation",
"video": false,
"vote_average": 7.042,
"vote_count": 84,
"character": "Self",
"credit_id": "52fe497cc3a368484e12de89",
"order": 16
}
],
"crew": [
{
"adult": false,
"backdrop_path": "/7Wev9JMo6R5XAfz2KDvXb7oPMmy.jpg",
"genre_ids": [
9648,
53
],
"id": 77,
"original_language": "en",
"original_title": "Memento",
"overview": "Leonard Shelby is tracking down the man who raped and murdered his wife. The difficulty of locating his wife's killer, however, is compounded by the fact that he suffers from a rare, untreatable form of short-term memory loss. Although he can recall details of life before his accident, Leonard cannot remember what happened fifteen minutes ago, where he's going, or why.",
"popularity": 44.722,
"poster_path": "/nWtySDlffTfwAa0rSfq61o33ZXV.jpg",
"release_date": "2000-10-11",
"title": "Memento",
"video": false,
"vote_average": 8.2,
"vote_count": 14936,
"credit_id": "52fe4214c3a36847f8002515",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"backdrop_path": "/4JNo2oemP4KRIt2tEdpVPYgc0KO.jpg",
"genre_ids": [
35,
18,
10749
],
"id": 2313,
"original_language": "en",
"original_title": "Prime",
"overview": "A career driven professional from Manhattan is wooed by a young painter, who also happens to be the son of her psychoanalyst.",
"popularity": 11.921,
"poster_path": "/gz17H1jiLI9OrTo8ruS31WkP9Am.jpg",
"release_date": "2005-09-21",
"title": "Prime",
"video": false,
"vote_average": 6,
"vote_count": 794,
"credit_id": "52fe434dc3a36847f8049f09",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"backdrop_path": "/xI1tAzzUk2v9nON6DLAHzcOLK42.jpg",
"genre_ids": [
12,
35,
80,
878
],
"id": 817,
"original_language": "en",
"original_title": "Austin Powers: The Spy Who Shagged Me",
"overview": "When diabolical genius Dr. Evil travels back in time to steal superspy Austin Powers's ‘mojo,’ Austin must return to the swingin' '60s himself - with the help of American agent, Felicity Shagwell - to stop the dastardly plan. Once there, Austin faces off against Dr. Evil's army of minions to try to save the world in his own unbelievably groovy way.",
"popularity": 39.827,
"poster_path": "/wqcE8EAmVl5j3mLuIrHFG7RmQyg.jpg",
"release_date": "1999-06-08",
"title": "Austin Powers: The Spy Who Shagged Me",
"video": false,
"vote_average": 6.3,
"vote_count": 3328,
"credit_id": "52fe427ac3a36847f8021fdb",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"backdrop_path": "/wSm5McaHSAyOx4gGRYdlDHzj00y.jpg",
"genre_ids": [
878,
35,
80
],
"id": 816,
"original_language": "en",
"original_title": "Austin Powers: International Man of Mystery",
"overview": "As a swinging fashion photographer by day and a groovy British superagent by night, Austin Powers is the '60s' most shagadelic spy. But can he stop megalomaniac Dr. Evil after the bald villain freezes himself and unthaws in the '90s? With the help of sexy sidekick Vanessa Kensington, he just might.",
"popularity": 32.505,
"poster_path": "/5uD4dxNX8JKFjWKYMHyOsqhi5pN.jpg",
"release_date": "1997-05-02",
"title": "Austin Powers: International Man of Mystery",
"video": false,
"vote_average": 6.6,
"vote_count": 3412,
"credit_id": "52fe427ac3a36847f8021ec5",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"backdrop_path": "/kuPpElzfYnzsCye0hF8EbJSrvwo.jpg",
"genre_ids": [],
"id": 751653,
"original_language": "en",
"original_title": "Fake!",
"overview": "The true-life story of Jen McAdam and her involvement with the OneCoin Ponzi scheme.",
"popularity": 0.612,
"poster_path": null,
"release_date": "",
"title": "Fake!",
"video": false,
"vote_average": 0,
"vote_count": 0,
"credit_id": "5f80af9769eb900039b60156",
"department": "Production",
"job": "Producer"
}
],
"id": 550
}