Get Video Metadata
POST /api/agents/youtube/metadata
Fetch YouTube video metadata without downloading — preview before transcribing.
Args: request: The YouTube URL to inspect.
Returns: Video id, title, channel, duration, description, thumbnail, and caption availability (manual/auto + available languages).
Raises:
HTTPException(400): The URL is not a recognizable YouTube video URL,
or the video duration exceeds youtube.max_video_duration_minutes.
HTTPException(502): yt-dlp failed to fetch metadata (video private,
removed, age-gated, or network error).
Request Body required
Section titled “Request Body required ”POST /youtube/metadata request body.
object
YouTube video URL
Responses
Section titled “ Responses ”Successful Response
Video metadata preview (no download).
object
YouTube video ID
Video title
Channel name
Video duration in seconds
Video description
Thumbnail image URL
Manual captions available
Auto-generated captions available
Available caption languages
Validation Error