Images
curl --request GET \
--url https://api.themoviedb.org/3/person/{person_id}/images \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.themoviedb.org/3/person/{person_id}/images"
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}/images', 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}/images",
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}/images"
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}/images")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.themoviedb.org/3/person/{person_id}/images")
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{
"id": 2888,
"profiles": [
{
"aspect_ratio": 0.667,
"file_path": "/1QqaRZ8neYlqLx7ODZC4as47wUV.jpg",
"height": 750,
"iso_639_1": null,
"vote_average": 4.97,
"vote_count": 17,
"width": 500
},
{
"aspect_ratio": 0.667,
"file_path": "/zCrnERhs0L8FNK6xz4f5wWp0pKK.jpg",
"height": 1440,
"iso_639_1": null,
"vote_average": 3.666,
"vote_count": 12,
"width": 960
},
{
"aspect_ratio": 0.667,
"file_path": "/8TlKqbXYgHmmaEoPBJ7djJ8Rxxa.jpg",
"height": 900,
"iso_639_1": null,
"vote_average": 1.75,
"vote_count": 2,
"width": 600
},
{
"aspect_ratio": 0.667,
"file_path": "/8Hbr3ndKeGX8OjSW1SjUbJpbfzh.jpg",
"height": 1500,
"iso_639_1": null,
"vote_average": 1.75,
"vote_count": 2,
"width": 1000
},
{
"aspect_ratio": 0.667,
"file_path": "/aTocGs4c3LJ7ssyHeEJhgApe6Ze.jpg",
"height": 900,
"iso_639_1": null,
"vote_average": 1.75,
"vote_count": 2,
"width": 600
},
{
"aspect_ratio": 0.666,
"file_path": "/9QD9DvQUF5t8ZVKpeoW4k2sFZ4D.jpg",
"height": 1436,
"iso_639_1": null,
"vote_average": 1.434,
"vote_count": 5,
"width": 957
},
{
"aspect_ratio": 0.667,
"file_path": "/2LcX9u5DDo6TtKy109EcQFDe9l5.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 1.222,
"vote_count": 3,
"width": 1280
},
{
"aspect_ratio": 0.667,
"file_path": "/j1VdmftAir0hdeWKadDuIpfmWFd.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 1.222,
"vote_count": 3,
"width": 1280
},
{
"aspect_ratio": 0.667,
"file_path": "/f16q1fWtsLQVmRx7udUsMmOz5aH.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 1.222,
"vote_count": 3,
"width": 1280
},
{
"aspect_ratio": 0.667,
"file_path": "/5vtHreCntxLx5uC36ZA5ZXwfTjL.jpg",
"height": 3000,
"iso_639_1": null,
"vote_average": 0.958,
"vote_count": 4,
"width": 2000
},
{
"aspect_ratio": 0.667,
"file_path": "/tSk3lEhp0Zvy10CLsBbpnWKquPa.jpg",
"height": 900,
"iso_639_1": null,
"vote_average": 0.166,
"vote_count": 1,
"width": 600
},
{
"aspect_ratio": 0.667,
"file_path": "/saBHS2uYUVKZSwAuXpD2PlCWMxx.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 1280
},
{
"aspect_ratio": 0.667,
"file_path": "/dSiL2fC8sCl1L9ftF7VyefRY64k.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 1280
},
{
"aspect_ratio": 0.665,
"file_path": "/rJEsL66Vf09rB9BKBnvv5oz6H5x.jpg",
"height": 562,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 374
},
{
"aspect_ratio": 0.666,
"file_path": "/4NojiAh3CUoNnb8Y5lF8ewpaDLS.jpg",
"height": 530,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 353
},
{
"aspect_ratio": 0.667,
"file_path": "/sT7rZg3elM9f8nO8fIotTywLmac.jpg",
"height": 2449,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 1633
},
{
"aspect_ratio": 0.671,
"file_path": "/bZ8ZecqWsfMKwyt1iWitp8SCvhp.jpg",
"height": 1203,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 807
},
{
"aspect_ratio": 0.667,
"file_path": "/2TOjaN8SFNXp39WdHO517v6ar1V.jpg",
"height": 750,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 500
}
]
}PEOPLE
Images
This endpoint get the profile images that belong to a person.
GET
/
3
/
person
/
{person_id}
/
images
Images
curl --request GET \
--url https://api.themoviedb.org/3/person/{person_id}/images \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.themoviedb.org/3/person/{person_id}/images"
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}/images', 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}/images",
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}/images"
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}/images")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.themoviedb.org/3/person/{person_id}/images")
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{
"id": 2888,
"profiles": [
{
"aspect_ratio": 0.667,
"file_path": "/1QqaRZ8neYlqLx7ODZC4as47wUV.jpg",
"height": 750,
"iso_639_1": null,
"vote_average": 4.97,
"vote_count": 17,
"width": 500
},
{
"aspect_ratio": 0.667,
"file_path": "/zCrnERhs0L8FNK6xz4f5wWp0pKK.jpg",
"height": 1440,
"iso_639_1": null,
"vote_average": 3.666,
"vote_count": 12,
"width": 960
},
{
"aspect_ratio": 0.667,
"file_path": "/8TlKqbXYgHmmaEoPBJ7djJ8Rxxa.jpg",
"height": 900,
"iso_639_1": null,
"vote_average": 1.75,
"vote_count": 2,
"width": 600
},
{
"aspect_ratio": 0.667,
"file_path": "/8Hbr3ndKeGX8OjSW1SjUbJpbfzh.jpg",
"height": 1500,
"iso_639_1": null,
"vote_average": 1.75,
"vote_count": 2,
"width": 1000
},
{
"aspect_ratio": 0.667,
"file_path": "/aTocGs4c3LJ7ssyHeEJhgApe6Ze.jpg",
"height": 900,
"iso_639_1": null,
"vote_average": 1.75,
"vote_count": 2,
"width": 600
},
{
"aspect_ratio": 0.666,
"file_path": "/9QD9DvQUF5t8ZVKpeoW4k2sFZ4D.jpg",
"height": 1436,
"iso_639_1": null,
"vote_average": 1.434,
"vote_count": 5,
"width": 957
},
{
"aspect_ratio": 0.667,
"file_path": "/2LcX9u5DDo6TtKy109EcQFDe9l5.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 1.222,
"vote_count": 3,
"width": 1280
},
{
"aspect_ratio": 0.667,
"file_path": "/j1VdmftAir0hdeWKadDuIpfmWFd.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 1.222,
"vote_count": 3,
"width": 1280
},
{
"aspect_ratio": 0.667,
"file_path": "/f16q1fWtsLQVmRx7udUsMmOz5aH.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 1.222,
"vote_count": 3,
"width": 1280
},
{
"aspect_ratio": 0.667,
"file_path": "/5vtHreCntxLx5uC36ZA5ZXwfTjL.jpg",
"height": 3000,
"iso_639_1": null,
"vote_average": 0.958,
"vote_count": 4,
"width": 2000
},
{
"aspect_ratio": 0.667,
"file_path": "/tSk3lEhp0Zvy10CLsBbpnWKquPa.jpg",
"height": 900,
"iso_639_1": null,
"vote_average": 0.166,
"vote_count": 1,
"width": 600
},
{
"aspect_ratio": 0.667,
"file_path": "/saBHS2uYUVKZSwAuXpD2PlCWMxx.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 1280
},
{
"aspect_ratio": 0.667,
"file_path": "/dSiL2fC8sCl1L9ftF7VyefRY64k.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 1280
},
{
"aspect_ratio": 0.665,
"file_path": "/rJEsL66Vf09rB9BKBnvv5oz6H5x.jpg",
"height": 562,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 374
},
{
"aspect_ratio": 0.666,
"file_path": "/4NojiAh3CUoNnb8Y5lF8ewpaDLS.jpg",
"height": 530,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 353
},
{
"aspect_ratio": 0.667,
"file_path": "/sT7rZg3elM9f8nO8fIotTywLmac.jpg",
"height": 2449,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 1633
},
{
"aspect_ratio": 0.671,
"file_path": "/bZ8ZecqWsfMKwyt1iWitp8SCvhp.jpg",
"height": 1203,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 807
},
{
"aspect_ratio": 0.667,
"file_path": "/2TOjaN8SFNXp39WdHO517v6ar1V.jpg",
"height": 750,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 500
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
This refers to a unique identifier assigned to an individual within a database.
Example:
""
Response
200 - application/json
images
Example:
2888
Show child attributes
Show child attributes
Example:
[
{
"aspect_ratio": 0.667,
"file_path": "/1QqaRZ8neYlqLx7ODZC4as47wUV.jpg",
"height": 750,
"iso_639_1": null,
"vote_average": 4.97,
"vote_count": 17,
"width": 500
},
{
"aspect_ratio": 0.667,
"file_path": "/zCrnERhs0L8FNK6xz4f5wWp0pKK.jpg",
"height": 1440,
"iso_639_1": null,
"vote_average": 3.666,
"vote_count": 12,
"width": 960
},
{
"aspect_ratio": 0.667,
"file_path": "/8TlKqbXYgHmmaEoPBJ7djJ8Rxxa.jpg",
"height": 900,
"iso_639_1": null,
"vote_average": 1.75,
"vote_count": 2,
"width": 600
},
{
"aspect_ratio": 0.667,
"file_path": "/8Hbr3ndKeGX8OjSW1SjUbJpbfzh.jpg",
"height": 1500,
"iso_639_1": null,
"vote_average": 1.75,
"vote_count": 2,
"width": 1000
},
{
"aspect_ratio": 0.667,
"file_path": "/aTocGs4c3LJ7ssyHeEJhgApe6Ze.jpg",
"height": 900,
"iso_639_1": null,
"vote_average": 1.75,
"vote_count": 2,
"width": 600
},
{
"aspect_ratio": 0.666,
"file_path": "/9QD9DvQUF5t8ZVKpeoW4k2sFZ4D.jpg",
"height": 1436,
"iso_639_1": null,
"vote_average": 1.434,
"vote_count": 5,
"width": 957
},
{
"aspect_ratio": 0.667,
"file_path": "/2LcX9u5DDo6TtKy109EcQFDe9l5.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 1.222,
"vote_count": 3,
"width": 1280
},
{
"aspect_ratio": 0.667,
"file_path": "/j1VdmftAir0hdeWKadDuIpfmWFd.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 1.222,
"vote_count": 3,
"width": 1280
},
{
"aspect_ratio": 0.667,
"file_path": "/f16q1fWtsLQVmRx7udUsMmOz5aH.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 1.222,
"vote_count": 3,
"width": 1280
},
{
"aspect_ratio": 0.667,
"file_path": "/5vtHreCntxLx5uC36ZA5ZXwfTjL.jpg",
"height": 3000,
"iso_639_1": null,
"vote_average": 0.958,
"vote_count": 4,
"width": 2000
},
{
"aspect_ratio": 0.667,
"file_path": "/tSk3lEhp0Zvy10CLsBbpnWKquPa.jpg",
"height": 900,
"iso_639_1": null,
"vote_average": 0.166,
"vote_count": 1,
"width": 600
},
{
"aspect_ratio": 0.667,
"file_path": "/saBHS2uYUVKZSwAuXpD2PlCWMxx.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 1280
},
{
"aspect_ratio": 0.667,
"file_path": "/dSiL2fC8sCl1L9ftF7VyefRY64k.jpg",
"height": 1920,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 1280
},
{
"aspect_ratio": 0.665,
"file_path": "/rJEsL66Vf09rB9BKBnvv5oz6H5x.jpg",
"height": 562,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 374
},
{
"aspect_ratio": 0.666,
"file_path": "/4NojiAh3CUoNnb8Y5lF8ewpaDLS.jpg",
"height": 530,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 353
},
{
"aspect_ratio": 0.667,
"file_path": "/sT7rZg3elM9f8nO8fIotTywLmac.jpg",
"height": 2449,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 1633
},
{
"aspect_ratio": 0.671,
"file_path": "/bZ8ZecqWsfMKwyt1iWitp8SCvhp.jpg",
"height": 1203,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 807
},
{
"aspect_ratio": 0.667,
"file_path": "/2TOjaN8SFNXp39WdHO517v6ar1V.jpg",
"height": 750,
"iso_639_1": null,
"vote_average": 0,
"vote_count": 0,
"width": 500
}
]
⌘I