POST
/
api
/
v1
/
youtube_transcript
YouTube Transcript API
curl --request POST \
  --url https://api.llmlayer.dev/api/v1/youtube_transcript \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<string>",
  "language": "<string>"
}'
{
"transcript": "<string>",
"url": "<string>",
"language": "<string>",
"cost": 123
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Format: Bearer YOUR_LLMLAYER_API_KEY

Body

application/json
url
string
required

YouTube video URL

language
string | null

Language code for transcript (e.g., 'en', 'es')

Response

Extracted transcript

transcript
string

Full video transcript text

url
string

YouTube video URL

language
string | null

Language of the transcript

cost
number

Cost in USD ($0.001)