Get translated transcript for a YouTube video
curl --request GET \
--url https://api.urltodata.ai/v1/youtube/transcript/translate \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.urltodata.ai/v1/youtube/transcript/translate"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.urltodata.ai/v1/youtube/transcript/translate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"content": "<string>",
"lang": "<string>",
"availableLangs": [
"<string>"
]
}API Reference
Get translated transcript for a YouTube video
GET
/
v1
/
youtube
/
transcript
/
translate
Get translated transcript for a YouTube video
curl --request GET \
--url https://api.urltodata.ai/v1/youtube/transcript/translate \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.urltodata.ai/v1/youtube/transcript/translate"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.urltodata.ai/v1/youtube/transcript/translate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"content": "<string>",
"lang": "<string>",
"availableLangs": [
"<string>"
]
}Authorizations
API key as Bearer token (e.g. Bearer mp_abc123_secret)
Query Parameters
YouTube video ID
YouTube video URL
Target language code
Return plain text instead of chunks
Max chars per chunk (50-10000)
Required range:
50 <= x <= 10000