Automatisering & Workflow

Download YouTube-videoer med Make

Brug Download YouTube-videoer med Make med Hunt
Make-automatisering med HuntAPI video download

Byg video-downloadworkflows med Make og HuntAPI. Arkivér indhold, udtræk lyd til podcasts og send CDN-URL’er til Drive, Slack eller dit CMS.

Hurtig start

Hunt-downloads er asynkrone. I Make: HTTP-moduler + sleep/repeat:

  1. HTTP download → job_id
  2. Sleep 5-10 sekunder
  3. HTTP jobs
  4. Router: hvis ikke CompletedJob, tilbage til Sleep
  5. Brug result.response

Header: x-api-key: YOUR_API_KEY

Start download

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

Poll job (Running)

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

progress er 0-100.

Fuldført

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

Metadata uden download

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

Brug metadata først for at springe for lange downloads over.

Make-scenarie

  1. Trigger → 2. Metadata valgfrit → 3. Filter varighed → 4. Download → 5. Poll-loop → 6. Send CDN-URL

Alternativ: webhook_url på download-kaldet.

Nyttige parametre

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

Relateret

VIDEO API

Discover why Hunt is the preferred API provider for developers.