Asystenci AI
ChatGPT Video Downloader
Użyj ChatGPT Video Downloader z HuntUż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/metadataprzed downloadem - Śledzić postęp (0–100) pollując
https://api.huntapi.com/v1/jobs/{id}
Szybki start
Downloady Hunt są asynchroniczne. ChatGPT powinien:
- Wywołać endpoint download → dostać
job_id - Pollować jobs aż
status=CompletedJob - Zwrócić
result.response(URL CDN) iresult.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
- Utwórz Custom GPT → Configure → Actions → Create new action
- Zaimportuj schemat OpenAPI z:
GET https://api.huntapi.com/v1/video/downloadGET https://api.huntapi.com/v1/jobs/{id}- (opcjonalnie)
GET https://api.huntapi.com/v1/media/metadata
- Auth: header API Key
x-api-key - Server URL:
https://api.huntapi.com - Poleć GPT pollować do
CompletedJobi 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
| Param | Wartości | Uwagi |
|---|---|---|
query | URL | Wymagane |
download_type | audio_video, audio, video | audio dla MP3 |
video_quality | best, 1080p, 720p, … | Długie wideo (>1h) ograniczone do 720p |
video_format | mp4, webm, mkv | Preferencja |
Powiązane
VIDEO API
Discover why Hunt is the preferred API provider for developers.