YouTube Video Subtitles & Transcripts API: AI Large Language Models

Extract full closed captions, timed transcript lines, and complete text from YouTube videos through MuAPI.

📝

Overview

About this model

YouTube Video Subtitles extracts the full closed-caption track from a video, returning both a timed line-by-line breakdown (with start and end offsets in seconds) and a single concatenated full_text transcript. This removes the need to manually download and parse caption files, and works for both creator-uploaded captions and YouTube's auto-generated ones where available. The timed structure makes it straightforward to jump to a specific moment referenced in the transcript, while the flat text is ready to feed directly into a summarization or topic-extraction pipeline.

1AI summarization: Feed the full transcript text into an LLM to generate video summaries or show notes.
2Content repurposing: Turn a video transcript into a blog post, newsletter, or social captions.
3Searchable transcript libraries: Index timed subtitle lines to build a searchable video knowledge base.
4Accessibility and localization audits: Verify which languages a video's captions are available in.
💰

Pricing & Value

Cost analysis

muapiappFrom $0.010 per Live lookup

Subtitles are priced at 3x the selected SERP method; Standard normal/high starts at $0.003/$0.006.

Fal.aiNot available

Not offered as a standalone API.

ReplicateNot available

Not offered as a standalone API.

** Competitor pricing is estimated based on similar model architectures and usage tiers.

⚙️

Technical Details

Configuration schema

Video Idstring

YouTube video ID or full YouTube URL (watch, embed, short link).

Default ValuedQw4w9WgXcQ
Subtitles Languagestring

Language tag of subtitles to extract (e.g., 'en', 'es', 'fr', 'zh-Hans').

Default Valueen
Subtitle Translation Languagestring

Optional language tag for translating the selected subtitle track.

Default Valuenull
LocationEnum (213 options)

Country to target for the search.

Default ValueUnited States
LanguageEnum (129 options)

Language to search in.

Default ValueEnglish
Operating SystemEnum (2 options)

Desktop operating system.

Default Valuenull
Tagstring

Optional request tag for tracing.

Default Valuenull
Delivery MethodEnum (2 options)

Use Live for immediate results or Standard for queued tasks.

Default Valuelive
PriorityEnum (2 options)

Standard task priority.

Default Valuenormal
📖

Implementation Guide

Developer documentation

How to Use YouTube Video Subtitles API

  1. Provide video ID: Pass the YouTube video ID or URL in video_id.
  2. Set caption language: Provide a two-to-twenty-character language tag in subtitles_language, such as en, es, or zh-Hans (defaults to en).
  3. Optionally translate: Set subtitles_translate_language when the requested caption track should be translated.
  4. Retrieve transcript: Returns timed subtitle lines (start, end, text) and the full concatenated transcript text.
curl -X POST https://api.muapi.ai/api/v1/seo-youtube-video-subtitles \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video_id": "dQw4w9WgXcQ",
    "subtitles_language": "en"
  }'

Common Questions

Frequently asked

What if the video does not have subtitles in the requested language?

The API returns an empty list of subtitles, or falls back to available auto-generated captions where they exist.

Does it return timestamps?

Yes. Each item in the `items` array includes `start` (seconds), `end` (seconds), and `text`.

Do I get a single transcript string as well as timed lines?

Yes, the response includes both the `items` array of timed lines and a `full_text` field with the entire transcript concatenated.

Does this work on auto-generated captions?

Yes, it retrieves whichever caption track is available for the requested language, whether creator-uploaded or auto-generated by YouTube.

Can I use the transcript for AI summarization?

Yes, the `full_text` field is designed to be passed directly into a summarization or topic-extraction LLM prompt.