Skip to main content
POST
Get a video's transcript, with optional timestamps
  • Endpoint: youtube.transcript
  • Returns: data has id, url, language, isAutoGenerated, durationSeconds, text, segments.
  • Cost: 3 credits. Failed calls cost nothing.
  • Paging: No.
Pass a video id or URL in video. Set includeTimestamps to get each line with its time.

Example

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
video
string
required
language
string

BCP 47 language tag, e.g. en or pt-BR. Any case is accepted.

Pattern: ^[A-Za-z]{2,3}(?:[-_][A-Za-z0-9]{2,4})?$
includeTimestamps
boolean
default:false

Response

The data, and the credits this call used.

success
any
required
data
object
required
creditsUsed
integer
required
requestId
string
required