API വിലനിർണ്ണയത്തിനായി ഇവിടെ ക്ലിക്ക് ചെയ്യുക
Yout.com API dvr.yout.com
ൽ ഹോസ്റ്റ് ചെയ്തിരിക്കുന്നു.
Yout.com API ആക്സസ് ചെയ്യുന്നതിന്, നിങ്ങളുടെ തനതായ API കീ ഉൾപ്പെടുത്തണം. നിങ്ങളുടെ ഇമെയിൽ വിലാസം ഉപയോഗിച്ച് സൈൻ അപ്പ് ചെയ്യുന്നതിലൂടെ നിങ്ങൾക്ക് ഒരു API കീ ലഭിക്കും. നിങ്ങളുടെ API കീ രഹസ്യമായി സൂക്ഷിക്കാൻ ഓർക്കുക.
API ഉപയോഗിച്ചുള്ള പ്രാമാണീകരണം HTTP ഹെഡറുകൾ വഴിയാണ് കൈകാര്യം ചെയ്യുന്നത്. എല്ലാ അഭ്യർത്ഥനകൾക്കും ഫോർമാറ്റ് കീയിൽ നിങ്ങളുടെ API കീ അടങ്ങിയ ഒരു അംഗീകൃത തലക്കെട്ട് ആവശ്യമാണ്: YOUR_API_KEY
, നിങ്ങളുടെ അക്കൗണ്ട് പേജിൽ ലഭ്യമായ കീയാണ് YOUR_API_KEY
.
സുരക്ഷയ്ക്കായി, ട്രാൻസ്മിഷൻ സമയത്ത് നിങ്ങളുടെ ഡാറ്റ പരിരക്ഷിക്കുന്നതിന് എല്ലാ അഭ്യർത്ഥനകളും എൻക്രിപ്റ്റ് ചെയ്ത HTTPS കണക്ഷനിലൂടെ അയയ്ക്കണം.
MP3 ഫോർമാറ്റ്-ഷിഫ്റ്റിംഗിനായി Yout.com API-ലേക്ക് വീഡിയോ/ഓഡിയോ URL അയയ്ക്കുക. API സ്വയമേവ ഓഡിയോ/വീഡിയോ കണ്ടെത്തുകയും വിവിധ ഉപകരണങ്ങളിൽ ഒപ്റ്റിമൽ പ്ലേബാക്കിനായി തയ്യാറാക്കുകയും ചെയ്യും.
MP3 ഫോർമാറ്റ്-ഷിഫ്റ്റിംഗിനുള്ള ഉദാഹരണം
YOUR_API_KEY
മാറ്റി നിങ്ങളുടെ അദ്വിതീയ API കീ (നിങ്ങളുടെ Yout.com അക്കൗണ്ട് പേജിൽ കാണപ്പെടുന്നു) ഉപയോഗിച്ച് മാറ്റി AUDIO_URL മാറ്റി ഓഡിയോ/വീഡിയോ URL:
import requests
import base64
headers = {"Authorization": "API_KEY"}
video_url = base64.b64encode("VIDEO_URL".encode()).decode()
r = requests.post(
url="https://dvr.yout.com/mp3",
headers=headers,
data={
"video_url": video_url,
"start_time": False,
"end_time": False,
"title": "Hello world",
"artist": "Hello world",
"audio_quality": '128k',
}
)
if r.status_code == 200:
with open("audio.mp3", "wb") as fd:
for chunk in r.iter_content(chunk_size=128):
fd.write(chunk)
else:
print(r.status_code)
print(r.text)
const axios = require('axios');
const headers = {
Authorization: "API_KEY"
};
const videoUrl = Buffer.from("VIDEO_URL").toString('base64');
const data = {
video_url: videoUrl,
start_time: false,
end_time: false,
title: "Hello world",
artist: "Hello world",
audio_quality: "128k"
};
axios
.post("https://dvr.yout.com/mp3", data, { headers })
.then(response => {
const fs = require('fs');
const fileStream = fs.createWriteStream("audio.mp3");
response.data.pipe(fileStream);
fileStream.on('finish', () => {
console.log("Archivo descargado con éxito como audio.mp3");
});
fileStream.on('error', error => {
console.error("Error al escribir el archivo:", error);
});
})
.catch(error => {
console.error("Error en la solicitud:", error);
});
<?php
$video_url = base64_encode("VIDEO_URL");
$data = [
"video_url" => $video_url,
"start_time" => "false",
"end_time" => "false",
"title" => "Hello world",
"artist" => "Hello world",
"audio_quality" => "128k",
"format" => "mp3"
];
$postData = http_build_query($data);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://dvr.yout.com/mp3");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: API_KEY",
"Content-Type: application/x-www-form-urlencoded"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($httpCode === 200) {
file_put_contents("audio.mp3", $response);
echo "✅ audio.mp3";
} else {
echo "❌ $httpCode\n";
echo $response;
}
?>
curl -L -X POST "https://dvr.yout.com/mp3" \
-H "Authorization: API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "video_url=$(echo -n 'VIDEO_URL' | base64)" \
--data-urlencode "start_time=false" \
--data-urlencode "end_time=false" \
--data-urlencode "title=Hello world" \
--data-urlencode "artist=Hello world" \
--data-urlencode "audio_quality=128k" \
--data-urlencode "format=mp3" \
--output "audio.mp3" --silent --show-error --write-out "\nHTTP_STATUS=%{http_code}"
MP4 ഫോർമാറ്റ് ഷിഫ്റ്റിംഗിനായി Yout.com API-ലേക്ക് വീഡിയോ/ഓഡിയോ URL അയയ്ക്കുക. API സ്വയമേവ ഓഡിയോ/വീഡിയോ കണ്ടെത്തുകയും വിവിധ ഉപകരണങ്ങളിൽ ഒപ്റ്റിമൽ പ്ലേബാക്കിനായി തയ്യാറാക്കുകയും ചെയ്യും.
MP4 ഫോർമാറ്റ്-ഷിഫ്റ്റിംഗിനുള്ള ഉദാഹരണം
YOUR_API_KEY
നിങ്ങളുടെ തനതായ API കീ ഉപയോഗിച്ച് മാറ്റിസ്ഥാപിക്കുക (നിങ്ങളുടെ Yout.com അക്കൗണ്ട് പേജിൽ കാണപ്പെടുന്നു) കൂടാതെ VIDEO_URL മാറ്റി ഓഡിയോ/വീഡിയോ URL:
import requests
import base64
headers = {"Authorization": "API_KEY"}
video_url = base64.b64encode("VIDEO_URL".encode()).decode()
r = requests.post(
url="https://dvr.yout.com/mp4",
headers=headers,
data={
"video_url": video_url,
"start_time": False,
"end_time": False,
"title": "hello world",
"video_quality": 720
}
)
if r.status_code == 200:
with open("video.mp4", "wb") as fd:
for chunk in r.iter_content(chunk_size=128):
fd.write(chunk)
else:
print(r.status_code)
print(r.text)
const axios = require('axios');
const headers = {
Authorization: "API_KEY"
};
const videoUrl = Buffer.from("VIDEO_URL").toString('base64');
const data = {
video_url: videoUrl,
start_time: false,
end_time: false,
title" "hello world",
video_quality: 720
};
axios
.post("https://dvr.yout.com/mp3", data, { headers })
.then(response => {
const fs = require('fs');
const fileStream = fs.createWriteStream("audio.mp3");
response.data.pipe(fileStream);
fileStream.on('finish', () => {
console.log("Archivo descargado con éxito como audio.mp3");
});
fileStream.on('error', error => {
console.error("Error al escribir el archivo:", error);
});
})
.catch(error => {
console.error("Error en la solicitud:", error);
});
<?php
$video_url = base64_encode("VIDEO_URL");
$data = [
"video_url" => $video_url,
"start_time" => "false",
"end_time" => "false",
"title" => "Hello world",
"video_quality" => "720"
];
$postData = http_build_query($data);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://dvr.yout.com/mp4");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: API_KEY",
"Content-Type: application/x-www-form-urlencoded"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($httpCode === 200) {
file_put_contents("video.mp4", $response);
echo "✅ video.mp4";
} else {
echo "❌ $httpCode\n";
echo $response;
}
?>
curl -L -X POST "https://dvr.yout.com/mp4" \
-H "Authorization: API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "video_url=$(echo -n 'VIDEO_URL' | base64)" \
--data-urlencode "start_time=false" \
--data-urlencode "end_time=false" \
--data-urlencode "title=hello world" \
--data-urlencode "video_quality=720" \
--data-urlencode "format=mp4" \
--output video.mp4 --silent --show-error --write-out "\nHTTP_STATUS=%{http_code}"
ബേസ്64-ലെ ഓഡിയോ/വീഡിയോ URL. ഞങ്ങൾ പിന്തുണയ്ക്കുന്ന എല്ലാ പേജുകളും പരിശോധിക്കുക. ഇവിടെ ക്ലിക്ക് ചെയ്യുക
ഇത് ഓഡിയോ അല്ലെങ്കിൽ വീഡിയോ ട്രിം ചെയ്യാൻ ഉപയോഗിക്കുന്നു കൂടാതെ ഓഡിയോ/വീഡിയോ റെക്കോർഡിംഗ് ആരംഭിക്കാൻ നിങ്ങൾ ആഗ്രഹിക്കുന്ന രണ്ടാമത്തേതിനെ പ്രതിനിധീകരിക്കുന്നു. 0-ആം സെക്കൻഡിൽ നിന്ന് ആരംഭിക്കണമെന്ന് സൂചിപ്പിക്കാൻ നിങ്ങൾക്ക് false
അയയ്ക്കാൻ കഴിയും.
ഇത് ഓഡിയോ അല്ലെങ്കിൽ വീഡിയോ ട്രിം ചെയ്യാൻ ഉപയോഗിക്കുന്നു, കൂടാതെ ഓഡിയോ/വീഡിയോ റെക്കോർഡിംഗ് അവസാനിപ്പിക്കാൻ നിങ്ങൾ ആഗ്രഹിക്കുന്ന രണ്ടാമത്തേതിനെ പ്രതിനിധീകരിക്കുന്നു. നിങ്ങൾക്ക് ഓഡിയോ/വീഡിയോ ട്രിം ചെയ്യാൻ താൽപ്പര്യമില്ലെങ്കിൽ നിങ്ങൾക്ക് <code>false</code> അയയ്ക്കാം.
ഓഡിയോ/വീഡിയോ റെക്കോർഡ് ചെയ്യേണ്ട ശീർഷകം; ജനറേറ്റ് ചെയ്ത ഫയലിന് പേരിടാനും ഇത് ഉപയോഗിക്കുന്നു.
ഫയൽ റെക്കോർഡ് ചെയ്യുന്ന ആർട്ടിസ്റ്റിൻ്റെ പേര്.
ഓഡിയോ ഫയൽ റെക്കോർഡ് ചെയ്യപ്പെടുന്ന ഗുണനിലവാരം. 32k
, 64k
, 128k
, 256k
, അല്ലെങ്കിൽ 320k
എന്നിവയാണ് ലഭ്യമായ ഗുണങ്ങൾ.
വീഡിയോ ഫയൽ റെക്കോർഡ് ചെയ്യപ്പെടുന്ന ഗുണനിലവാരം. 144
, 240
, 360
, 480
, 720
(HD യ്ക്ക്), 1080
(UHD-യ്ക്ക്), 2160
(4k-ന്), അല്ലെങ്കിൽ 4320
(8k-ന്) എന്നിവയാണ് ലഭ്യമായ ഗുണങ്ങൾ.