curl --request GET \
--url https://app.dubly.ai/api/v1/dubs/{id}/segments \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.dubly.ai/api/v1/dubs/{id}/segments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.dubly.ai/api/v1/dubs/{id}/segments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"status": "success",
"response": {
"dub_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"target_language": "de",
"engine": "v1",
"pending_changes": false,
"is_updating": false,
"update_status": "idle",
"lipsync_status": "not_started",
"api_update_rounds_remaining": 2,
"video_url": "https://...amazonaws.com/.../final_video.mp4?X-Amz-Expires=604800&...",
"capabilities": {
"supportsSourceEdit": true,
"supportsTranslationEdit": true,
"supportsVoiceSwap": true,
"supportsTimelineEditor": true,
"supportsPerSegmentRegenerate": true
},
"speakers": [
{
"id": "1",
"name": "Speaker 1"
},
{
"id": "2",
"name": "Speaker 2"
}
],
"segments": [
{
"id": "5b1e7c2a-9d43-4f8e-a6b0-2c7d9e1f3a54",
"index": 0,
"start": 0.48,
"end": 3.12,
"source_text": "Welcome to our product tour.",
"target_text": "Willkommen zu unserer Produkttour.",
"speaker": {
"id": "1",
"name": "Speaker 1"
},
"is_muted": false,
"speech_rate": 1,
"pending_revoice": false,
"processing": false,
"api_edits_remaining": 2
}
]
}
}List the segments of one language
Returns every segment of one target language of a completed dub, sorted by index, with its id (what PATCH …/segments takes), start and end in seconds as the editor shows them, source_text, target_text, speaker, is_muted, speech_rate, pending_revoice (engine v1: edited and waiting to be voiced at the next update; always false on engine v2), processing (a re-translation or re-voicing of this segment is running right now) and api_edits_remaining.
On the language level it returns the engine, its capabilities (supportsSourceEdit, supportsTranslationEdit and supportsVoiceSwap tell which PATCH fields the engine accepts), speakers (exactly the ids PATCH speaker accepts) and the same render state as GET /api/v1/dubs//update.
A language without segments returns 200 with an empty segments array. An unknown dub, a dub of another account and a target_language the dub does not have all return 404. Read-only: nothing is counted and no credits are charged.
curl --request GET \
--url https://app.dubly.ai/api/v1/dubs/{id}/segments \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.dubly.ai/api/v1/dubs/{id}/segments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.dubly.ai/api/v1/dubs/{id}/segments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"status": "success",
"response": {
"dub_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"target_language": "de",
"engine": "v1",
"pending_changes": false,
"is_updating": false,
"update_status": "idle",
"lipsync_status": "not_started",
"api_update_rounds_remaining": 2,
"video_url": "https://...amazonaws.com/.../final_video.mp4?X-Amz-Expires=604800&...",
"capabilities": {
"supportsSourceEdit": true,
"supportsTranslationEdit": true,
"supportsVoiceSwap": true,
"supportsTimelineEditor": true,
"supportsPerSegmentRegenerate": true
},
"speakers": [
{
"id": "1",
"name": "Speaker 1"
},
{
"id": "2",
"name": "Speaker 2"
}
],
"segments": [
{
"id": "5b1e7c2a-9d43-4f8e-a6b0-2c7d9e1f3a54",
"index": 0,
"start": 0.48,
"end": 3.12,
"source_text": "Welcome to our product tour.",
"target_text": "Willkommen zu unserer Produkttour.",
"speaker": {
"id": "1",
"name": "Speaker 1"
},
"is_muted": false,
"speech_rate": 1,
"pending_revoice": false,
"processing": false,
"api_edits_remaining": 2
}
]
}
}Authorizations
Path Parameters
Query Parameters
BCP 47 target language code of the language to read (query parameter, e.g. ?target_language=de). A language the dub does not have returns 404.
af, ar, hy, as, az, be, bn, bs, bg, ca, ceb, ny, zh, hr, cs, da, nl, en, et, fil, fi, fr, gl, ka, de, el, gu, ha, he, hi, hu, is, id, ga, it, ja, jv, kn, kk, ko, ky, lv, ln, lt, lb, mk, ms, ml, mr, ne, no, ps, fa, pl, pt, pa, ro, ru, sr, sd, sk, sl, so, es, sw, sv, ta, te, th, tr, uk, ur, vi, cy, en-GB, en-US, es-419, es-ES 
