{"uid":"cap_5kYkpCJcy8dCRzJwFNZS5","slug":"agdata-youtube-transcript-api-85b3277d","name":"agdata YouTube Transcript API","description":"YouTube transcript API for AI agents: send a video URL or 11-character id and get its published subtitles as timed JSON segments, plain text, SRT or WebVTT, with title, channel, duration, views and publish date. Choose one of ten subtitle languages or any. No speech-to-text. A video without subtitles in that language is not charged.","url":"https://agdata.shveik.dev/x402/youtube-transcript?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lang":{"enum":["any","en","de","es","fr","it","ja","ko","nl","pt","ru"],"type":"string"},"video":{"type":"string","maxLength":2048},"format":{"enum":["json","text","srt","vtt"],"type":"string"}}},"responseSchema":{"type":"json","example":{"url":"https://…","title":"Rick Ast…","format":"json","videoId":"dQw4w9Wg…","language":"en","truncated":false,"viewCount":1822672170,"channelUrl":"https://…","transcript":[],"channelName":"Rick Ast…","publishedAt":"2009-10-…","segmentCount":61,"subtitleType":"user_gen…","durationSeconds":213,"availableLanguages":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.032","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.032/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.032","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.032","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DvJV89itu4oMGJSeioRo2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.032","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches published subtitles from a YouTube video as timed JSON segments, plain text, SRT, or WebVTT, along with video metadata","exampleAgentPrompt":"Can you grab the English transcript from this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ — and give it to me as plain text?","exampleUseCases":[{"title":"Summarize a YouTube lecture","prompt":"Get me the full transcript of this YouTube lecture — https://www.youtube.com/watch?v=Ks-_Mh1QhMc — in plain text so I can summarize the key points."},{"title":"Generate subtitles for video editor","prompt":"Fetch the English subtitles for https://www.youtube.com/watch?v=9bZkp7q19f0 in SRT format so I can drop them into my video editor."},{"title":"Multilingual content research","prompt":"Pull the French transcript from this YouTube video — https://www.youtube.com/watch?v=JGwWNGJdvx8 — as timed JSON segments, along with the title, channel, and publish date."}],"resultDescription":"Returns a structured response containing timed transcript segments (with start time and duration per segment) in the requested format (JSON, plain text, SRT, or WebVTT), plus video metadata including title, channel name, duration, view count, and publish date. If no subtitles exist in the requested language, the call is not charged.","failureModes":["Video has no published subtitles in the requested language — returns an error and no charge is incurred","Invalid or malformed video URL or ID — returns a validation error","Video is private, deleted, or geo-restricted — transcript unavailable","Requested language not available for that video — endpoint returns error without billing","Network timeout or upstream YouTube API issue"],"whenToPreferThis":"Choose this endpoint when you need published/human-authored or auto-generated YouTube subtitles in structured, time-coded formats (JSON, SRT, VTT) or plain text, and want video metadata alongside. Prefer this over speech-to-text pipelines when the video already has subtitles, as it is faster, cheaper, and more accurate. Ideal for agents doing content summarization, translation prep, accessibility tooling, or research on YouTube video content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:42:15.967Z","isFirstParty":false,"canonicalSlug":"agdata-youtube-transcript-api-85b3277d"}