TranscriptAPI — YouTube transcripts (transcriptapi.io)
v0.1.1YouTube transcripts, search, channels and playlists for AI agents, by transcriptapi.io.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_youtube_transcript Get YouTube transcript
Fetch the transcript (captions/subtitles) of a YouTube video as text. Accepts a watch URL, youtu.be link, Shorts link or bare 11-character video id. Returns the spoken text with timestamps grouped in ~30 s blocks by default; choose format 'text' for prose without timestamps, 'srt'/'vtt' for subtitle files, or 'json' for raw segments with start/duration. Works with creator-uploaded and auto-generated captions in any language YouTube has for the video. Optionally translate the transcript to another language with translate_to (costs extra credits, scales with length).
| Parameter | Type | Description |
|---|---|---|
video * | string | YouTube video URL or 11-character video id |
format | string | Output shape. 'timestamped' (default) is best for reading and citing; 'text' is smallest; 'srt'/'vtt' are subtitle files; 'json' is raw segments. |
language | string | Preferred caption language code, e.g. 'en', 'de', 'es'. Falls back to what the video has. |
translate_to | string | Translate the transcript into this language code using AI, e.g. 'de'. Extra credits; omit unless the user asked for a translation. |
search_youtube Search YouTube
Search YouTube for videos by keyword. Returns video ids, titles, channel names, durations and view counts. Use the returned id with get_youtube_transcript to read a result.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search terms, as you would type them into YouTube |
limit | integer | Maximum number of results (1–50) |
get_channel_videos List a channel's videos
List the most recent uploads of a YouTube channel, newest first. Accepts a channel id (UC…), a handle (@name) or a channel URL. Returns ids, titles, durations, view counts and publish dates.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel id (UC…), handle (@name) or channel URL |
limit | integer | Maximum number of videos (1–100) |
search_channel_videos Search within a channel
Search for videos inside one YouTube channel by keyword. Useful for 'find the video where <channel> talks about <topic>'. Accepts a channel id, @handle or channel URL.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel id (UC…), handle (@name) or channel URL |
query * | string | Search terms |
limit | integer | Maximum number of results (1–50) |
get_playlist_videos List a playlist's videos
List the videos in a YouTube playlist, in playlist order. Accepts a playlist URL (anything with list=…) or the playlist id. Returns ids and titles so each can be passed to get_youtube_transcript.
| Parameter | Type | Description |
|---|---|---|
playlist * | string | Playlist URL or playlist id (usually starts with PL) |
limit | integer | Maximum number of videos (1–200) |