API dokümantasyonu

API fiyatlandırması için buraya tıklayın

Yout.com API'si dvr.yout.com adresinde barındırılmaktadır.


Kimlik doğrulama

Yout.com API'sine erişmek için benzersiz API anahtarınızı eklemeniz gerekir. E-posta adresinizle kaydolarak bir API anahtarı edinebilirsiniz. Lütfen API anahtarınızı gizli tutmayı unutmayın.

API ile kimlik doğrulama HTTP başlıkları aracılığıyla gerçekleştirilir. Tüm istekler API anahtarınızı key: YOUR_API_KEY biçiminde içeren bir Yetkilendirme başlığı gerektirir, burada YOUR_API_KEY hesap sayfanızda bulunan anahtardır.

Güvenlik açısından, verilerinizin iletim sırasında korunması için tüm isteklerin şifrelenmiş bir HTTPS bağlantısı üzerinden gönderilmesi gerekir.


MP3 format değiştirme

MP3 format değiştirme için video/ses URL'sini Yout.com API'sine gönderin. API, sesi/videoyu otomatik olarak algılayacak ve çeşitli cihazlarda en iyi şekilde oynatılmaya hazırlayacaktır.

MP3 Format Değiştirme Örneği

YOUR_API_KEY benzersiz API anahtarınızla (Yout.com hesap sayfanızda bulunur) değiştirin ve AUDIO_URL'yi ses/video URL'siyle değiştirin:

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 format değiştirme

MP4 format değiştirme için video/ses URL'sini Yout.com API'sine gönderin. API, sesi/videoyu otomatik olarak algılayacak ve çeşitli cihazlarda en iyi şekilde oynatılmaya hazırlayacaktır.

MP4 Format Değiştirme Örneği

YOUR_API_KEY benzersiz API anahtarınızla (Yout.com hesap sayfanızda bulunur) değiştirin ve VIDEO_URL'yi ses/video URL'siyle değiştirin:

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}"

Glossary of parameters

video_url
string (required)

Base64'teki ses/video URL'si. Desteklediğimiz tüm sayfaları kontrol edin. Buraya tıklayın

start_time
int

Bu, sesi veya videoyu kırpmak için kullanılır ve ses/video kaydının başlamasını istediğiniz saniyeyi temsil eder. 0. saniyeden başlaması gerektiğini belirtmek için false gönderebilirsiniz.

end_time
int / bool (false)

Bu, sesi veya videoyu kırpmak için kullanılır ve ses/video kaydının bitmesini istediğiniz saniyeyi temsil eder. Ses/videoyu kırpmak istemiyorsanız <code>false</code> gönderebilirsiniz.

title
string (required)

Ses/görüntünün kaydedileceği başlık; aynı zamanda oluşturulan dosyaya isim vermek için de kullanılır.

artist
string

Dosyanın kaydedileceği sanatçının adı.

audio_quality
string

Ses dosyasının kaydedileceği kalite. Mevcut kaliteler 32k , 64k , 128k , 256k veya 320k .

video_quality
string

Video dosyasının kaydedileceği kalite. Kullanılabilir kaliteler 144 , 240 , 360 , 480 , 720 (HD için), 1080 (UHD için), 2160 (4k için) veya 4320 (8k için).

Subscribe to our newsletter

Hakkımızda API Gizlilik Politikası Hizmet Şartları Bize Ulaşın Bizi BlueSky'da takip edin

2026 Yout LLC | Tarafından yapıldı nadermx