{"uid":"cap_bVC_G3klPDEn-UlkAiusE","slug":"youtube-transcript-api-melchior-labs-19e81217","name":"YouTube Transcript API — Melchior Labs","description":"Pay per request for structured YouTube transcripts, lexical passage search, chunks, and timestamp citations over x402.","url":"https://transcript.melchiorlabs.com/v1/youtube/transcript?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","pattern":"^https://(?:www\\.|m\\.)?(?:youtube\\.com|youtu\\.be)/","description":"Public youtube.com or youtu.be video URL"},"language":{"type":"string","default":"en","description":"Caption language code, such as en or es"},"includeText":{"type":"boolean","default":true},"preferManual":{"type":"boolean","default":true},"includeSegments":{"type":"boolean","default":true},"maxChunkCharacters":{"type":"integer","default":2400,"maximum":8000,"minimum":400}}},"responseSchema":{"type":"json","example":{"usage":{"cache":"miss","characters":4200,"chunkCount":2,"estimatedTokens":1050},"video":{"id":"dQw4w9WgXcQ","url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ","title":"Video title","durationSeconds":213},"chunks":[{"text":"Agent-ready context...","index":0,"citation":{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=0s","label":"0:00–0:35"},"endSeconds":35,"startSeconds":0}],"requestId":"0b0ef10e-ff50-4a45-9c4e-b7344aa93f63","transcript":{"text":"Transcript text...","source":"manual","language":"en","segmentCount":42}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"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_AbmqoX3FRPMSKHGwoAq0c","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches structured transcripts from public YouTube videos, returning full text, timestamped chunks, and citation URLs, billed per request via x402.","exampleAgentPrompt":"Can you grab the full transcript of this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ — in English, broken into chunks of about 2400 characters each, with timestamp citations for every chunk?","exampleUseCases":[{"title":"Research summary from lecture video","prompt":"Pull the transcript from this MIT lecture on YouTube — https://www.youtube.com/watch?v=example123 — in English with timestamp citations, so I can summarize the key points by section."},{"title":"Podcast episode search and quote retrieval","prompt":"Get the full chunked transcript from this podcast episode on YouTube — https://youtu.be/abc456XYZ — and break it into 2400-character segments so I can search for where they discuss climate policy and pull an exact quote with a timestamp link."},{"title":"Multilingual content extraction","prompt":"Fetch the Spanish captions from this YouTube video at https://www.youtube.com/watch?v=es789example and give me the complete transcript text along with timestamped chunks, preferring manually created captions if available."}],"resultDescription":"Returns a JSON object containing: full transcript text with language and source info (manual vs auto-generated), an array of timestamped chunks each with start/end seconds and a citation URL deep-linking to that moment in the video, video metadata (title, duration, ID), and usage stats (character count, estimated tokens, chunk count, cache status).","failureModes":["Video is private or age-restricted — no transcript returned","No captions available in requested language — error or fallback to auto-generated","Invalid or non-YouTube URL format — validation error","Video has disabled captions entirely — no transcript available","Network timeout fetching captions from YouTube — request error"],"whenToPreferThis":"Choose this endpoint when you need structured, agent-ready YouTube transcripts with timestamped chunks and citation URLs in a single pay-per-call request, especially when integrating into LLM pipelines that require grounded references back to specific video moments. Prefer it over generic scraping when you need clean text segmentation with configurable chunk sizes and built-in token usage estimates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T13:47:49.032Z","isFirstParty":false,"canonicalSlug":"youtube-transcript-api-melchior-labs-19e81217"}