get_video_transcript
Fetch a YouTube or TikTok video transcript in one step, returning text, SRT, VTT, or timed segments; captions are used first, with optional AI transcription when captions are unavailable.
Instructions
Get the transcript of a YouTube or TikTok video in one step: submits a job, waits for it (long polling), and returns the transcript text (or srt/vtt/segments). Use this for 'what does this video say' questions. Default mode captions_only (1 credit); pass mode auto to fall back to AI transcription when the video has no captions. Same video and options are served from cache without a new charge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | YouTube or TikTok video URL. | |
| mode | No | Default captions_only (1 credit). auto: captions if present, else AI transcription (2 credits per started minute, paid plans). | |
| format | No | text (default) is the most compact; segments returns timed JSON. | |
| timeout_seconds | No | Give up after this many seconds (default 120) and return the job state instead. |