Export captions
GET
https://api.vidmoat.com/v1/projects/{id}/captionsThe project's captions as a subtitle file: SRT or WebVTT, one cue per caption clip in timeline seconds, UTF-8. Upload it beside the video, or hand it to a translator.
Path parameters#
idstringrequiredThe project id.
Query parameters#
formatstringdefaultsrtsrt,vtt, orjsonfor{ projectId, cues: [{ start, end, lines }] }.
Response#
Returns 200 (application/x-subrip, text/vtt or application/json).
Response fields#
(body)textThe file,application/x-subriportext/vtt, as an attachment named after the project.X-Caption-Cuessays how many cues it holds. Withformat=json, a JSON object instead (seeformat).
Errors#
Besides the errors any request can get (authentication, rate limits):
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such project, or it is not yours. The two are indistinguishable on purpose. |
| 400 | invalid_request | format is not srt, vtt or json. |