Captapi

Structured social media data from 32 platforms (YouTube, TikTok, Instagram, Facebook, X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Truth Social, Kick, Kwai, Komi, Pillar, Linkbio, Linkme, Amazon Shop) — transcripts, AI summaries, comments, stats, search and downloads.

Actions171

YouTube → YouTube Audio Transcript

AI-generated

Summary

Fetches a transcript for a public YouTube video, using the preferred caption language when provided or auto-detecting it. Set Cache to serve a response cached for 24 hours when available, and MaxCredits to reject the request before speech-to-text if its estimated cost exceeds the limit.

Inputs

  • URL (required) — Public YouTube video URL; it must point to YouTube.
  • Language — Preferred caption language as an ISO code, such as "en"; defaults to auto-detection.
  • MaxCredits — Rejects the request before speech-to-text when estimated credits exceed this value; 0 means no maximum.
  • Cache — Defaults to false and fetches fresh data. Set true to use a 24-hour response cache; a cache hit costs 0 credits.

Output shape

A transcript response envelope.

On cache hits, the envelope includes cached and cachedAt. Requests exceeding MaxCredits return a 400 cost_exceeds_max error with 0 credits.

Links

Discussion