Quick Start
Request
Response
This endpoint has longer than usual response times. See Latency
for more details.
Specification
Endpoint
GET https://api.supadata.ai/v1/youtube/transcript/translate
Each request requires an x-api-key
header with your API key available after signing up. Get your API key here.
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
url | string | Yes* | YouTube video URL. See Supported YouTube URL Formats. |
videoId | string | Yes* | YouTube video ID. Alternative to URL. |
lang | string | Yes | ISO 639-1 language code of the translation |
text | boolean | No | When true, returns plain text transcript. Default: false |
chunkSize | number | No | Maximum characters per transcript chunk (only when text=false) |
url
or videoId
must be provided
Response Format
Whentext=true
:
text=false
:
Latency
Due to the duration of transcript translation tasks, the endpoint may take 20 or more seconds to complete. Please make sure to increase the request timeout in your application.Error Codes
The API returns HTTP status codes and error codes. See this page for more details.Supported YouTube URL Formats
url
parameter supports various YouTube URL formats. See this page for more details.
Pricing
- 1 minute of transcript = 30 credits