Doiciméadú API

Chun praghsáil API a fheiceáil, cliceáil anseo

Tá API Yout.com á óstáil ag dvr.yout.com .


Fíordheimhniú

Chun rochtain a fháil ar Yout.com API, ní mór duit d'eochair API uathúil a chur san áireamh. Is féidir leat eochair API a fháil trí do sheoladh ríomhphoist a shíniú. Cuimhnigh le do thoil d'eochair API a choinneáil faoi rún.

Déantar fíordheimhniú leis an API a láimhseáil trí cheanntásca HTTP. Teastaíonn ceanntásc Údaraithe le gach iarratas ina bhfuil d’eochair API san eochair fhormáide: YOUR_API_KEY , áit arb í YOUR_API_KEY an eochair atá ar fáil ar leathanach do chuntais.

Ar mhaithe le slándáil, ní mór gach iarratas a sheoladh thar nasc HTTPS criptithe chun do shonraí a chosaint le linn tarchurtha.


Aistriú bhformáid mp3

Seol URL físe/fuaime chuig an Yout.com API chun formáid MP3 a athrú. Braithfidh an API an fhuaim/físeán go huathoibríoch agus ullmhóidh sé é don athsheinm is fearr ar ghléasanna éagsúla.

Sampla le haghaidh athrú i bhformáid mp3

Cuir d'eochair API uathúil in ionad YOUR_API_KEY (le fáil ar leathanach do chuntais Yout.com) agus cuir an URL fuaime/físe ina ionad AUDIO_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}"

Aistriú formáid MP4

Seol URL físe/fuaime chuig an API Yout.com chun formáid MP4 a aistriú. Braithfidh an API an fhuaim/físeán go huathoibríoch agus ullmhóidh sé é don athsheinm is fearr ar ghléasanna éagsúla.

Sampla le haghaidh Aistriú Formáid MP4

Cuir d'eochair API uathúil in ionad YOUR_API_KEY (le fáil ar leathanach do chuntais Yout.com) agus cuir an URL fuaime/físe ina ionad VIDEO_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}"

Glossary of parameters

video_url
string (required)

An URL fuaime/físe i base64. Seiceáil na leathanaigh go léir a dtacaímid leo. Cliceáil anseo

start_time
int

Úsáidtear é seo chun an fhuaim nó an fhís a bhearradh agus seasann sé don dara ceann ar mian leat an taifeadadh fuaime/físeán a thosú. Is féidir leat false a sheoladh chun a chur in iúl gur chóir go dtosódh sé ón 0ú soicind.

end_time
int / bool (false)

Úsáidtear é seo chun an fhuaim nó an fhís a bhearradh agus is ionann é agus an dara ceann ar mian leat go gcríochnódh an taifeadadh fuaime/físeán. Is féidir leat <code>false</code> a sheoladh mura bhfuil tú ag iarraidh an fhuaim/físeán a bhearradh.

title
string (required)

An teideal faoina ndéanfar an fhuaim/fís a thaifeadadh; úsáidtear é freisin chun an comhad a ghintear a ainmniú.

artist
string

Ainm an ealaíontóra faoina ndéanfar an comhad a thaifeadadh.

audio_quality
string

An cháilíocht ag a ndéanfar an comhad fuaime a thaifeadadh. Is iad na cáilíochtaí atá ar fáil ná 32k , 64k , 128k , 256k , nó 320k .

video_quality
string

An cháilíocht ag a ndéanfar an comhad físe a thaifeadadh. Is iad na cáilíochtaí atá ar fáil ná 144 , 240 , 360 , 480 , 720 (Do HD), 1080 (Do UHD), 2160 (Do 4k), nó 4320 (Do 8k).

Liostáil lenár nuachtlitir

Fúinn API Beartas Príobháideachta Téarmaí seirbhíse Déan Teagmháil Linn Lean muid ar BlueSky

2026 Yout LLC | Déanta ag nadermx