Automatisierung & Workflow

YouTube-Videos mit Make herunterladen

YouTube-Videos mit Make herunterladen mit Hunt verwenden
Make-Automatisierung mit HuntAPI Video-Download

Bauen Sie Video-Download-Workflows mit Make und HuntAPI. Archivieren Sie Inhalte, extrahieren Sie Audio für Podcasts und leiten Sie CDN-URLs an Drive, Slack oder Ihr CMS weiter.

Schnellstart

Hunt-Downloads sind asynchron. In Make: HTTP-Module plus Sleep/Repeat:

  1. HTTP GET https://api.huntapi.com/v1/video/download?query=...job_id
  2. Sleep 5-10 Sekunden
  3. HTTP GET https://api.huntapi.com/v1/jobs/{job_id}
  4. Router / Filter: wenn statusCompletedJob, zurück zu Sleep; sonst weiter
  5. result.response als Datei-URL nutzen

Header bei jedem Hunt-Call: x-api-key: YOUR_API_KEY

Download starten

GET https://api.huntapi.com/v1/video/download?query=https://www.youtube.com/watch?v=VIDEO_ID&video_quality=720p
x-api-key: YOUR_API_KEY
{ "job_id": "0193443f-fb80-9d19-29ba-82bc77c7cd84" }

Job pollen (Running)

{
  "status": "Running",
  "progress": 63,
  "result": null
}

progress ist 0-100. In Make können Sie auf progress branchen solange Running.

Fertig

{
  "status": "CompletedJob",
  "progress": 100,
  "result": {
    "metadata": { "title": "Example video", "duration": 432 },
    "response": "https://s3.huntapi.com/videos/<uuid>.mp4"
  }
}

Metadaten ohne Download

GET https://api.huntapi.com/v1/media/metadata?query=https://www.youtube.com/watch?v=VIDEO_ID
x-api-key: YOUR_API_KEY

Dieses Modul zuerst nutzen, um zu lange Downloads zu überspringen.

Make-Szenario

  1. Trigger: Webhook, Google Sheets oder RSS
  2. HTTP - Metadata (optional)
  3. Filter: nur wenn metadata.duration < Limit
  4. HTTP - Download
  5. Repeater / Sleep: pollen bis CompletedJob oder Error
  6. result.response an Drive / Dropbox / Slack

Alternative zum Polling: webhook_url am Download-Call, zweites Szenario für das Ergebnis.

Nützliche Parameter

ParamValuesNotes
queryURLRequired
download_typeaudio_video, audio, videoaudio for MP3
video_qualitybest, 1080p, 720p, …Long videos (>1h) capped at 720p
webhook_urlURLOptional callback instead of polling

Verwandt

VIDEO API

Discover why Hunt is the preferred API provider for developers.