Skip to content

Remote-URL Audioextraktions-API (/v1/files/fetch-url) ​

OneASR enthält einen integrierten Remote-Medienextraktor (unterstützt durch yt-dlp und ffmpeg), der 16-kHz-Audio aus Web-Video- und Audiolinks herunterlädt und extrahiert.


1. Remote-Abrufaufgabe übermitteln ​

http
POST /v1/files/fetch-url
Authorization: Bearer sk-oneasr-...
Content-Type: application/json

{
  "url": "https://www.youtube.com/watch?v=example",
  "extract_audio": true,
  "format": "mp3"
}

Antwort: ​

json
{
  "task_id": "fetch_9d8e7f6a5b4c3d2e",
  "status": "downloading",
  "url": "https://www.youtube.com/watch?v=example"
}

2. Download-Fortschritt abfragen ​

http
GET /v1/files/fetch-url/fetch_9d8e7f6a5b4c3d2e
Authorization: Bearer sk-oneasr-...

Antwort (Abgeschlossen): ​

json
{
  "task_id": "fetch_9d8e7f6a5b4c3d2e",
  "status": "completed",
  "file_id": "file_4a2c9b1e0f3d5a7b",
  "title": "Engineering Keynote 2026",
  "duration": 3600.0
}