{"uid":"cap_HkUFYb5gQC5QRMVt_anDP","slug":"youtube-transcript-scraper-api-x402-e434376f","name":"YouTube Transcript Scraper API (x402)","description":"Pay-per-call structured web data. Failed or empty runs are not charged.","url":"https://x402.186-241-26-229.sslip.io/v1/youtube-transcript?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"end_date":{"type":"string","description":"Inclusive date filter for channel videos, in YYYY-MM-DD format."},"language":{"type":"string","default":"en","description":"Preferred caption language code, such as en, es, or fr. Falls back to another available language."},"maxItems":{"type":"integer","default":0,"minimum":0,"description":"Stop after this many successful video transcripts. Zero means no total cap."},"max_videos":{"type":"integer","default":10,"maximum":200,"minimum":1,"description":"Maximum channel videos to examine, including videos without captions."},"start_date":{"type":"string","description":"Inclusive date filter for channel videos, in YYYY-MM-DD format."},"video_urls":{"type":"array","default":[],"description":"Several public video URLs or IDs; leave empty when using a channel."},"channel_url":{"type":"string","description":"Public channel handle, channel ID, custom URL, or user URL."},"youtube_url":{"type":"string","description":"One public video, Short, live replay, or short link."},"include_transcript_text":{"type":"boolean","default":false,"description":"Include a single joined text string alongside timed segments."}}},"responseSchema":{"type":"json","example":{"count":1,"items":[{"url":null,"title":null,"videoId":null,"channelId":null,"channelName":null,"description":null,"channelUsername":null,"channelThumbnail":null}],"product":"youtube-transcript"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4XNnC05AfMXTq6_xxvINQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches structured transcripts and metadata for YouTube videos or channel videos, with optional date filtering and language selection, billed per successful call via x402.","exampleAgentPrompt":"Grab the full transcript of this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ — in English, and include both the timed segments and the joined text string.","exampleUseCases":[{"title":"Summarize a YouTube lecture","prompt":"Get the transcript of this YouTube lecture https://www.youtube.com/watch?v=abc123 in English with the full joined text included — I want to summarize it."},{"title":"Extract channel transcripts by date","prompt":"Fetch transcripts for up to 50 videos from the YouTube channel @lexfridman that were published between 2024-01-01 and 2024-06-30, in English, stopping after 10 successful transcripts."},{"title":"Multilingual caption retrieval","prompt":"Pull the transcript for https://youtu.be/xyz789 in Spanish — if Spanish captions aren't available, fall back to whatever language is there."}],"resultDescription":"Returns a JSON object with a count of results and an array of items, each containing the video URL, title, video ID, channel ID, channel name, video description, channel username, channel thumbnail, and timed caption segments (plus optionally a joined transcript text string).","failureModes":["Video has no captions available — returns empty items, no charge","Invalid or private YouTube URL — returns error, no charge","Channel URL not found or inaccessible — returns empty result","Language code not available and no fallback found — returns empty transcript","Rate limit or network issue fetching YouTube data — request fails","Invalid date format in start_date or end_date — validation error"],"whenToPreferThis":"Choose this endpoint when you need structured transcript data from YouTube videos or channels with pay-per-successful-call pricing (no charge for failed/empty runs). It supports bulk channel scraping with date filters, multiple languages, and both single-video and multi-video modes — making it ideal for content analysis, summarization pipelines, or research workflows that need reliable, structured captions at low cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:14:30.271Z","isFirstParty":false,"canonicalSlug":"youtube-transcript-scraper-api-x402-e434376f"}