Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request GET \
--url https://api.themoviedb.org/3/movie/18/videos \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.themoviedb.org/3/movie/18/videos"
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/movie/18/videos', 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/movie/18/videos",
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/movie/18/videos"
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/movie/18/videos")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.themoviedb.org/3/movie/18/videos")
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": 18,
"results": [
{
"id": "630de5d1ae384300790860ea",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "rwU0aYVc8cQ",
"name": "Film Facts from The Fifth Element | #shorts",
"official": true,
"published_at": "2022-07-19T19:59:03.000Z",
"site": "YouTube",
"size": 720,
"type": "Featurette"
},
{
"id": "630cc36fdcb6a300835a3611",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "4L3Yvk-Tld0",
"name": "25th Anniversary Fathom Event",
"official": true,
"published_at": "2022-05-25T20:40:37.000Z",
"site": "YouTube",
"size": 1080,
"type": "Teaser"
},
{
"id": "6279b760160e730067acc54a",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "5Sg2RkdkSvk",
"name": "Anniversary Trailer",
"official": true,
"published_at": "2022-05-09T22:50:06.000Z",
"site": "YouTube",
"size": 1080,
"type": "Trailer"
},
{
"id": "645a1dd577d23b00fccb6751",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "KXwqUMkXFiI",
"name": "Zorg Being Iconic for 10 Minutes",
"official": true,
"published_at": "2021-05-31T14:30:09.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d5177d23b00fccb6707",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "FsJp7YGLXLU",
"name": "Connecting The Elements",
"official": true,
"published_at": "2021-05-16T14:30:02.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d61156cc700e39e88ba",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "AqipzHYdMS4",
"name": "Mangalore Crew Attacks",
"official": true,
"published_at": "2021-05-13T14:30:01.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1da13fe1600172250786",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "bSi7h_A-Jrc",
"name": "Leeloo Fights Off The Mangalore",
"official": true,
"published_at": "2021-05-12T14:30:03.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d8e6aa8e0011ca1d3ae",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "LNOA3OX2k-8",
"name": "Korben Helps Leeloo Escape",
"official": true,
"published_at": "2021-05-11T14:30:02.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d6e77d23b017037f352",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "zgDvltS4XV8",
"name": "Mondoshawan Spacecraft Is Ambushed",
"official": true,
"published_at": "2021-05-09T14:30:07.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d4377d23b0119e15c82",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "vBc-7pEtxgo",
"name": "Mondoshawans And The Supreme Being",
"official": true,
"published_at": "2021-05-08T14:30:07.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "630de56318864b0080e5a88f",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "pqs9ycvKfD8",
"name": "StudioCanal Trailer",
"official": true,
"published_at": "2020-08-24T09:28:37.000Z",
"site": "YouTube",
"size": 720,
"type": "Trailer"
},
{
"id": "6279b86af6fd1800673d525d",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "FrEf8XHToGI",
"name": "Trailer",
"official": true,
"published_at": "2018-08-17T17:59:48.000Z",
"site": "YouTube",
"size": 1080,
"type": "Trailer"
},
{
"id": "578e4e63c3a3685acb013412",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "7-9mTiBawSM",
"name": "Clip",
"official": true,
"published_at": "2013-12-26T18:42:38.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
}
]
}Get movie videos
curl --request GET \
--url https://api.themoviedb.org/3/movie/18/videos \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.themoviedb.org/3/movie/18/videos"
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/movie/18/videos', 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/movie/18/videos",
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/movie/18/videos"
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/movie/18/videos")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.themoviedb.org/3/movie/18/videos")
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": 18,
"results": [
{
"id": "630de5d1ae384300790860ea",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "rwU0aYVc8cQ",
"name": "Film Facts from The Fifth Element | #shorts",
"official": true,
"published_at": "2022-07-19T19:59:03.000Z",
"site": "YouTube",
"size": 720,
"type": "Featurette"
},
{
"id": "630cc36fdcb6a300835a3611",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "4L3Yvk-Tld0",
"name": "25th Anniversary Fathom Event",
"official": true,
"published_at": "2022-05-25T20:40:37.000Z",
"site": "YouTube",
"size": 1080,
"type": "Teaser"
},
{
"id": "6279b760160e730067acc54a",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "5Sg2RkdkSvk",
"name": "Anniversary Trailer",
"official": true,
"published_at": "2022-05-09T22:50:06.000Z",
"site": "YouTube",
"size": 1080,
"type": "Trailer"
},
{
"id": "645a1dd577d23b00fccb6751",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "KXwqUMkXFiI",
"name": "Zorg Being Iconic for 10 Minutes",
"official": true,
"published_at": "2021-05-31T14:30:09.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d5177d23b00fccb6707",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "FsJp7YGLXLU",
"name": "Connecting The Elements",
"official": true,
"published_at": "2021-05-16T14:30:02.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d61156cc700e39e88ba",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "AqipzHYdMS4",
"name": "Mangalore Crew Attacks",
"official": true,
"published_at": "2021-05-13T14:30:01.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1da13fe1600172250786",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "bSi7h_A-Jrc",
"name": "Leeloo Fights Off The Mangalore",
"official": true,
"published_at": "2021-05-12T14:30:03.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d8e6aa8e0011ca1d3ae",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "LNOA3OX2k-8",
"name": "Korben Helps Leeloo Escape",
"official": true,
"published_at": "2021-05-11T14:30:02.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d6e77d23b017037f352",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "zgDvltS4XV8",
"name": "Mondoshawan Spacecraft Is Ambushed",
"official": true,
"published_at": "2021-05-09T14:30:07.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d4377d23b0119e15c82",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "vBc-7pEtxgo",
"name": "Mondoshawans And The Supreme Being",
"official": true,
"published_at": "2021-05-08T14:30:07.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "630de56318864b0080e5a88f",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "pqs9ycvKfD8",
"name": "StudioCanal Trailer",
"official": true,
"published_at": "2020-08-24T09:28:37.000Z",
"site": "YouTube",
"size": 720,
"type": "Trailer"
},
{
"id": "6279b86af6fd1800673d525d",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "FrEf8XHToGI",
"name": "Trailer",
"official": true,
"published_at": "2018-08-17T17:59:48.000Z",
"site": "YouTube",
"size": 1080,
"type": "Trailer"
},
{
"id": "578e4e63c3a3685acb013412",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "7-9mTiBawSM",
"name": "Clip",
"official": true,
"published_at": "2013-12-26T18:42:38.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
New Request
18
Show child attributes
[
{
"id": "630de5d1ae384300790860ea",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "rwU0aYVc8cQ",
"name": "Film Facts from The Fifth Element | #shorts",
"official": true,
"published_at": "2022-07-19T19:59:03.000Z",
"site": "YouTube",
"size": 720,
"type": "Featurette"
},
{
"id": "630cc36fdcb6a300835a3611",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "4L3Yvk-Tld0",
"name": "25th Anniversary Fathom Event",
"official": true,
"published_at": "2022-05-25T20:40:37.000Z",
"site": "YouTube",
"size": 1080,
"type": "Teaser"
},
{
"id": "6279b760160e730067acc54a",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "5Sg2RkdkSvk",
"name": "Anniversary Trailer",
"official": true,
"published_at": "2022-05-09T22:50:06.000Z",
"site": "YouTube",
"size": 1080,
"type": "Trailer"
},
{
"id": "645a1dd577d23b00fccb6751",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "KXwqUMkXFiI",
"name": "Zorg Being Iconic for 10 Minutes",
"official": true,
"published_at": "2021-05-31T14:30:09.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d5177d23b00fccb6707",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "FsJp7YGLXLU",
"name": "Connecting The Elements",
"official": true,
"published_at": "2021-05-16T14:30:02.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d61156cc700e39e88ba",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "AqipzHYdMS4",
"name": "Mangalore Crew Attacks",
"official": true,
"published_at": "2021-05-13T14:30:01.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1da13fe1600172250786",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "bSi7h_A-Jrc",
"name": "Leeloo Fights Off The Mangalore",
"official": true,
"published_at": "2021-05-12T14:30:03.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d8e6aa8e0011ca1d3ae",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "LNOA3OX2k-8",
"name": "Korben Helps Leeloo Escape",
"official": true,
"published_at": "2021-05-11T14:30:02.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d6e77d23b017037f352",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "zgDvltS4XV8",
"name": "Mondoshawan Spacecraft Is Ambushed",
"official": true,
"published_at": "2021-05-09T14:30:07.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "645a1d4377d23b0119e15c82",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "vBc-7pEtxgo",
"name": "Mondoshawans And The Supreme Being",
"official": true,
"published_at": "2021-05-08T14:30:07.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
},
{
"id": "630de56318864b0080e5a88f",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "pqs9ycvKfD8",
"name": "StudioCanal Trailer",
"official": true,
"published_at": "2020-08-24T09:28:37.000Z",
"site": "YouTube",
"size": 720,
"type": "Trailer"
},
{
"id": "6279b86af6fd1800673d525d",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "FrEf8XHToGI",
"name": "Trailer",
"official": true,
"published_at": "2018-08-17T17:59:48.000Z",
"site": "YouTube",
"size": 1080,
"type": "Trailer"
},
{
"id": "578e4e63c3a3685acb013412",
"iso_3166_1": "US",
"iso_639_1": "en",
"key": "7-9mTiBawSM",
"name": "Clip",
"official": true,
"published_at": "2013-12-26T18:42:38.000Z",
"site": "YouTube",
"size": 1080,
"type": "Clip"
}
]