<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: LogicBase Systems</title>
    <description>The latest articles on DEV Community by LogicBase Systems (@logicbase_systems).</description>
    <link>https://dev.to/logicbase_systems</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4247131%2F0cd24246-c5ab-4d89-9514-9f93dd8c00e2.png</url>
      <title>DEV Community: LogicBase Systems</title>
      <link>https://dev.to/logicbase_systems</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/logicbase_systems"/>
    <language>en</language>
    <item>
      <title>How to get transcripts from an entire YouTube playlist (no API key)</title>
      <dc:creator>LogicBase Systems</dc:creator>
      <pubDate>Mon, 16 Nov 2026 07:26:13 +0000</pubDate>
      <link>https://dev.to/logicbase_systems/how-to-get-transcripts-from-an-entire-youtube-playlist-no-api-key-5e60</link>
      <guid>https://dev.to/logicbase_systems/how-to-get-transcripts-from-an-entire-youtube-playlist-no-api-key-5e60</guid>
      <description>&lt;p&gt;&lt;em&gt;Disclosure: I made the Actor used in this article, so I'm biased. Apify links here are referral links. The same steps work with any tool that gives you captions; I note the free alternative below.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You have a YouTube playlist, say a 40-video course, and you want the text of every video. Maybe it's for a ChatGPT or Claude knowledge base, for notes, or to search across a whole series. Copy-pasting 40 transcripts by hand is a bad afternoon.&lt;/p&gt;

