YouTube Video Batch Download API
/download/create/batch
API endpoint allows you to create batch download tasks for multiple YouTube videos.
API Details
Endpoint
POST https://serpapi.abcproxy.com/download/create/batch
Description
This API creates a batch download job for multiple YouTube videos specified by their video IDs. The downloaded videos will be stored in the specified cloud storage and a callback will be sent to the provided URL upon completion.
Request
HTTP Request
Parameters
Request Body
video_ids
string[]
Yes
List of YouTube video IDs to download
["9cQBNYsCqQs", "KGOsWPF4Wfs"]
proxy_api_key
string
Yes
Proxy API key for authentication
"xxxxx"
storage_type
string
Yes
Object storage type (default, minio, oss, s3_compatible)
"oss"
storage_url
string
Yes
Cloud storage URL with credentials
"https://ACCESS_KEY:SECRET_KEY@oss-cn-beijing.aliyuncs.com/your-bucket/your-folder"
callback_url
string
Yes
URL to receive callback notification
"https://your-callback-url.com"
Response
Success 200
Response Body
Response Fields
code
integer
Response code (200 for success)
msg
string
Response message
data.batch_id
string
Unique ID for the batch download job
Error Responses
Common Errors
400
Missing required parameters
One or more required parameters are missing
401
Invalid proxy API key
The provided proxy API key is invalid
500
Internal server error
An error occurred while processing the request
Error Example
Notes
The
storage_type
parameter accepts the following values:default
: Default storageminio
: Minio object storageoss
: Alibaba Cloud OSSs3_compatible
: S3-compatible storage
The
storage_url
should include authentication credentials in the format:https://ACCESS_KEY:SECRET_KEY@storage-endpoint/bucket-name/path
The callback URL will receive a POST request when the batch job completes, containing the job status and details.