Assistentes de IA

ChatGPT Video Downloader

Usar ChatGPT Video Downloader com Hunt
ChatGPT Video Downloader com HuntAPI

Use o ChatGPT com a HuntAPI para descarregar vídeos, extrair áudio e obter metadados sem sair do chat. Ideal para Custom GPTs, Actions e agentes.

O que pode fazer

  • Colar um URL do YouTube (ou outro) no ChatGPT e obter um URL de ficheiro
  • Extrair só áudio (download_type=audio)
  • Obter título, duração e thumbnail via https://api.huntapi.com/v1/media/metadata antes do download
  • Acompanhar o progresso (0–100) com poll em https://api.huntapi.com/v1/jobs/{id}

Início rápido

Os downloads Hunt são assíncronos. O ChatGPT deve:

  1. Chamar o endpoint de download → receber job_id
  2. Fazer poll até status = CompletedJob
  3. Devolver result.response (URL CDN) e result.metadata

Passo 1: iniciar download

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

Resposta:

{
  "job_id": "0193443f-fb80-9d19-29ba-82bc77c7cd84"
}

Passo 2: estado e progresso

GET https://api.huntapi.com/v1/jobs/0193443f-fb80-9d19-29ba-82bc77c7cd84
x-api-key: YOUR_API_KEY

Em execução:

{
  "id": "0193443f-fb80-9d19-29ba-82bc77c7cd84",
  "status": "Running",
  "progress": 63,
  "result": null
}

Concluído:

{
  "id": "0193443f-fb80-9d19-29ba-82bc77c7cd84",
  "status": "CompletedJob",
  "success": true,
  "progress": 100,
  "result": {
    "metadata": {
      "title": "Example video",
      "duration": 432,
      "thumbnail": "https://i.ytimg.com/vi/.../maxresdefault.jpg"
    },
    "response": "https://s3.huntapi.com/videos/<uuid>.mp4"
  }
}

Faça poll a cada 1–2 segundos enquanto status for Queued ou Running.

Opcional: só metadados (sem download)

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

Síncrono - devolve { "metadata": { ... } } de imediato.

Configurar ChatGPT Actions

  1. Crie um Custom GPTConfigureActionsCreate new action
  2. Importe um esquema OpenAPI com:
    • GET https://api.huntapi.com/v1/video/download
    • GET https://api.huntapi.com/v1/jobs/{id}
    • (opcional) GET https://api.huntapi.com/v1/media/metadata
  3. Auth: header API Key x-api-key
  4. Server URL: https://api.huntapi.com
  5. Instrua o GPT a fazer poll até CompletedJob e partilhar o URL

Exemplo de system prompt (Custom GPT)

You are a video downloader assistant powered by HuntAPI.
When the user pastes a video URL:
1) Optionally call https://api.huntapi.com/v1/media/metadata to confirm title/duration.
2) Call /v1/video/download with query=<url>.
3) Poll /v1/jobs/{job_id} every 2 seconds until status is CompletedJob.
4) Return the CDN URL from result.response and a short summary from result.metadata.
Never invent download links. If status is Error/NotFound, explain the error clearly.

Parâmetros úteis

ParamValoresNotas
queryURLObrigatório
download_typeaudio_video, audio, videoaudio para MP3
video_qualitybest, 1080p, 720p, …Vídeos longos (>1h) limitados a 720p
video_formatmp4, webm, mkvPreferência

Relacionado

VIDEO API

Discover why Hunt is the preferred API provider for developers.