Automatisation & Workflow

Télécharger des vidéos YouTube avec Make

Utiliser Télécharger des vidéos YouTube avec Make avec Hunt
Automatisation Make avec HuntAPI video download

Créez des workflows de téléchargement vidéo avec Make et HuntAPI. Archivez du contenu, extrayez l’audio pour des podcasts et envoyez les URL CDN vers Drive, Slack ou votre CMS.

Démarrage rapide

Les downloads Hunt sont asynchrones. Dans Make, utilisez des modules HTTP + sleep/repeat :

  1. HTTP GET https://api.huntapi.com/v1/video/download?query=...job_id
  2. Sleep 5-10 secondes
  3. HTTP GET https://api.huntapi.com/v1/jobs/{job_id}
  4. Router / filtre : si statusCompletedJob, revenir au Sleep ; sinon continuer
  5. Utiliser result.response comme URL du fichier

Header sur chaque appel Hunt : x-api-key: YOUR_API_KEY

Démarrer le 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" }

Poller le job (Running)

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

progress est 0-100. Vous pouvez brancher dans Make sur progress tant que status est Running.

Terminé

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

Métadonnées sans téléchargement

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

Utilisez ce module d’abord pour ignorer les downloads trop longs.

Trame de scénario Make

  1. Trigger : Webhook, Google Sheets ou RSS
  2. HTTP - Metadata (optionnel)
  3. Filter : continuer seulement si metadata.duration < votre limite
  4. HTTP - Download
  5. Repeater / Sleep : poller jusqu’à CompletedJob ou Error
  6. Envoyer result.response vers Drive / Dropbox / Slack

Alternative au polling : webhook_url sur l’appel download, puis second scénario.

Paramètres utiles

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

Voir aussi

VIDEO API

Discover why Hunt is the preferred API provider for developers.