curl --request POST 'https://api.voicecheap.ai/v1/actions/subtitles_history_list' \
--header "x-api-key: $VOICECHEAP_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"limit":30}'
const input = {
limit: 30,
};
const response = await fetch('https://api.voicecheap.ai/v1/actions/subtitles_history_list', {
method: 'POST',
headers: {
'x-api-key': process.env.VOICECHEAP_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify(input),
});
const body = await response.json();
if (!response.ok) throw new Error(body.code + ': ' + body.message);
console.log(body);
import os
import requests
response = requests.post(
"https://api.voicecheap.ai/v1/actions/subtitles_history_list",
headers={"x-api-key": os.environ["VOICECHEAP_API_KEY"]},
json={"limit": 30},
timeout=120,
)
body = response.json()
if not response.ok:
raise RuntimeError(f"{body.get('code')}: {body.get('message')}")
print(body)
{
"data": {
"items": [
{
"historyId": "history_20261016_001",
"fileName": "interview.mp4",
"createdAt": 1792152000000,
"updatedAt": 1792152000000,
"fileSizeBytes": 1048576,
"fileSizeMb": 1,
"durationSeconds": 60,
"durationMinutes": 1,
"mimeType": "video/mp4",
"extension": "mp4",
"detectedLanguage": "en",
"status": "success",
"revision": 1,
"hasEdits": false
}
],
"nextCursor": null
}
}
字幕
列出字幕历史记录
列出已保存的字幕结果。将 nextCursor 作为 beforeHistoryId 传入,以获取更早的结果。
POST
/
v1
/
actions
/
subtitles_history_list
curl --request POST 'https://api.voicecheap.ai/v1/actions/subtitles_history_list' \
--header "x-api-key: $VOICECHEAP_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"limit":30}'
const input = {
limit: 30,
};
const response = await fetch('https://api.voicecheap.ai/v1/actions/subtitles_history_list', {
method: 'POST',
headers: {
'x-api-key': process.env.VOICECHEAP_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify(input),
});
const body = await response.json();
if (!response.ok) throw new Error(body.code + ': ' + body.message);
console.log(body);
import os
import requests
response = requests.post(
"https://api.voicecheap.ai/v1/actions/subtitles_history_list",
headers={"x-api-key": os.environ["VOICECHEAP_API_KEY"]},
json={"limit": 30},
timeout=120,
)
body = response.json()
if not response.ok:
raise RuntimeError(f"{body.get('code')}: {body.get('message')}")
print(body)
{
"data": {
"items": [
{
"historyId": "history_20261016_001",
"fileName": "interview.mp4",
"createdAt": 1792152000000,
"updatedAt": 1792152000000,
"fileSizeBytes": 1048576,
"fileSizeMb": 1,
"durationSeconds": 60,
"durationMinutes": 1,
"mimeType": "video/mp4",
"extension": "mp4",
"detectedLanguage": "en",
"status": "success",
"revision": 1,
"hasEdits": false
}
],
"nextCursor": null
}
}
列出已保存的字幕结果。将 nextCursor 作为 beforeHistoryId 传入,以获取更早的结果。
所需权限:
POST https://api.voicecheap.ai/v1/actions/subtitles_history_list
身份验证和权限
string
必填
在此请求头中发送 VoiceCheap API 密钥。也支持通过 Authorization: Bearer 发送同一 API 密钥。OAuth 访问令牌仅适用于 MCP,此 REST 端点不接受 OAuth
访问令牌。
subtitles:read.
需要有效的付费订阅。权限不会改变团队角色、资源归属、媒体额度或套餐限制。
参数
integer
整数值。最小值: 1. 最大值: 100. 默认值: 30.
string
文本值。最小长度: 1. 最大长度: 160. 匹配模式:
^[A-Za-z0-9_-]+$.完整输入架构
完整输入架构
以下 JSON Schema 保留了发现接口公开的确切字段名、嵌套类型、默认值、范围和可接受值。其他跨字段规则列于操作说明中。
{
"type": "object",
"properties": {
"limit": {
"default": 30,
"type": "integer",
"minimum": 1,
"maximum": 100
},
"beforeHistoryId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_-]+$"
}
},
"additionalProperties": false
}
请求示例
请将示例资源标识符和媒体键替换为账户返回的值。重试同一次修改操作时,请保持请求标识符不变。curl --request POST 'https://api.voicecheap.ai/v1/actions/subtitles_history_list' \
--header "x-api-key: $VOICECHEAP_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"limit":30}'
const input = {
limit: 30,
};
const response = await fetch('https://api.voicecheap.ai/v1/actions/subtitles_history_list', {
method: 'POST',
headers: {
'x-api-key': process.env.VOICECHEAP_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify(input),
});
const body = await response.json();
if (!response.ok) throw new Error(body.code + ': ' + body.message);
console.log(body);
import os
import requests
response = requests.post(
"https://api.voicecheap.ai/v1/actions/subtitles_history_list",
headers={"x-api-key": os.environ["VOICECHEAP_API_KEY"]},
json={"limit": 30},
timeout=120,
)
body = response.json()
if not response.ok:
raise RuntimeError(f"{body.get('code')}: {body.get('message')}")
print(body)
响应
首次执行成功时返回 HTTP 200,操作结果位于 data 下。重放请求时可能改为返回已保存的请求状态。示例展示了一种支持的响应,并未包含所有可选字段。 分页对象,包含当前账户拥有的可编辑字幕历史摘要和 nextCursor。{
"data": {
"items": [
{
"historyId": "history_20261016_001",
"fileName": "interview.mp4",
"createdAt": 1792152000000,
"updatedAt": 1792152000000,
"fileSizeBytes": 1048576,
"fileSizeMb": 1,
"durationSeconds": 60,
"durationMinutes": 1,
"mimeType": "video/mp4",
"extension": "mp4",
"detectedLanguage": "en",
"status": "success",
"revision": 1,
"hasEdits": false
}
],
"nextCursor": null
}
}
结果字段
| 字段 | 说明 |
|---|---|
data.items | 可编辑字幕元数据摘要数组;输出内容由对应的 history_get 操作返回。 |
data.nextCursor | 存在更多条目时,为最后选中的 historyId;否则为 null。 |
操作说明
- 需要付费订阅和操作权限。执行时会重新检查调用者的个人工具套餐;已保存的工具和上传引用均属于该调用者,包括凭据与团队关联时。
- 成功操作会消耗一次 API/MCP 共用的每月调用次数。Beginner 每月 500 次、Starter 5,000 次、Creator 25,000 次;Pro、Scale 和 Enterprise 无每月上限。每分钟限制仍然适用,分别为 30、60、120、180、300 和 600 次。工具生成限额单独计算。
- limit 默认为 30,支持 1 至 100 的整数。结果按从新到旧排序。将 nextCursor 作为 beforeHistoryId 传入以获取下一页;null 表示没有更早的页面。
- 返回的条目是个人已保存的网页工具历史记录摘要。它们与持久化的集成 result_list 集合不同;工具仅会尽力保存历史记录。
- 此读取操作不生成媒体,也不消耗每日工具限额;会计入一次成功的每月集成调用。
- revision 和 hasEdits 概括已保存的编辑状态。编辑后可能包含 lastEditedAt。请调用 subtitles_history_get 获取 SRT 和格式设置。
用量
每次成功调用消耗一次月度 API/MCP 调用额度。媒体额度和操作本身的生成限额也适用。错误
| HTTP 状态 | 代码 | 含义或恢复方式 |
|---|---|---|
| 400 | CREDENTIAL_IN_QUERY | 凭证通过 access_token 或 api_key 查询参数提供。请在标头中发送凭证。 |
| 400 | VALIDATION_ERROR | 参数不符合操作架构,或提供了未知参数。 |
| 401 | API_KEY_EXPIRED | API 密钥已过期。 |
| 401 | INVALID_API_KEY | 请提供有效且未过期的 API 密钥。 |
| 401 | INVALID_CREDENTIAL | Authorization 标头格式错误或与 x-api-key 冲突。 |
| 401 | MISSING_CREDENTIAL | 未提供可用的请求头凭据,或其长度超过 4096 个字符。 |
| 401 | USER_NOT_FOUND | 该凭据对应的账户已不存在。 |
| 403 | AMBIGUOUS_TEAM_API_KEY | 此凭据对应的用户属于多个团队,因此计费上下文不明确。 |
| 403 | INSUFFICIENT_SCOPE | API 密钥或 MCP 连接缺少所需的操作权限。 |
| 403 | INTEGRATION_PLAN_UNSUPPORTED | 无法验证该账户的集成限制。 |
| 403 | PAID_SUBSCRIPTION_REQUIRED | 此工具操作执行时,已认证的调用者已无付费订阅。 |
| 403 | SUBSCRIPTION_REQUIRED | 请使用有效的付费订阅。 |
| 403 | TEAM_OWNER_NOT_FOUND | 找不到实际生效的团队所有者账户。 |
| 404 | HISTORY_CURSOR_NOT_FOUND | beforeHistoryId 未标识此历史集合中当前账户拥有的游标。 |
| 429 | INTEGRATION_MONTHLY_LIMIT_REACHED | 已使用和待处理的调用次数已达到共享的每月 API/MCP 限额。 |
| 429 | INTEGRATION_RATE_LIMIT_REACHED | 该账户已达到每分钟集成调用上限;请检查 retryAfterSeconds。 |
| 500 | INTERNAL_ERROR | 无法读取已保存的历史记录。 |
| 503 | SERVER_RESTARTING | 服务器正在重启。请稍后重试;对于修改操作,请保持请求标识符不变。 |
{
"code": "INSUFFICIENT_SCOPE",
"message": "This credential does not permit the requested action.",
"status": 403,
"details": {
"requiredScopes": ["subtitles:read"]
}
}
此页面对您有帮助吗?

