get_video_transcript
Retrieve YouTube video transcripts with timestamps in any supported language. Returns both timestamped and plain text versions, with pagination for long transcripts.
Instructions
Get YouTube video transcript/captions (manual or auto-generated) with timestamps. Use 'lang' to specify language code (e.g. 'en', 'id'). Returns both timestamped and plain text versions. Returns error if captions are unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language code for the transcript (e.g., 'en', 'id', 'ja') | en |
| video | Yes | YouTube video URL or video ID | |
| maxSegments | No | Maximum number of transcript segments to return. 0 (default) returns all segments. Use with startSegment for pagination. | |
| startSegment | No | Segment index to start from (0-based). Use with maxSegments to paginate through long transcripts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hasMore | Yes | ||
| message | No | ||
| videoId | Yes | ||
| segments | Yes | ||
| available | Yes | ||
| plainText | Yes | ||
| languageCode | Yes | ||
| startSegment | Yes | ||
| totalSegments | Yes | ||
| nextStartSegment | Yes | ||
| returnedSegments | Yes |