Operating Principle
HuntAPI works with an asynchronous job system. Here are the steps to download a video:-
Create a Download Job
- Make a request to
GET /api/v1/video/download
with the video URL - You’ll receive a
job_id
in response
- Make a request to
-
Monitor Job Status
- Use the received
job_id
to check progress viaGET /api/v1/jobs/{job_id}
- You can make this request as many times as needed at no additional cost
- The status can be:
QueuedJob
: The job is being processedCompletedJob
: The job is complete
- Use the received
-
Get the Result
- Once the job is complete (
CompletedJob
), you’ll have access to the download URL in the response - The video remains available on our servers for 24 hours
- You must download it to your own server to keep it longer
- Once the job is complete (
HTTP Status Codes
201 Created
: Job successfully created and queued for processing200 OK
: Successfully retrieved job status or download information400 Bad Request
: Invalid input (malformed URL, unsupported video platform)404 Not Found
: Job ID doesn’t exist
Processing Time
Video downloads typically take between 2 and 30 minutes to complete. If processing hasn’t finished after 2 hours, the job will automatically timeout.Error Handling
If the download fails, it could be due to several reasons:- The video is private
- The video is no longer available
- The video has age restrictions
- A technical error from HuntAPI
Downloaded videos are automatically deleted from our servers after 24 hours. Make sure to save them before this time if needed.