Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man youtube-transcript

/youtube-transcript

agentutility / mediakit / youtube-transcript
PRICE / CALL
$0.01
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakit
CATEGORY
uncategorized
STATUS
live
NAME
youtube-transcript fetch the transcript of any youtube video
SYNOPSIS
POST https://x402.agentutility.ai/youtube-transcript
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Fetch the transcript of any YouTube video. Pulls auto-generated or manual captions and returns full text plus per-segment {start, duration, text}, with an optional language pick. Backed by Supadata's transcript pipeline server-side — no caller key required; returns a clear 404 when a video has no transcript. Use it as a YouTube closed-caption fetcher or video subtitles puller.

INPUTrequest schema
propertytypedescriptionreq?
video_id_or_urlstringYouTube video ID (11-char) or full URL (youtube.com/watch?v=…, youtu.be/…, /embed/…, /shorts/…).required
languagestringPreferred caption language code (e.g. 'en', 'es', 'ja'). Default: pick the first available.optional
include_chaptersbooleanParse chapter timestamps from the video description. Default false.optional
OUTPUTresponse shape
fieldtypedescription
video_idstringYouTube video ID parsed from the input URL or passed through verbatim.
titlestringVideo title as listed on YouTube.
channelstringChannel name that uploaded the video.
duration_secondsstringTotal video length in seconds.
languagestringBCP-47 language code of the returned transcript (e.g. 'en', 'es').
transcriptstringFull caption text joined into a single string with segment breaks collapsed.
segmentsstringArray of {start, duration, text} objects giving per-caption-line timing in seconds.
chaptersstringArray of video chapter markers with title and start time, when YouTube exposes them.
sourcestringCaption origin tag: 'manual' for uploaded subtitles or 'auto' for YouTube auto-generated CC.
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/youtube-transcript \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the youtube-transcript tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
mediakityoutubetranscriptcaptionssubtitlesvideo-textclosed-captionsyoutube-transcript
methods
POST
cluster
mediakit
price
$0.01 USDC per call
ADJACENTother endpoints in mediakit
endpointdescriptionprice
audio-transcribeTranscribes audio to text with whisper-large-v3.$0.01
csv-to-icsConverts a CSV of events into an RFC 5545 compliant ICS calendar file (VCALENDAR/VEVENT) for Google Calendar, Outlook, and Apple Calendar…$0.01
image-convertUniversal image format converter (PNG, JPG, WEBP, AVIF, GIF, BMP, TIFF, ICO, HEIC, HEIF, PSD, SVG).$0.01
image-format-convertImage converter.$0.01
merge-pdfCombines 2-50 input PDFs from URLs into one PDF, preserving bookmarks.$0.01
movie-databaseFinds movies or TV shows by title, with optional year and region, and returns release year, poster, overview, and language.$0.01
movie-database-apiSearches movies and TV shows by title and optional year, returning release date, rating, popularity, overview, poster URLs, TMDB links, a…$0.01
movie-infoLooks up movie and TV metadata: title, release year, rating, overview, poster, and optional streaming providers.$0.01
SEE ALSO
agentutility · mediakit · x402 · mcp · llms.txt · registry.json · bazaar.x402.org