{"uid":"cap_N4p0XCmf4rLG1QLJ5YJN6","slug":"weblens-youtube-transcript-extraction-ebcd1d1e","name":"WebLens YouTube Transcript Extraction","description":"# WebLens - Web Intelligence API, pay per call\n\nScrape, crawl, map and extract the web. No account, no API key, no monthly\nminimum — you pay for the calls you make and nothing else.\n\n## Pricing\nPage fetching starts at **$0.002**, whole-site crawling at\n**$0.0015/page**, and sitemap discovery at **$0.004**.\nComparable services bill $0.007-0.008 per request, or reach a lower per-page\nrate only on a $99/month commitment. WebLens has no commitment to reach.\n\n## Payment Protocol\nAll paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native\nmicropayments (USDC on Base).\n\n## Cache Discount\nCached responses are **70% cheaper** than fresh fetches.","url":"https://api.weblens.dev/social/youtube/transcript?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lang":{"type":"string","description":"Transcript language code (optional)"},"videoId":{"type":"string","description":"YouTube video ID or full video URL"}}},"responseSchema":{"type":"json","example":{"videoId":"dQw4w9WgXcQ","fullText":"We're no strangers to love...","segments":[{"text":"We're no strangers to love","startMs":0,"startTime":"0:00"}],"fetchedAt":"2026-07-25T12:00:00.000Z","requestId":"req_yt123"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yJp-jRrOBMZI8n_5XZ33v","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the full text transcript and timestamped segments from a YouTube video given its video ID","exampleAgentPrompt":"Can you pull the full transcript from the YouTube video with ID dQw4w9WgXcQ, including timestamped segments so I can see exactly when each line was spoken?","exampleUseCases":[{"title":"Summarize a long YouTube lecture","prompt":"Grab the transcript of the YouTube video dQw4w9WgXcQ and then summarize the key points for me — I want to know what the speaker covered without watching the whole thing."},{"title":"Quote-check a YouTube interview","prompt":"Can you get the full timestamped transcript of the YouTube video with ID abc123XYZ so I can find the exact moment where the interviewee talks about climate change and pull the direct quote?"},{"title":"Build searchable notes from a tutorial","prompt":"Fetch the transcript of YouTube video ID xyz789tutorial with timestamps — I want to create a searchable outline of the tutorial so I can jump to specific steps."}],"resultDescription":"Returns a JSON object containing the YouTube video ID, the full concatenated transcript text, an array of timestamped segment objects (each with the segment text, start time in milliseconds, and a human-readable start time string), a timestamp of when the data was fetched, and a unique request ID.","failureModes":["Video has no captions or auto-generated subtitles available — returns error indicating transcript unavailable","Invalid or non-existent video ID — returns error with video not found message","Video is age-restricted or private — returns access denied or extraction failure error","YouTube blocking or rate limiting the scrape — returns fetch failure or retry-later error","Network timeout when fetching long videos with large transcripts"],"whenToPreferThis":"Choose this endpoint when you need structured, timestamped transcript data from a YouTube video programmatically — especially when you need segment-level timing for quote extraction, summarization, or searchable note generation. Prefer this over general web scraping endpoints because it is purpose-built for YouTube transcripts and returns a clean, segmented data structure rather than raw HTML. The 70% cache discount makes it cost-effective for popular videos that may already be cached.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:46:19.770Z","isFirstParty":false,"canonicalSlug":"weblens-youtube-transcript-extraction-ebcd1d1e"}