List dubs
GET https://api.elevenlabs.io/v1/dubbing
List the dubs you have access to.
Reference: https://elevenlabs.io/docs/api-reference/legacy/dubbing/list
Servers
Section titled “Servers”https://api.elevenlabs.io(Production, default)https://api.us.elevenlabs.io(Production US)https://api.eu.residency.elevenlabs.io(Production EU)https://api.in.residency.elevenlabs.io(Production India)https://api.sg.residency.elevenlabs.io(Production Singapore)
Request
Section titled “Request”Query parameters
Section titled “Query parameters”cursor(string, optional, nullable) — Used for fetching next page. Cursor is returned in the response.page_size(integer, optional, default: 100) — How many dubs to return at maximum. Can not exceed 200, defaults to 100.dubbing_status(enum, optional) — What state the dub is currently in.- Allowed values:
dubbing,dubbed,failed
- Allowed values:
dubbing_statuses(list of enum, optional, nullable) — Filter by dubbing status.- Allowed values:
queued,preparing,dubbing,dubbed,failed
- Allowed values:
dubbing_models(list of enum, optional, nullable) — Filter by dubbing model generation.- Allowed values:
dubbing_v1,dubbing_v2
- Allowed values:
target_language_codes(list of string, optional, nullable) — Filter by target language code.creation_sources(list of enum, optional, nullable) — Filter by dubbing creation source.- Allowed values:
flow_node,dubbing_ui,dubbing_api
- Allowed values:
filter_by_creator(enum, optional, default: all) — Filters who created the resources being listed, whether it was the user running the request or someone else that shared the resource with them.- Allowed values:
personal,others,all
- Allowed values:
order_by(enum, optional, default: created_at) — The field to use for ordering results from this query.- Allowed values:
created_at,name
- Allowed values:
order_direction(enum, optional, default: DESCENDING) — The order direction to use for results from this query.- Allowed values:
DESCENDING,ASCENDING
- Allowed values:
Response
Section titled “Response”Successful Response
dubs(list of DubbingMetadataResponse, required)next_cursor(string, required, nullable)has_more(boolean, required)
Errors
Section titled “Errors”422 Unprocessable Entity Error
Section titled “422 Unprocessable Entity Error”Validation Error
detail(list of ValidationError, optional)
DubbingMetadataResponse
Section titled “DubbingMetadataResponse”dubbing_id(string, required) — The ID of the dubbing project.name(string, required) — The name of the dubbing project.status(string, required) — The state this dub is in.source_language(string, required, nullable) — Once dubbing has completed, the ISO-639-1 code of the original media's source language.target_languages(list of string, required) — The ISO-639-1 code of the languages this media has been dubbed into.created_at(string, required) — Timestamp this dub was created.editable(boolean, optional, default: false) — Whether this dubbing project is editable in Dubbing Studio.media_metadata(DubbingMediaMetadata, optional, nullable) — Metadata, such as the length in seconds and content type, of the dubbed content.error(string, optional, nullable) — Error message indicate, if this dub has failed, what happened.
ValidationError
Section titled “ValidationError”loc(list of ValidationErrorLocItems, required)msg(string, required)type(string, required)
DubbingMediaMetadata
Section titled “DubbingMediaMetadata”content_type(string, required) — The content type of the media.duration(double, required) — The duration of the media in seconds.
ValidationErrorLocItems
Section titled “ValidationErrorLocItems”Examples
Section titled “Examples”Response
{
"dubs": [
{
"dubbing_id": "string",
"name": "string",
"status": "preparing",
"source_language": "string",
"target_languages": [
"string"
],
"created_at": "2024-01-15T09:30:00Z",
"editable": false,
"media_metadata": {
"content_type": "string",
"duration": 1.1
},
"error": "string"
}
],
"next_cursor": "string",
"has_more": true
}SDK Code
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
async function main() {
const client = new ElevenLabsClient();
await client.dubbing.list({
filterByCreator: "all",
});
}
main();
from elevenlabs import ElevenLabs
client = ElevenLabs()
client.dubbing.list(
filter_by_creator="all",
)
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.elevenlabs.io/v1/dubbing?filter_by_creator=all"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.elevenlabs.io/v1/dubbing?filter_by_creator=all")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyimport com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
HttpResponse<String> response = Unirest.get("https://api.elevenlabs.io/v1/dubbing?filter_by_creator=all")
.asString();<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://api.elevenlabs.io/v1/dubbing?filter_by_creator=all');
echo $response->getBody();using RestSharp;
var client = new RestClient("https://api.elevenlabs.io/v1/dubbing?filter_by_creator=all");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "https://api.elevenlabs.io/v1/dubbing?filter_by_creator=all")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()