API para desenvolvedores
Adicione downloads de vídeo ao seu próprio app ou site. Envie um link com sua chave de API e receba todos os formatos disponíveis em JSON. Peça uma chave pela página de contato.
Requisição
curl -H "X-API-Key: aio_xxxxxxxx" "https://downloaderso.com/api/v1/download?url=https://youtu.be/jNQXAC9IVRw"Resposta
{
"ok": true,
"platform": "Youtube",
"items": [{
"title": "Me at the zoo",
"thumbnail": "https://…",
"duration": 19,
"options": [
{ "kind": "video", "label": "240p", "ext": "mp4", "size": 629172,
"mode": "direct", "url": "https://downloaderso.com/dl/download?t=…" },
{ "kind": "audio", "label": "MP3 192kbps", "ext": "mp3", "mode": "job",
"convert": { "method": "POST", "url": "https://downloaderso.com/api/v1/jobs", "body": { "token": "…" } } }
]
}]
}Conversões (MP3, HD combinado)
curl -X POST -H "X-API-Key: aio_xxxxxxxx" -H "Content-Type: application/json" -d '{"token":"…"}' https://downloaderso.com/api/v1/jobs
# → {"ok":true,"id":"AbC…","status":"https://downloaderso.com/api/v1/jobs/AbC…"}
curl -H "X-API-Key: aio_xxxxxxxx" https://downloaderso.com/api/v1/jobs/AbC…
# → {"ok":true,"status":"done","progress":100,"url":"https://downloaderso.com/dl/jobs/AbC…/file"}Os erros retornam um corpo JSON como {"error": "unsupported"} com um status HTTP: 401 chave inválida, 403 IP não permitido, 422 não foi possível baixar, 429 cota atingida.
Widget incorporável
Cole este código em qualquer página para exibir o downloader nela. Não precisa de chave.
<iframe src="https://downloaderso.com/embed/pt" width="100%" height="560"
style="border:0;max-width:720px" loading="lazy" title="Video downloader"></iframe>