{"uid":"cap_eEHkgx4Zj_iCP6CmKZ_p-","slug":"agentutility-youtube-transcript-fetcher-4b2dbf26","name":"AgentUtility YouTube Transcript Fetcher","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.","url":"https://x402.agentutility.ai/youtube-transcript","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["video_id_or_url"],"properties":{"language":{"type":"string","description":"Preferred caption language code (e.g. 'en', 'es', 'ja'). Default: pick the first available."},"video_id_or_url":{"type":"string","description":"YouTube video ID (11-char) or full URL (youtube.com/watch?v=…, youtu.be/…, /embed/…, /shorts/…)."},"include_chapters":{"type":"boolean","description":"Parse chapter timestamps from the video description. Default false."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"text":{"type":"string"},"title":{"type":"null"},"source":{"type":"string"},"channel":{"type":"null"},"chapters":{"type":"null"},"language":{"type":"string"},"segments":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"start":{"type":"number"},"duration":{"type":"number"}}}},"video_id":{"type":"string"},"channel_id":{"type":"null"},"char_count":{"type":"integer"},"segment_count":{"type":"integer"},"duration_seconds":{"type":"null"},"is_auto_generated":{"type":"null"}}}}}}},"responseSchema":{"type":"json","example":{"text":"We're no strangers to love. You know the rules and so do I.","title":null,"source":"supadata","channel":null,"chapters":null,"language":"en","segments":[{"text":"We're no strangers to love","start":0,"duration":4.5},{"text":"You know the rules and so do I","start":4.5,"duration":4}],"video_id":"dQw4w9WgXcQ","channel_id":null,"char_count":60,"segment_count":2,"duration_seconds":null,"is_auto_generated":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UojHiVv5f1Z7pjCSMTRz_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the full transcript of any YouTube video, returning plain text plus per-segment timestamps (start, duration, text) with optional language selection.","exampleAgentPrompt":"Can you grab the full transcript of this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ — including the timestamped segments in English?","exampleUseCases":[{"title":"Summarize a YouTube lecture","prompt":"Get me the transcript of this YouTube lecture — https://www.youtube.com/watch?v=abc123xyz — so I can summarize the key points."},{"title":"Quote-check a video interview","prompt":"Pull the timestamped captions from this YouTube interview at https://www.youtube.com/watch?v=interviewID so I can find the exact moment where the speaker discusses climate policy."},{"title":"Build subtitles for a foreign-language video","prompt":"Fetch the Spanish-language transcript for https://www.youtube.com/watch?v=es_videoID so I can use the segments to build subtitle overlays."}],"resultDescription":"Returns the full transcript as a plain-text string, plus an array of segments each containing start time (seconds), duration (seconds), and text. Returns a clear 404 if the video has no available transcript. Supports both auto-generated and manually created captions.","failureModes":["404 returned when the video has no captions or transcript available","Invalid or non-existent video ID returns an error","Private or age-restricted videos may not return transcripts","Unsupported language code results in fallback or error","Network timeout if YouTube is slow to respond"],"whenToPreferThis":"Choose this endpoint when you need to extract the spoken content of a YouTube video as text, including timestamped segments, without managing your own YouTube Data API credentials or caption-parsing logic. It is ideal for summarization pipelines, quote extraction, subtitle generation, or any workflow where video audio content needs to be processed as text. Prefer it over rolling your own solution since it handles both auto-generated and manual captions server-side via Supadata, requires no caller API key, and is priced per-call at $0.01 USDC via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:58:49.860Z","isFirstParty":false}