Asystenci AI

ChatGPT Video Downloader

Użyj ChatGPT Video Downloader z Hunt
ChatGPT Video Downloader z HuntAPI

Użyj ChatGPT z HuntAPI, aby pobierać wideo, wyciągać audio i pobierać metadane - bez opuszczania czatu. Idealne do Custom GPT, Actions i agentów.

Co możesz zrobić

  • Wkleić URL YouTube (lub inny) w ChatGPT i dostać URL pliku
  • Wyciągnąć tylko audio (download_type=audio)
  • Pobrać tytuł, czas i miniaturę przez https://api.huntapi.com/v1/media/metadata przed downloadem
  • Śledzić postęp (0–100) pollując https://api.huntapi.com/v1/jobs/{id}

Szybki start

Downloady Hunt są asynchroniczne. ChatGPT powinien:

  1. Wywołać endpoint download → dostać job_id
  2. Pollować jobs aż status = CompletedJob
  3. Zwrócić result.response (URL CDN) i result.metadata

Krok 1: uruchom download

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

Odpowiedź:

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

Krok 2: status i postęp

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

W toku:

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

Gotowe:

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

Polluj co 1–2 sekundy, gdy status to Queued lub Running.

Opcjonalnie: tylko metadane (bez downloadu)

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

Synchronicznie - od razu zwraca { "metadata": { ... } }.

Konfiguracja ChatGPT Actions

  1. Utwórz Custom GPTConfigureActionsCreate new action
  2. Zaimportuj schemat OpenAPI z:
    • GET https://api.huntapi.com/v1/video/download
    • GET https://api.huntapi.com/v1/jobs/{id}
    • (opcjonalnie) GET https://api.huntapi.com/v1/media/metadata
  3. Auth: header API Key x-api-key
  4. Server URL: https://api.huntapi.com
  5. Poleć GPT pollować do CompletedJob i udostępnić URL pliku

Przykładowy 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.

Przydatne parametry

ParamWartościUwagi
queryURLWymagane
download_typeaudio_video, audio, videoaudio dla MP3
video_qualitybest, 1080p, 720p, …Długie wideo (>1h) ograniczone do 720p
video_formatmp4, webm, mkvPreferencja

Powiązane

VIDEO API

Discover why Hunt is the preferred API provider for developers.