{"uid":"cap_IemLgx6s73VcHUiucu1_E","slug":"swarmio-youtube-video-transcript-29f5da4a","name":"Swarmio YouTube Video Transcript","description":"Swarmio does real work for you — research, plans, and readings that better your life, live.","url":"https://ioswarm.io/api/v1/video/transcript?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"a YouTube URL — watch, shorts, youtu.be, live, embed"},"lang":{"type":"string","description":"caption language (default \"en\")"},"format":{"enum":["segments","text"],"type":"string","description":"segments (default, timestamped) or one flat text"},"video_id":{"type":"string","description":"an 11-character YouTube video id (alternative to url)"}}},"responseSchema":{"type":"json","example":{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ","lang":"en","paid":{"usd":0.02,"transaction":"0x…"},"text":"…","known":true,"quota":{"free_per_day":10,"free_remaining_today":7},"title":"…","segments":[{"end":4.2,"text":"…","start":0}],"video_id":"dQw4w9WgXcQ","duration_sec":213,"segment_count":48}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8b0klbbidQ4cHvrJeZl1M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the full transcript of a YouTube video, returning either timestamped segments or flat text, for a $0.02 USDC per-call fee.","exampleAgentPrompt":"Can you grab the full transcript of this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ — in English, with timestamps for each segment?","exampleUseCases":[{"title":"Summarize a YouTube lecture","prompt":"Get me the timestamped transcript of this YouTube lecture — https://www.youtube.com/watch?v=abc123XYZab — in English, so I can summarize the key points."},{"title":"Extract captions in foreign language","prompt":"Fetch the transcript for YouTube video ID dQw4w9WgXcQ but in Spanish — give me the full flat text, not the segments."},{"title":"Pull transcript from YouTube Shorts","prompt":"Can you get the transcript from this YouTube Shorts link — https://www.youtube.com/shorts/xyz789DEFgh — in English with timestamped segments?"}],"resultDescription":"Returns a JSON object containing the video's title, duration in seconds, full flat text transcript, an array of timestamped segments (each with start time, end time, and text), the video ID, the detected language, quota usage info, and payment confirmation details.","failureModes":["Video has no captions available in the requested language — returns an error or empty transcript","Invalid or malformed YouTube URL or video ID — returns a validation error","Video is private, deleted, or region-restricted — transcript cannot be fetched","Requested language code not available for the video — may fall back or error","Payment failure or insufficient balance — transaction rejected before processing"],"whenToPreferThis":"Choose this endpoint when you need to programmatically extract the spoken content of a YouTube video as text, especially when you want timestamped segments for seeking or summarization. It supports multiple YouTube URL formats (watch, shorts, youtu.be, live, embed) and is priced per call at $0.02 USDC, making it ideal for lightweight, on-demand transcript retrieval without needing a full speech-to-audio pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T12:37:09.828Z","isFirstParty":false,"canonicalSlug":"swarmio-youtube-video-transcript-29f5da4a"}