AI-assistenter

ChatGPT Video Downloader

Använd ChatGPT Video Downloader med Hunt
ChatGPT Video Downloader med HuntAPI

Använd ChatGPT med HuntAPI för att ladda ner videor, extrahera ljud och hämta metadata - utan att lämna chatten. Ideal för Custom GPTs, Actions och agents.

Vad du kan göra

  • Klistra in en YouTube- (eller annan) URL i ChatGPT och få en fil-URL
  • Extrahera endast ljud (download_type=audio)
  • Hämta titel, längd och thumbnail via https://api.huntapi.com/v1/media/metadata före nedladdning
  • Följ progress (0–100) genom att polla https://api.huntapi.com/v1/jobs/{id}

Snabbstart

Hunt-nedladdningar är asynkrona. ChatGPT bör:

  1. Anropa download-endpoint → få job_id
  2. Polla jobs tills status = CompletedJob
  3. Returnera result.response (CDN-URL) och result.metadata

Steg 1: starta nedladdning

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

Svar:

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

Steg 2: status och progress

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

Pågår:

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

Klar:

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

Polla var 1–2:e sekund medan status är Queued eller Running.

Valfritt: bara metadata (ingen nedladdning)

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

Synkront - returnerar omedelbart { "metadata": { ... } }.

Konfigurera ChatGPT Actions

  1. Skapa en Custom GPTConfigureActionsCreate new action
  2. Importera ett OpenAPI-schema med:
    • GET https://api.huntapi.com/v1/video/download
    • GET https://api.huntapi.com/v1/jobs/{id}
    • (valfritt) GET https://api.huntapi.com/v1/media/metadata
  3. Auth: API Key-header x-api-key
  4. Server-URL: https://api.huntapi.com
  5. Be GPT:n polla till CompletedJob och dela fil-URL:en

Exempel på systemprompt (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.

Användbara query-parametrar

ParamVärdenAnteckningar
queryURLObligatorisk
download_typeaudio_video, audio, videoaudio för MP3
video_qualitybest, 1080p, 720p, …Långa videor (>1h) begränsade till 720p
video_formatmp4, webm, mkvPreferens

Relaterat

VIDEO API

Discover why Hunt is the preferred API provider for developers.