curl --request GET \
--url https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}"
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/tv/{series_id}/season/{season_number}/episode/{episode_number}', 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/tv/{series_id}/season/{season_number}/episode/{episode_number}",
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/tv/{series_id}/season/{season_number}/episode/{episode_number}"
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/tv/{series_id}/season/{season_number}/episode/{episode_number}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}")
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{
"air_date": "2005-10-02",
"crew": [
{
"adult": false,
"credit_id": "5256e7fd19c2956ff60e675e",
"department": "Writing",
"gender": 0,
"id": 1217228,
"job": "Writer",
"known_for_department": "Writing",
"name": "Steve Hely",
"original_name": "Steve Hely",
"popularity": 0.606,
"profile_path": null
},
{
"adult": false,
"credit_id": "5e0c50318586780018bf0a86",
"department": "Directing",
"gender": 0,
"id": 2109832,
"job": "Director",
"known_for_department": "Directing",
"name": "Albert Calleros",
"original_name": "Albert Calleros",
"popularity": 1.039,
"profile_path": null
}
],
"episode_number": 4,
"guest_stars": [
{
"adult": false,
"character": "Gretchen Grossbard (voice)",
"credit_id": "5256e82819c2956ff60ea87f",
"gender": 1,
"id": 1224129,
"known_for_department": "Acting",
"name": "Sherry Weston",
"order": 593,
"original_name": "Sherry Weston",
"popularity": 1.077,
"profile_path": "/6nLRsFRckudXt33D0wHer3oGyHl.jpg"
},
{
"adult": false,
"character": "Jackson / Charlie (voice)",
"credit_id": "5baa82e892514150e8005401",
"gender": 2,
"id": 1219665,
"known_for_department": "Acting",
"name": "Mike Henry",
"order": 1317,
"original_name": "Mike Henry",
"popularity": 3.495,
"profile_path": "/4b2315JgnH0O0hJPwLvl01EZEjo.jpg"
},
{
"adult": false,
"character": "Father Donovan (voice)",
"credit_id": "5256e7e319c2956ff60e4573",
"gender": 2,
"id": 80742,
"known_for_department": "Acting",
"name": "Martin Mull",
"order": 1555,
"original_name": "Martin Mull",
"popularity": 11.209,
"profile_path": "/wthyliVHLrgvKUIRI1WXfEw9pjL.jpg"
},
{
"adult": false,
"character": "Avery Bullock (voice)",
"credit_id": "5eff1470f031740039540c47",
"gender": 2,
"id": 2387,
"known_for_department": "Acting",
"name": "Patrick Stewart",
"order": 2049,
"original_name": "Patrick Stewart",
"popularity": 26.38,
"profile_path": "/wEy5qSDT5jT3ZASc2hbwi59voPL.jpg"
},
{
"adult": false,
"character": "Jack Smith (voice)",
"credit_id": "5f1aa245b3440900329d53d8",
"gender": 2,
"id": 31162,
"known_for_department": "Acting",
"name": "Daran Norris",
"order": 2060,
"original_name": "Daran Norris",
"popularity": 4.407,
"profile_path": "/oLaegqPwuEdNNJVqrvcgI6guYsi.jpg"
},
{
"adult": false,
"character": "Snot Lonstein (voice)",
"credit_id": "5b377abc9251413c91034df4",
"gender": 2,
"id": 87003,
"known_for_department": "Acting",
"name": "Curtis Armstrong",
"order": 2065,
"original_name": "Curtis Armstrong",
"popularity": 15.548,
"profile_path": "/3ZAX6NoU47Qshk0svFxkEcJ5fhI.jpg"
}
],
"id": 66036,
"name": "Con Heir",
"overview": "When Stan's father passes away, Stan reveals his real father is actually Jack Smith, a super suave spy. Jack convinces Stan to quit the CIA and work with him at the Scarlet Alliance, an ultra-secret spy group. Francine is upset with Stan, who is busy training with Jack for a mission involving uranium, artwork and terrorists. But when the FBI shows up at the Smiths' house looking for an international jewel thief, Francine suspects Jack is the fake.",
"production_code": "1AJN11",
"runtime": 22,
"season_number": 2,
"still_path": "/9FnrNfhubbyQNFIJgcQ6EWHJEQU.jpg",
"vote_average": 6.583,
"vote_count": 12
}Details
This endpoint get the details of a TV episode.
curl --request GET \
--url https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}"
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/tv/{series_id}/season/{season_number}/episode/{episode_number}', 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/tv/{series_id}/season/{season_number}/episode/{episode_number}",
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/tv/{series_id}/season/{season_number}/episode/{episode_number}"
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/tv/{series_id}/season/{season_number}/episode/{episode_number}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}")
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{
"air_date": "2005-10-02",
"crew": [
{
"adult": false,
"credit_id": "5256e7fd19c2956ff60e675e",
"department": "Writing",
"gender": 0,
"id": 1217228,
"job": "Writer",
"known_for_department": "Writing",
"name": "Steve Hely",
"original_name": "Steve Hely",
"popularity": 0.606,
"profile_path": null
},
{
"adult": false,
"credit_id": "5e0c50318586780018bf0a86",
"department": "Directing",
"gender": 0,
"id": 2109832,
"job": "Director",
"known_for_department": "Directing",
"name": "Albert Calleros",
"original_name": "Albert Calleros",
"popularity": 1.039,
"profile_path": null
}
],
"episode_number": 4,
"guest_stars": [
{
"adult": false,
"character": "Gretchen Grossbard (voice)",
"credit_id": "5256e82819c2956ff60ea87f",
"gender": 1,
"id": 1224129,
"known_for_department": "Acting",
"name": "Sherry Weston",
"order": 593,
"original_name": "Sherry Weston",
"popularity": 1.077,
"profile_path": "/6nLRsFRckudXt33D0wHer3oGyHl.jpg"
},
{
"adult": false,
"character": "Jackson / Charlie (voice)",
"credit_id": "5baa82e892514150e8005401",
"gender": 2,
"id": 1219665,
"known_for_department": "Acting",
"name": "Mike Henry",
"order": 1317,
"original_name": "Mike Henry",
"popularity": 3.495,
"profile_path": "/4b2315JgnH0O0hJPwLvl01EZEjo.jpg"
},
{
"adult": false,
"character": "Father Donovan (voice)",
"credit_id": "5256e7e319c2956ff60e4573",
"gender": 2,
"id": 80742,
"known_for_department": "Acting",
"name": "Martin Mull",
"order": 1555,
"original_name": "Martin Mull",
"popularity": 11.209,
"profile_path": "/wthyliVHLrgvKUIRI1WXfEw9pjL.jpg"
},
{
"adult": false,
"character": "Avery Bullock (voice)",
"credit_id": "5eff1470f031740039540c47",
"gender": 2,
"id": 2387,
"known_for_department": "Acting",
"name": "Patrick Stewart",
"order": 2049,
"original_name": "Patrick Stewart",
"popularity": 26.38,
"profile_path": "/wEy5qSDT5jT3ZASc2hbwi59voPL.jpg"
},
{
"adult": false,
"character": "Jack Smith (voice)",
"credit_id": "5f1aa245b3440900329d53d8",
"gender": 2,
"id": 31162,
"known_for_department": "Acting",
"name": "Daran Norris",
"order": 2060,
"original_name": "Daran Norris",
"popularity": 4.407,
"profile_path": "/oLaegqPwuEdNNJVqrvcgI6guYsi.jpg"
},
{
"adult": false,
"character": "Snot Lonstein (voice)",
"credit_id": "5b377abc9251413c91034df4",
"gender": 2,
"id": 87003,
"known_for_department": "Acting",
"name": "Curtis Armstrong",
"order": 2065,
"original_name": "Curtis Armstrong",
"popularity": 15.548,
"profile_path": "/3ZAX6NoU47Qshk0svFxkEcJ5fhI.jpg"
}
],
"id": 66036,
"name": "Con Heir",
"overview": "When Stan's father passes away, Stan reveals his real father is actually Jack Smith, a super suave spy. Jack convinces Stan to quit the CIA and work with him at the Scarlet Alliance, an ultra-secret spy group. Francine is upset with Stan, who is busy training with Jack for a mission involving uranium, artwork and terrorists. But when the FBI shows up at the Smiths' house looking for an international jewel thief, Francine suspects Jack is the fake.",
"production_code": "1AJN11",
"runtime": 22,
"season_number": 2,
"still_path": "/9FnrNfhubbyQNFIJgcQ6EWHJEQU.jpg",
"vote_average": 6.583,
"vote_count": 12
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
comma separated list of endpoints within this namespace, 20 items max
Response
Details
"2005-10-02"
Show child attributes
Show child attributes
[
{
"adult": false,
"credit_id": "5256e7fd19c2956ff60e675e",
"department": "Writing",
"gender": 0,
"id": 1217228,
"job": "Writer",
"known_for_department": "Writing",
"name": "Steve Hely",
"original_name": "Steve Hely",
"popularity": 0.606,
"profile_path": null
},
{
"adult": false,
"credit_id": "5e0c50318586780018bf0a86",
"department": "Directing",
"gender": 0,
"id": 2109832,
"job": "Director",
"known_for_department": "Directing",
"name": "Albert Calleros",
"original_name": "Albert Calleros",
"popularity": 1.039,
"profile_path": null
}
]
4
Show child attributes
Show child attributes
[
{
"adult": false,
"character": "Gretchen Grossbard (voice)",
"credit_id": "5256e82819c2956ff60ea87f",
"gender": 1,
"id": 1224129,
"known_for_department": "Acting",
"name": "Sherry Weston",
"order": 593,
"original_name": "Sherry Weston",
"popularity": 1.077,
"profile_path": "/6nLRsFRckudXt33D0wHer3oGyHl.jpg"
},
{
"adult": false,
"character": "Jackson / Charlie (voice)",
"credit_id": "5baa82e892514150e8005401",
"gender": 2,
"id": 1219665,
"known_for_department": "Acting",
"name": "Mike Henry",
"order": 1317,
"original_name": "Mike Henry",
"popularity": 3.495,
"profile_path": "/4b2315JgnH0O0hJPwLvl01EZEjo.jpg"
},
{
"adult": false,
"character": "Father Donovan (voice)",
"credit_id": "5256e7e319c2956ff60e4573",
"gender": 2,
"id": 80742,
"known_for_department": "Acting",
"name": "Martin Mull",
"order": 1555,
"original_name": "Martin Mull",
"popularity": 11.209,
"profile_path": "/wthyliVHLrgvKUIRI1WXfEw9pjL.jpg"
},
{
"adult": false,
"character": "Avery Bullock (voice)",
"credit_id": "5eff1470f031740039540c47",
"gender": 2,
"id": 2387,
"known_for_department": "Acting",
"name": "Patrick Stewart",
"order": 2049,
"original_name": "Patrick Stewart",
"popularity": 26.38,
"profile_path": "/wEy5qSDT5jT3ZASc2hbwi59voPL.jpg"
},
{
"adult": false,
"character": "Jack Smith (voice)",
"credit_id": "5f1aa245b3440900329d53d8",
"gender": 2,
"id": 31162,
"known_for_department": "Acting",
"name": "Daran Norris",
"order": 2060,
"original_name": "Daran Norris",
"popularity": 4.407,
"profile_path": "/oLaegqPwuEdNNJVqrvcgI6guYsi.jpg"
},
{
"adult": false,
"character": "Snot Lonstein (voice)",
"credit_id": "5b377abc9251413c91034df4",
"gender": 2,
"id": 87003,
"known_for_department": "Acting",
"name": "Curtis Armstrong",
"order": 2065,
"original_name": "Curtis Armstrong",
"popularity": 15.548,
"profile_path": "/3ZAX6NoU47Qshk0svFxkEcJ5fhI.jpg"
}
]
66036
"Con Heir"
"When Stan's father passes away, Stan reveals his real father is actually Jack Smith, a super suave spy. Jack convinces Stan to quit the CIA and work with him at the Scarlet Alliance, an ultra-secret spy group. Francine is upset with Stan, who is busy training with Jack for a mission involving uranium, artwork and terrorists. But when the FBI shows up at the Smiths' house looking for an international jewel thief, Francine suspects Jack is the fake."
"1AJN11"
22
2
"/9FnrNfhubbyQNFIJgcQ6EWHJEQU.jpg"
6.583
12