Overview
Use YouTube Transcript when you need transcript text from a public video. The endpoint returns the transcript plus available video metadata.Endpoint
POST /api/v2/youtube_transcript
Quickstart
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | YouTube video URL |
language | string | null | No | Preferred transcript language, for example en, es, or fr |
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_ID
Response
| Field | Type | Description |
|---|---|---|
transcript | string | Transcript text |
url | string | Video URL |
title | string | null | Video title |
description | string | null | Video description |
author | string | null | Channel or author |
views | integer | null | View count when available |
likes | integer | null | Like count when available |
date | string | null | Publish date when available |
language | string | null | Transcript language |
cost | number | null | Cost in USD |
Pricing
YouTube Transcript costs$0.003 per request.
Limitations
- The video must be public.
- The video must have captions/transcripts available.
- Requested languages may not be available on every video.
- Live streams may not have transcripts.
Errors
| Status | Meaning |
|---|---|
400 | Invalid YouTube URL |
401 | Missing or invalid LLMLayer API key |
500 | Transcript extraction failed |
