get https://api.heygen.com/v2/video_translate/caption
Request
Field | Type | Description |
---|---|---|
video_translate_id | str | The ID of the video to caption |
caption_type | str | The caption file type, "vtt" |
Response
Field | Type | Description |
---|---|---|
caption_url | str | The URL of the caption. The URL will be expired in seven days. |
{
"error": null,
"data": {
"caption_url": "https://resource-dev2.heygen.ai/video_translate/a0432966f84548df8ddc8b4536a937e2/caption/api/caption.vtt"
}
}
The caption file URL you get will expire in 7 days. 📆
You can observe this expiration in the URL parameters. Every time you call the endpoint, the
Expires
and other queries are regenerated accordingly.