TranscriptAPI — YouTube transcripts (transcriptapi.io)

v0.1.1
io.transcriptapi/youtube-transcript Checked 4 days ago Published 1 month ago

YouTube 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).

ParameterTypeDescription
video *stringYouTube video URL or 11-character video id
formatstringOutput shape. 'timestamped' (default) is best for reading and citing; 'text' is smallest; 'srt'/'vtt' are subtitle files; 'json' is raw segments.
languagestringPreferred caption language code, e.g. 'en', 'de', 'es'. Falls back to what the video has.
translate_tostringTranslate 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.

ParameterTypeDescription
query *stringSearch terms, as you would type them into YouTube
limitintegerMaximum 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.

ParameterTypeDescription
channel *stringChannel id (UC…), handle (@name) or channel URL
limitintegerMaximum 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.

ParameterTypeDescription
channel *stringChannel id (UC…), handle (@name) or channel URL
query *stringSearch terms
limitintegerMaximum 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.

ParameterTypeDescription
playlist *stringPlaylist URL or playlist id (usually starts with PL)
limitintegerMaximum number of videos (1–200)