$ man youtube-transcript
/youtube-transcript
PRICE / CALL
$0.01
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
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.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| video_id_or_url | string | YouTube video ID (11-char) or full URL (youtube.com/watch?v=…, youtu.be/…, /embed/…, /shorts/…). | required |
| language | string | Preferred caption language code (e.g. 'en', 'es', 'ja'). Default: pick the first available. | optional |
| include_chapters | boolean | Parse chapter timestamps from the video description. Default false. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| video_id | string | YouTube video ID parsed from the input URL or passed through verbatim. |
| title | string | Video title as listed on YouTube. |
| channel | string | Channel name that uploaded the video. |
| duration_seconds | string | Total video length in seconds. |
| language | string | BCP-47 language code of the returned transcript (e.g. 'en', 'es'). |
| transcript | string | Full caption text joined into a single string with segment breaks collapsed. |
| segments | string | Array of {start, duration, text} objects giving per-caption-line timing in seconds. |
| chapters | string | Array of video chapter markers with title and start time, when YouTube exposes them. |
| source | string | Caption origin tag: 'manual' for uploaded subtitles or 'auto' for YouTube auto-generated CC. |
EXAMPLES — two 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
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| audio-transcribe | Transcribes audio to text with whisper-large-v3. | $0.01 |
| csv-to-ics | Converts a CSV of events into an RFC 5545 compliant ICS calendar file (VCALENDAR/VEVENT) for Google Calendar, Outlook, and Apple Calendar… | $0.01 |
| image-convert | Universal image format converter (PNG, JPG, WEBP, AVIF, GIF, BMP, TIFF, ICO, HEIC, HEIF, PSD, SVG). | $0.01 |
| image-format-convert | Image converter. | $0.01 |
| merge-pdf | Combines 2-50 input PDFs from URLs into one PDF, preserving bookmarks. | $0.01 |
| movie-database | Finds movies or TV shows by title, with optional year and region, and returns release year, poster, overview, and language. | $0.01 |
| movie-database-api | Searches movies and TV shows by title and optional year, returning release date, rating, popularity, overview, poster URLs, TMDB links, a… | $0.01 |
| movie-info | Looks up movie and TV metadata: title, release year, rating, overview, poster, and optional streaming providers. | $0.01 |
SEE ALSO