{
"success": true,
"id": "fc366f6f3b09a5d8eb04aebe66c32f1d128e7f31",
"image": "https://i.ytimg.com/vi/f1HbBexbLtc/hqdefault.jpg",
"progress_url": "https://yt-download.zylalabs.com/api/progress?id=fc366f6f3b09a5d8eb04aebe66c32f1d128e7f31"
}
curl --location --request GET 'https://zylalabs.com/api/13581/youtube+download+api/30307/downloader?url=https://www.youtube.com/shorts/f1HbBexbLtc&format=720' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"video_id":"jNQXAC9IVRw","title":"Me at the zoo","duration":19,"channel":"jawed","views":406083673,"image":"https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg","url":"https://www.youtube.com/watch?v=jNQXAC9IVRw"}
curl --location --request GET 'https://zylalabs.com/api/13581/youtube+download+api/30309/info?url=https://www.youtube.com/watch?v=jNQXAC9IVRw' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 YouTube Download API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
YouTube Download API is built for product teams that need reliable YouTube media retrieval inside backends, ETL jobs, or content tools.
Submit a watch or Shorts URL plus a target format to open an asynchronous job. The first response includes a job id, preview image, and progress_url. Keep polling that URL every few seconds until progress reaches 1000, then follow download_url for a time-limited signed file (about two hours).
Prefer the Info route when you only need catalog fields—title, length, channel, views, and thumbnail—without paying for media transfer.
Downloader formats
Coverage: standard videos and Shorts. Live broadcasts are out of scope for download.
API返回一个JSON对象,其中包含成功状态、唯一下载ID、缩略图像URL和用于跟踪下载状态的进度URL
响应中的关键字段包括“success”(布尔值)“id”(字符串,唯一下载标识符)“image”(字符串,视频缩略图的URL)和“progress_url”(字符串,监控下载进度的URL)
响应数据结构为包含键值对的JSON对象 它包括一个成功指示器 下载ID 缩略图图像URL和进度URL 使其易于解析和使用
端点的主要参数是YouTube视频网址 用户必须提供有效的网址以启动下载过程
典型的使用案例包括下载教育视频以离线观看 存档内容 或将视频下载集成到应用程序中以便于用户使用
用户可以利用下载ID通过进度URL检查下载状态。一旦处理完成,他们可以使用该ID检索可下载文件
该API依赖于与YouTube内容交付的直接交互,确保提供的视频URL有效,并且下载过程反映视频的当前状态
如果API返回失败状态,用户应验证提供的视频网址是否正确。对于部分结果,请检查进度网址以监控下载状态直到完成