Skip to main content
POST
YouTube Transcript API - Extract video transcripts

Authorizations

Authorization
string
header
required

Bearer token authentication using your LLMLayer API key. Include in Authorization header as: Bearer YOUR_LLMLAYER_API_KEY

Body

application/json
url
string<uri>
required

YouTube video URL (supports youtube.com and youtu.be)

Example:

"https://www.youtube.com/watch?v=dQw4w9WgXcQ"

language
string | null

Language code for transcript (e.g., 'en', 'es', 'fr'). If not specified, uses video's default language.

Example:

"en"

Response

Extracted transcript with video metadata

transcript
string
required

Full video transcript text

url
string
required

YouTube video URL

title
string | null

Video title

description
string | null

Video description

author
string | null

Channel name/author

views
integer | null

View count

likes
integer | null

Like count

date
string | null

Upload date

cost
number | null

Cost in USD (value from COST_YOUTUBE_TRANSCRIPT constant)

language
string | null

Language of the returned transcript