Movie Downloads
curl --request GET \
--url http://localhost:7860/api/downloads/movie/{tmdb_id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:7860/api/downloads/movie/{tmdb_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:7860/api/downloads/movie/{tmdb_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "7860",
CURLOPT_URL => "http://localhost:7860/api/downloads/movie/{tmdb_id}",
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 := "http://localhost:7860/api/downloads/movie/{tmdb_id}"
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("http://localhost:7860/api/downloads/movie/{tmdb_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:7860/api/downloads/movie/{tmdb_id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"downloads": [
{
"url": "<string>",
"quality": "<string>",
"size": {},
"format": "<string>",
"server": "<string>"
}
]
}Downloads
Movie Downloads
Fetch direct download links for a movie with quality labels and file sizes.
GET
/
api
/
downloads
/
movie
/
{tmdb_id}
Movie Downloads
curl --request GET \
--url http://localhost:7860/api/downloads/movie/{tmdb_id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:7860/api/downloads/movie/{tmdb_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:7860/api/downloads/movie/{tmdb_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "7860",
CURLOPT_URL => "http://localhost:7860/api/downloads/movie/{tmdb_id}",
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 := "http://localhost:7860/api/downloads/movie/{tmdb_id}"
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("http://localhost:7860/api/downloads/movie/{tmdb_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:7860/api/downloads/movie/{tmdb_id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"downloads": [
{
"url": "<string>",
"quality": "<string>",
"size": {},
"format": "<string>",
"server": "<string>"
}
]
}Returns direct download links for a movie. Each link comes with a quality label, file size, and format — useful for building download buttons or offline-capable applications. Requires a
standard or partner API key.
Path Parameters
string
required
TMDB movie ID.
Request
curl http://localhost:7860/api/downloads/movie/550 \
--header "Authorization: Bearer YOUR_API_KEY"
const res = await fetch('http://localhost:7860/api/downloads/movie/550', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
const data = await res.json();
data.downloads.forEach(dl => {
console.log(`${dl.quality} (${dl.size}): ${dl.url}`);
});
import requests
data = requests.get(
'http://localhost:7860/api/downloads/movie/550',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
).json()
for dl in data['downloads']:
print(f"{dl['quality']} ({dl['size']}): {dl['url']}")
Response
{
"downloads": [
{
"url": "https://...",
"quality": "1080p",
"size": "2.14 GB",
"format": "MP4",
"server": "1"
},
{
"url": "https://...",
"quality": "720p",
"size": "1.08 GB",
"format": "MP4",
"server": "2"
},
{
"url": "https://...",
"quality": "480p",
"size": "512.00 MB",
"format": "MP4",
"server": "3"
}
]
}
Response Fields
Download[]
required
Array of available download options. Empty array if none are found.
Show Download object
Show Download object
Status Codes
| Status | Meaning |
|---|---|
200 | Downloads found and returned |
401 | Missing or invalid authentication |
403 | Key tier does not have download access (public key) |
500 | Server error |
Usage Pattern
async function addMovieDownloadButtons(tmdbId, containerEl) {
const res = await fetch(
`http://localhost:7860/api/downloads/movie/${tmdbId}`,
{ headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }
);
if (!res.ok) {
containerEl.textContent = 'No downloads available';
return;
}
const { downloads } = await res.json();
if (!downloads.length) {
containerEl.textContent = 'No downloads available';
return;
}
downloads.forEach(dl => {
const a = document.createElement('a');
a.href = dl.url;
a.target = '_blank';
a.rel = 'noopener noreferrer';
a.textContent = `Download ${dl.quality}${dl.size ? ` — ${dl.size}` : ''}${dl.server ? ` — Server ${dl.server}` : ''}`;
containerEl.appendChild(a);
});
}
Download links are sourced from a third-party provider and may expire or become unavailable. Always handle empty
downloads arrays and errors gracefully.
