Get YouTube video transcript
get_transcriptFetch the full transcript of one YouTube (or TikTok) video as clean text with metadata (title, channel, duration, upload date, language). Accepts a watch URL, youtu.be link, Shorts URL, or bare 11-character video id. Costs 1 credit the first time it is added to this account's library; repeat reads are free. Set include_segments to true only when per-line timestamps are needed (much larger output).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | Bypass the cache and re-extract (costs a credit). Default false. | |
| video | Yes | YouTube video URL or 11-character video id (TikTok video URLs also work). | |
| language | No | Preferred caption language code, e.g. 'en' or 'de'. Defaults to 'en', falling back to whatever exists. | |
| include_segments | No | Include the timestamped segment list. Default false — the plain text is usually what you want. |