{"uid":"cap_LHBYyIB74RJQmgn_LpkfK","slug":"fastaf-youtube-transcript-search-1b4d8846","name":"FastAF YouTube Transcript & Search","description":"YouTube transcript and video search API for AI agents: retrieve timestamped transcript segments by video ID or find videos by keyword. Returns JSON transcripts with text, start and duration, or video search results for content research and summarization. Provided by FastAF YouTube Transcript & Metadata. Price: $0.001000 USDC per successful call.","url":"https://api.fastaf.co/x402/v1/youtube?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","title":"FastAF YouTube Transcript & Metadata","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","anyOf":[{"required":["v"]},{"required":["resource","search_query"],"properties":{"resource":{"const":"search"}}}],"examples":[{"v":"jNQXAC9IVRw","language":"en","resource":"transcript"}],"properties":{"v":{"type":"string","examples":["jNQXAC9IVRw"],"maxLength":8192,"description":"Required YouTube video ID for transcript, e.g. jNQXAC9IVRw, not the watch URL. Not valid for search; no default. No option surcharge; transcript costs 1 credit, search 5 credits per request."},"sp":{"type":"string","maxLength":8192,"description":"YouTube search filter or continuation token copied from a search URL/previous response; search only. Omit for the first unfiltered page. Each page is a separate request. No option surcharge; transcript costs 1 credit, search 5 credits per request."},"country":{"type":"string","maxLength":8192,"description":"Two-letter YouTube country code, e.g. us or gb; upstream default us for search/transcripts. No option surcharge; transcript costs 1 credit, search 5 credits per request."},"language":{"type":"string","examples":["en"],"maxLength":8192,"description":"YouTube language code, e.g. en, es or de; upstream default en. For transcripts, requests the available caption language; no translation is guaranteed. No option surcharge; transcript costs 1 credit, search 5 credits per request."},"resource":{"enum":["transcript","search"],"type":"string","default":"transcript","examples":["transcript"],"description":"YouTube operation: transcript (default) or search. No option surcharge; transcript costs 1 credit, search 5 credits per request."},"search_query":{"type":"string","maxLength":8192,"description":"Required YouTube search text for resource=search, e.g. espresso tutorial. Not valid for transcript; no default. No option surcharge; transcript costs 1 credit, search 5 credits per request."}},"description":"YouTube transcript lookup using resource=transcript and video ID v. Video search instead requires resource=search and search_query.","additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"transcripts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"start":{"type":"number"},"duration":{"type":"number"}},"additionalProperties":true}}},"description":"YouTube transcript JSON: transcripts contains text segments with start and duration in seconds. resource=search returns video_results instead.","additionalProperties":true}}},"docsUrl":{"type":"string","format":"uri"},"website":{"type":"string","format":"uri"},"homepage":{"type":"string","format":"uri"},"openApiUrl":{"type":"string","format":"uri"}},"description":"YouTube transcript and video search API for AI agents: retrieve timestamped transcript segments by video ID or find videos by keyword. Returns JSON transcripts with text, start and duration, or video search results for content research and summarization."},"responseSchema":{"type":"json","example":{"transcripts":[{"text":"...","start":0,"duration":3.2}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zf2KIqUiphjypZbPEvrCf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a YouTube video transcript by video ID or returns YouTube search results as structured JSON","exampleAgentPrompt":"Can you get me the full transcript of the YouTube video with ID dQw4w9WgXcQ in English?","exampleUseCases":[{"title":"Summarize YouTube lecture content","prompt":"Grab the transcript of the YouTube video jNQXAC9IVRw and give me a summary of the main points covered."},{"title":"Research YouTube videos on a topic","prompt":"Search YouTube for 'espresso tutorial' and show me the top results so I can pick one to watch."},{"title":"Extract quotes from a YouTube interview","prompt":"Get the transcript for YouTube video ID xvFZjo5PgG0 — I need to find the exact quote where the speaker talks about climate change."}],"resultDescription":"For transcripts: a JSON array of transcript segments each containing text, start time (seconds), and duration. For search: a JSON list of YouTube video results with titles, links, and metadata relevant to the search query.","failureModes":["Video ID not found or video unavailable returns an error","Video has no captions or disabled transcripts returns empty or error","Requested caption language not available — no translation guaranteed","Invalid or missing required parameters (v for transcript, search_query for search)","YouTube rate limiting or upstream unavailability causes failure (not billed)","Using v parameter with resource=search or search_query with transcript causes validation error"],"whenToPreferThis":"Use this endpoint when you need machine-readable YouTube transcript text with timestamps for a known video ID, or when you need structured YouTube search results as JSON. It is ideal for agents that need to process video content textually, summarize videos, extract quotes, or discover videos on a topic without scraping YouTube directly. Prefer this over generic web scrapers when the target is specifically YouTube content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T15:37:56.482Z","isFirstParty":false,"canonicalSlug":"fastaf-youtube-transcript-search-1b4d8846"}