?
fetchYoutubeCaptions
Retrieve the captions/transcript for a YouTube video.
mindstudio.fetchYoutubeCaptions({ videoUrl, exportType, language }) → Result
Retrieve the captions/transcript for a YouTube video.
Parameters
videoUrl
string
RequiredYouTube video URL to fetch captions for
exportType
string
RequiredOutput format: "text" for timestamped plain text, "json" for structured transcript data
textjson
language
string
RequiredLanguage code for the captions (e.g. "en")
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.fetchYoutubeCaptions({ videoUrl: /* ... */, exportType: /* ... */, language: /* ... */ });