&lt;p&gt;Here is how to get all of them in one go, with Python, and &lt;strong&gt;without a YouTube Data API key or a Google Cloud project&lt;/strong&gt;. The result is a CSV and one Markdown file you can drop into an AI tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you'll need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Python 3.9 or newer&lt;/li&gt;
&lt;li&gt;A free &lt;a href="https://apify.com?fpr=2wlkfg" rel="noopener noreferrer"&gt;Apify account&lt;/a&gt; (new accounts include free monthly platform credit, so the example below costs well under a cent; please check the current credit on Apify's pricing page)&lt;/li&gt;
&lt;li&gt;Your Apify API token, from &lt;em&gt;Settings → API &amp;amp; Integrations&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install -U apify-client pandas
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;APIFY_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"your-token-here"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 1: Run the Actor on your playlist
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://apify.com/logicbase_systems/youtube-transcript?fpr=2wlkfg" rel="noopener noreferrer"&gt;YouTube Transcript &amp;amp; Subtitles Scraper&lt;/a&gt; takes playlist, channel or video links and returns one row per video. Pricing is $0.004 per transcript delivered ($4 per 1,000). Videos with no captions are not charged.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;apify_client&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;ApifyClient&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;ApifyClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"APIFY_TOKEN"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;run&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;actor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"logicbase_systems/youtube-transcript"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;call&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;run_input&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"playlistUrls"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"maxVideosPerSource"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;# raise this for the whole playlist&lt;/span&gt;
    &lt;span class="s2"&gt;"languages"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"en"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"includeSegments"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# plain text only, smaller output&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I used a short public playlist (3Blue1Brown's neural networks series) and &lt;code&gt;maxVideosPerSource: 3&lt;/code&gt; so you can test cheaply. Change the number, or leave it at the default of 20, once you're happy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Read the results
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dataset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;default_dataset_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;iterate_items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"ok"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{len(ok)} transcripts, {len(rows) - len(ok)} videos without a transcript"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every row has &lt;code&gt;status&lt;/code&gt;. Videos that have no captions come back as &lt;code&gt;status: "error"&lt;/code&gt; with a reason such as &lt;code&gt;NO_CAPTIONS&lt;/code&gt;, so one bad video never breaks the whole run. Each good row has the title, channel, publish date, word count, language, and the full &lt;code&gt;text&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;When I ran exactly this code, I got 3 transcripts back in a few seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Save as CSV and as one file for AI tools
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DataFrame&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"channelName"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"publishDate"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"wordCount"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"videoUrl"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_csv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"playlist_transcripts.csv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"playlist_transcripts.md"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"w"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"utf-8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"# {r['title']}\n{r['videoUrl']}\n\n{r['text']}\n\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You now have a spreadsheet-friendly CSV and a single Markdown file with a heading and link per video. Upload the Markdown file to ChatGPT, Claude or NotebookLM, or split it into chunks for a RAG pipeline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Useful options
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;languages: ["en", "hi"]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Preferred languages, in order. Human-made captions are used first, automatic ones as a fallback.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;includeSrt: true&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Adds the transcript as SRT subtitle text.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;includeSegments: true&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Adds timestamped caption lines (&lt;code&gt;start&lt;/code&gt;, &lt;code&gt;duration&lt;/code&gt;, &lt;code&gt;text&lt;/code&gt;).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;channelUrls&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Same thing for a whole channel: it takes the newest videos first.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;videoUrls&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A plain list of video links, mixed freely with playlists and channels.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Things to know before you rely on it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It reads &lt;strong&gt;captions that already exist&lt;/strong&gt; on the video, human-made or YouTube's automatic ones. It does not listen to audio, so videos with captions turned off can't be transcribed.&lt;/li&gt;
&lt;li&gt;Automatic captions can contain mistakes, especially with names and technical terms.&lt;/li&gt;
&lt;li&gt;Check that your use of the text respects YouTube's terms and the video owners' copyright.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The free DIY alternative
&lt;/h2&gt;

&lt;p&gt;If you only have a few videos and don't mind some setup, you can do it yourself with &lt;code&gt;yt-dlp&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;yt-dlp --skip-download --write-subs --write-auto-subs --sub-langs &lt;span class="s2"&gt;"en.*"&lt;/span&gt; --convert-subs srt &lt;span class="s2"&gt;"PLAYLIST_URL"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That works well from your own computer. The catch is that YouTube often blocks or rate-limits requests that come from cloud servers, so a script that runs fine locally can fail once you deploy it. Handling that (rotating IPs, retries) is the part a hosted tool takes off your hands.&lt;/p&gt;

&lt;h2&gt;
  
  
  Next steps
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Run the same code on a &lt;strong&gt;channel&lt;/strong&gt;: replace &lt;code&gt;playlistUrls&lt;/code&gt; with &lt;code&gt;"channelUrls": ["https://www.youtube.com/@3blue1brown"]&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Schedule it on Apify to pull each new video's transcript automatically.&lt;/li&gt;
&lt;li&gt;Send the output to Google Sheets, Notion or a vector database with Apify's n8n, Make or Zapier integrations.&lt;/li&gt;
&lt;li&gt;Ready-made versions: &lt;a href="https://apify.com/logicbase_systems/youtube-transcript/examples/youtube-playlist-to-transcripts?fpr=2wlkfg" rel="noopener noreferrer"&gt;playlist to transcripts&lt;/a&gt;, &lt;a href="https://apify.com/logicbase_systems/youtube-transcript/examples/youtube-channel-latest-video-transcripts?fpr=2wlkfg" rel="noopener noreferrer"&gt;channel transcripts&lt;/a&gt;, &lt;a href="https://apify.com/logicbase_systems/youtube-transcript/examples/youtube-subtitles-to-srt?fpr=2wlkfg" rel="noopener noreferrer"&gt;subtitles to SRT&lt;/a&gt;, &lt;a href="https://apify.com/logicbase_systems/youtube-transcript/examples/youtube-transcript-for-ai-and-llm?fpr=2wlkfg" rel="noopener noreferrer"&gt;plain text for AI&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If something doesn't work for you, open an issue on the &lt;a href="https://apify.com/logicbase_systems/youtube-transcript?fpr=2wlkfg" rel="noopener noreferrer"&gt;Actor page&lt;/a&gt; and I'll look at it.&lt;/p&gt;

</description>
      <category>youtube</category>
      <category>python</category>
      <category>webscraping</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
