FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
YouTube Transcripts Without the API — Extract Captions Programmatically
NewsWeb Development

YouTube Transcripts Without the API — Extract Captions Programmatically

via Dev.to JavaScriptАлексей Спинов3h ago

YouTube's official API doesn't even have a transcripts endpoint. But there's another way. How YouTube Loads Captions When you watch a video with captions enabled, YouTube fetches an XML file with timestamped text. The URL is embedded in the page's player response. Steps Fetch the video page and extract captionTracks from the player response Find the right language — tracks include language code and auto-generated flag Fetch the XML from the track's baseUrl Parse timestamps — each <text> element has start and dur attributes Output { "videoId" : "dQw4w9WgXcQ" , "language" : "en" , "isAutoGenerated" : true , "wordCount" : 285 , "fullText" : "We're no strangers to love..." , "entries" : [{ "start" : 18.0 , "duration" : 3.5 , "text" : "We're no strangers to love" }] } Use Cases Content repurposing (video → blog post) AI training data from video content Accessibility analysis Translation workflows I built a YouTube Transcript Scraper — free on Apify (search knotless_cadence youtube-transcrip

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
0 views

Related Articles

The Long Walk Out of venv and embracing UV
News

The Long Walk Out of venv and embracing UV

Medium Programming • 14m ago

Everyone Says Project Loom Changes Everything. Does It Really?
News

Everyone Says Project Loom Changes Everything. Does It Really?

Medium Programming • 28m ago

Code Review Is Not About Being Right. It’s About Making Code Obvious.
News

Code Review Is Not About Being Right. It’s About Making Code Obvious.

Medium Programming • 53m ago

News

Maximizing Your Solana Experience with RefundYourSOL (RYS)

Medium Programming • 56m ago

I Thought Arch Was Hard Until I Tried Gentoo
News

I Thought Arch Was Hard Until I Tried Gentoo

Medium Programming • 1h ago

Discover More Articles