youtube/
transcripts

The YouTube Transcripts API retrieves available transcripts from YouTube video URLs with an optional language, returning normalized text, caption language and source, channel context, and duration.

YouTube Transcripts API

Transcripts
Plain text
Preferred language
0.5 credits / result
Ready
Ready

Enter parameters and send a request. The task status and normalized results will appear here.

README

YouTube Transcripts

YouTube Transcripts are plain-text versions of available captions for public videos, with language, caption source, channel context, publication details, and duration. This text supports accessibility, search, quotation review, topic analysis, summarization, and content indexing.

YouTube Transcripts API Features

  • Multi-video transcript retrievalOne YouTube Transcripts API request can retrieve available transcript text from multiple public video URLs.
  • Preferred language selectionRequest a preferred language with a valid BCP-47 code such as en or zh-CN.
  • Language availability metadataReturn the actual selected language and the list of available transcript languages.
  • Plaintext transcript formatProvide a consistent plaintext format with transcript source information when known.
  • Traceable video contextConnect every transcript with its video ID, title, channel information, publication date, duration, and collected_at.

YouTube Transcripts API Parameters

ParametersRequiredDescription
urlsRequiredPublic YouTube video URLs, separated by commas or new lines.
languageOptionalOptional preferred BCP-47 caption language, such as en or zh-CN; the returned language can differ.

How to Use the YouTube Transcripts API

Request captions only after choosing the videos that matter. Then verify the returned language and source before the text enters search, RAG, summarization, translation, or compliance workflows.

  1. Choose public video URLs, ideally after discovery or metadata review has removed irrelevant items.
  2. POST urls and an optional BCP-47 language to /v1/youtube/transcripts and store the task_id.
  3. Poll /v1/tasks/{task_id}; a successful batch can still contain fewer results than submitted URLs.
  4. For every item, inspect language, available_languages, and transcript_source before chunking the plaintext; paginate while has_more is true.
curl -X POST "https://api.socq.ai/v1/youtube/transcripts" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://www.youtube.com/watch?v=arj7oStGLkU"],"language":"en"}'

# Poll GET /v1/tasks/{task_id}
# Read GET /v1/tasks/{task_id}?limit=50

YouTube Transcripts API Use Cases

  • Video summarization: Use available transcript text to create summaries, research notes, or content briefs for long videos.
  • Searchable video archives: Index transcript text with video IDs, titles, channel information, and language metadata.
  • Topic and information extraction: Identify topics, entities, claims, and keywords across a selected collection of public videos.
  • Translation and localization: Use the selected and available language fields to route transcript text into translation workflows.

YouTube Transcripts API Pro Tips

  • Always route by the returned language, not the requested preference. Fallback can legitimately select another available track.
  • Machine-generated captions can contain names, punctuation, and domain-term errors. Keep transcript_source and review high-stakes extracts against the video.
  • A successful task with fewer items usually means some videos had no usable public captions; it is not automatically a batch failure.
  • Plaintext has no segment timestamps or speaker labels. Do not manufacture precise quote timing from this response.
  • Chunk text downstream, but keep video ID, language, source, and collected_at on every chunk so citations remain traceable.
  • Use Videos to enrich title, media, and public metrics when the transcript will appear in a searchable catalog.
  • If exact language coverage is mandatory, compare available_languages first and treat fallback results as exceptions requiring review.

Beyond the YouTube Transcripts API, use these APIs when you need a different type of public YouTube data.

  • YouTube Channel Videos API — Collect regular public videos from channel URLs, excluding Shorts and live streams.
  • YouTube Comments API — Collect public comments, authors, engagement, source videos, and conversation context.
  • YouTube Channels API — Retrieve public channel identity, images, verification, and visible audience statistics.
  • YouTube Videos API — Retrieve metadata, thumbnails, duration, and engagement for known video or Short URLs.
  • YouTube Shorts API — Collect public Shorts, thumbnails, duration, publication details, and engagement by channel.
  • YouTube Channel Live Videos API — Collect public broadcast records exposed on channel live surfaces, with source context and visible metrics.

Explore other platforms

Combine YouTube data with public data from other supported social platforms.

YouTube Transcripts API — FAQ

YouTube Transcripts API retrieves available caption text from public YouTube video URLs with an optional preferred language. It returns normalized plain text, actual and available languages, caption source, video context, duration, and collection time.

Submit one or more public YouTube video URLs and an optional BCP-47 preferred language.

You can request a preferred language. If an exact match is unavailable, the API can select the base language or another available transcript. Always read the returned language field.

A video without available public caption or transcript text does not produce a transcript result.

No. The response format is plaintext and does not include segment timestamps or guaranteed speaker labels.

No. Accuracy depends on whether captions are creator-provided or automatically generated, as well as audio quality, language, and speakers.

The YouTube Transcripts API costs 0.5 credits for each normalized transcript result returned.

By SocQ · Updated

From the official YouTube API documentation:

“Projects that enable the YouTube Data API have a default quota allocation of 100 search.list calls, 100 videos.insert calls, and 10,000 units per day combined for all other endpoints.”
Google for Developers: YouTube Data API quota costs · accessed November 2026