YouTube — 字幕结果
SpiderHubs OpenAPI 文档:YouTube — 字幕结果,分类 YouTube。接口 GET /openapi/v1/contentcreator/youtube/web_v2/get_video_captions_result。取回「自带字幕」返回的异步任务。仍是 processing 时稍...
OpId:
yt-captions-result · 最近更新: 2026-11-19说明
取回「自带字幕」返回的异步任务。仍是 processing 时稍后再调。每次调用单独计 1 积分。
基础信息
- Endpoint:
- GET /openapi/v1/contentcreator/youtube/web_v2/get_video_captions_result
- 计费:
- 1 积分 / 次
- 限流:
- 300 次 / 分钟 / 用户
请求参数说明
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| job_id | string | 是 | 自带字幕返回的 job_id |
| format | string | 否 | srt、txt、xml 或 json3。建议与提交时一致 |
响应字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 业务状态码,200 表示成功 |
| request_id | string | 本次请求唯一标识,排查问题时可提供 |
| data | object | 业务数据容器,具体字段见下 |
| data.status | string | 未完成时为 processing |
| data.job_id | string | 同一个任务 ID |
请求示例 · cURL
curl 'https://api.spiderhubs.com/openapi/v1/contentcreator/youtube/web_v2/get_video_captions_result?job_id=YOUR_JOB_ID&format=txt' \
-H 'Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxx'响应示例
{
"code": 200,
"request_id": "a18d44e0-55c1-4f90-b2aa-71c0e9d43016",
"data": {
"video_id": "ZFEnfscZpAU",
"status": "processing",
"job_id": "YOUR_JOB_ID"
}
}开始调用 SpiderHubs API
使用账户中心生成的 API Key,通过 Authorization: Bearer sk_live_xxx 调用接口。