AI-assistenter
ChatGPT Video Downloader
Använd ChatGPT Video Downloader med HuntAnvä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/metadatafö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:
- Anropa download-endpoint → få
job_id - Polla jobs tills
status=CompletedJob - Returnera
result.response(CDN-URL) ochresult.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
- Skapa en Custom GPT → Configure → Actions → Create new action
- Importera ett OpenAPI-schema med:
GET https://api.huntapi.com/v1/video/downloadGET https://api.huntapi.com/v1/jobs/{id}- (valfritt)
GET https://api.huntapi.com/v1/media/metadata
- Auth: API Key-header
x-api-key - Server-URL:
https://api.huntapi.com - Be GPT:n polla till
CompletedJoboch 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
| Param | Värden | Anteckningar |
|---|---|---|
query | URL | Obligatorisk |
download_type | audio_video, audio, video | audio för MP3 |
video_quality | best, 1080p, 720p, … | Långa videor (>1h) begränsade till 720p |
video_format | mp4, webm, mkv | Preferens |
Relaterat
VIDEO API
Discover why Hunt is the preferred API provider for developers.