{"uid":"cap_MtnsOHGbO9bBPLvXjsMWz","slug":"gateway-d402-xyz-youtube-transcript-extractor-d402-gateway-7e4baf5a","name":"YouTube Transcript Extractor (d402 Gateway)","description":"Paid d402 capability alias for media.youtube_transcript@1. Workers fetch the YouTube page, extract available transcript segments, and return a transcript with validation evidence.","url":"https://gateway.d402.xyz/v1/youtube/transcript","method":"POST","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Public youtube.com or youtu.be video URL whose page exposes a transcript."},"sync":{"type":"boolean","description":"Optional d402 sync flag. Defaults to gateway policy."},"timeoutMs":{"type":"number","maximum":45000,"minimum":1,"description":"Optional per-request timeout, capped by gateway policy."},"languageCode":{"type":"string","description":"Optional preferred transcript language code when the page exposes multiple languages."}},"additionalProperties":false},"responseSchema":{"type":"object","required":["taskId","status"],"properties":{"error":{"type":["string","null"]},"links":{"type":"object","properties":{"task":{"type":"string"},"result":{"type":"string"},"receipt":{"type":"string"}}},"result":{"type":"object","required":["url","videoId","transcript","transcriptHash","segmentCount","source","serviceVersion"],"properties":{"url":{"type":"string"},"title":{"type":"string"},"source":{"type":"string"},"videoId":{"type":"string"},"segments":{"type":"array","items":{"type":"object","required":["text"],"properties":{"text":{"type":"string"},"endMs":{"type":"number"},"startMs":{"type":"number"},"durationMs":{"type":"number"}}}},"fetchedAt":{"type":"string"},"transcript":{"type":"string"},"serviceName":{"type":"string"},"languageCode":{"type":"string"},"languageName":{"type":"string"},"segmentCount":{"type":"number"},"serviceVersion":{"type":"string"},"transcriptHash":{"type":"string"},"extractorVersion":{"type":"string"}}},"status":{"enum":["accepted","rejected","running","error"],"type":"string"},"taskId":{"type":"string"},"settlement":{"type":["object","null"],"additionalProperties":true},"x402Settlement":{"type":["object","null"],"additionalProperties":true},"validationReceipt":{"type":["object","null"],"additionalProperties":true}}},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","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_Og1B9xkv7Xkhg8buW7g7f","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"gateway.d402.xyz","brandSlug":"gateway-d402-xyz-x402","brandBaseUrl":"https://gateway.d402.xyz","brandDocsUrl":null,"whatItDoes":"Fetches a public YouTube video page, extracts available transcript segments with timing, and returns the full transcript text plus validation evidence.","exampleAgentPrompt":"Can you pull the full transcript from this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ — and give it to me in English?","exampleUseCases":null,"resultDescription":"Returns a task result containing the full transcript as a plain-text string, an array of timed segments (each with text, startMs, endMs, durationMs), the video title, videoId, language code and name, segment count, a hash of the transcript for integrity verification, and metadata about the extractor version and fetch time.","failureModes":["Video has no transcript or captions available — returns error status","Private or age-restricted video URL — workers cannot access the page","Invalid or malformed YouTube URL — request rejected with validation error","Requested language code not available on the video — may fall back or error","Timeout exceeded before transcript could be fetched — returns error status","Video has been deleted or made unavailable — workers return error"],"whenToPreferThis":"Use this endpoint when you need the spoken or captioned text of a YouTube video, especially with timestamps, and want validation evidence (transcript hash, receipt) confirming what was extracted. Prefer this over screen-scraping solutions when you need structured segment data with start/end times, or when you need proof of the extracted content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":2,"lastUsedAt":"2026-06-16T17:31:25.270Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T16:25:05.419Z","isFirstParty":false}