<?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: Mohammed Usama</title>
    <description>The latest articles on DEV Community by Mohammed Usama (@mohammed_usama_d2c2854d70).</description>
    <link>https://dev.to/mohammed_usama_d2c2854d70</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%2F4195218%2F1afa0d6e-8bfa-49ea-86f3-f39c02f1d025.png</url>
      <title>DEV Community: Mohammed Usama</title>
      <link>https://dev.to/mohammed_usama_d2c2854d70</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mohammed_usama_d2c2854d70"/>
    <language>en</language>
    <item>
      <title>Download all transcripts from a YouTube channel in Python</title>
      <dc:creator>Mohammed Usama</dc:creator>
      <pubDate>Tue, 01 Dec 2026 15:37:02 +0000</pubDate>
      <link>https://dev.to/mohammed_usama_d2c2854d70/download-all-transcripts-from-a-youtube-channel-in-python-1aj2</link>
      <guid>https://dev.to/mohammed_usama_d2c2854d70/download-all-transcripts-from-a-youtube-channel-in-python-1aj2</guid>
      <description>&lt;p&gt;You want every transcript from one YouTube channel, maybe to build a search index over a creator's back catalog, maybe to feed an LLM. You open the popular Python library, and it asks for a video id, while what you have is a channel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why bulk YouTube transcripts are hard to get
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;youtube-transcript-api&lt;/code&gt; library fetches the transcript for one video id at a time. To cover a channel you first need the list of video ids, and there are two usual ways to get it. You can use the YouTube Data API, which needs a Google Cloud project, an API key and a quota. Or you can run yt-dlp against the channel page and parse its output.&lt;/p&gt;

&lt;p&gt;Then you loop over the ids. If that loop runs on a cloud server, YouTube often blocks the requests. I wrote about the &lt;code&gt;RequestBlocked&lt;/code&gt; error and the proxy fix in &lt;a href="https://dev.to/mohammed_usama_d2c2854d70/fixing-requestblocked-in-youtube-transcript-api-on-a-cloud-server-1jlg"&gt;an earlier post&lt;/a&gt;, so I will not repeat it here.&lt;/p&gt;

&lt;p&gt;I built an Apify actor, &lt;a href="https://apify.com/talcoe/youtube-transcripts" rel="noopener noreferrer"&gt;YouTube Transcript API&lt;/a&gt;, that takes the channel itself. It lists the videos, fetches each caption track through a residential proxy and returns one JSON record per video. The examples below use &lt;code&gt;requests&lt;/code&gt; and read your Apify token from the &lt;code&gt;APIFY_TOKEN&lt;/code&gt; environment variable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Download all transcripts from a YouTube channel in one call
&lt;/h2&gt;

&lt;p&gt;The endpoint &lt;code&gt;run-sync-get-dataset-items&lt;/code&gt; starts a run, waits for it and returns the records in the response body. These are the inputs that matter for a channel:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;sources&lt;/code&gt; takes channels, &lt;code&gt;@handles&lt;/code&gt;, playlists and single videos in one list.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;maxVideosPerSource&lt;/code&gt; caps how many videos come from each channel or playlist. The default is 20.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;publishedAfter&lt;/code&gt; keeps only videos published after a date, written as &lt;code&gt;YYYY-MM-DD&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;formats&lt;/code&gt; takes any of &lt;code&gt;text&lt;/code&gt;, &lt;code&gt;segments&lt;/code&gt;, &lt;code&gt;srt&lt;/code&gt; and &lt;code&gt;vtt&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;language&lt;/code&gt; picks the caption language. Human made captions win over auto generated ones.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I pointed it at @Fireship with &lt;code&gt;publishedAfter&lt;/code&gt; set to 2026-11-01 and asked for five videos. The call returned five records in about 21 seconds. Each record has &lt;code&gt;title&lt;/code&gt;, &lt;code&gt;publishDate&lt;/code&gt;, &lt;code&gt;url&lt;/code&gt;, &lt;code&gt;durationSeconds&lt;/code&gt;, &lt;code&gt;views&lt;/code&gt;, &lt;code&gt;language&lt;/code&gt;, &lt;code&gt;autoGenerated&lt;/code&gt;, &lt;code&gt;transcript&lt;/code&gt;, &lt;code&gt;wordCount&lt;/code&gt; and more, plus an &lt;code&gt;srt&lt;/code&gt; field because I asked for that format. The transcripts ran from 939 to 1,311 words.&lt;/p&gt;

&lt;h2&gt;
  
  
  Save one Markdown file per video
&lt;/h2&gt;

&lt;p&gt;One file per video is the easiest shape for an LLM context window or a retrieval index, because the title, date and URL travel with the text. This script makes the call and writes the files:&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="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;
&lt;span class="no"&gt;API&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/talcoe~youtube-transcripts/run-sync-get-dataset-items"&lt;/span&gt;
&lt;span class="n"&gt;headers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&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;"Bearer {os.environ['APIFY_TOKEN']}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"sources"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"@Fireship"&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;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"publishedAfter"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-01"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"formats"&lt;/span&gt;&lt;span class="p"&gt;:&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;"srt"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"language"&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="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;API&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;items&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"fireship"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mkdir&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;exist_ok&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&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;v&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;slug&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"[^a-z0-9]+"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&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="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lower&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="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"-"&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="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"# {v['title']}\n\nDate: {v['publishDate']}\nURL: {v['url']}\nWords: {v['wordCount']}\n\n{v['transcript']}\n"&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{v['publishDate']}-{slug}.md"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;page&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;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&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="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"videoId"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&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="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&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="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It prints one line per video and creates a &lt;code&gt;fireship&lt;/code&gt; folder. Each file starts with the video title as a heading, then date, URL and word count lines, then the transcript text.&lt;/p&gt;

&lt;p&gt;The transcript is one block of text, so chunk it by paragraph or by token count before you embed it. If you need quotes with timestamps, add &lt;code&gt;segments&lt;/code&gt; to &lt;code&gt;formats&lt;/code&gt;. Each segment carries &lt;code&gt;start&lt;/code&gt; and &lt;code&gt;duration&lt;/code&gt; in seconds, so you can link to the moment a line was said.&lt;/p&gt;

&lt;h2&gt;
  
  
  Export SRT subtitles
&lt;/h2&gt;

&lt;p&gt;The same response already holds the subtitles, because the request included &lt;code&gt;srt&lt;/code&gt;. Add this loop to the end of the script above, in the same file, since it reuses &lt;code&gt;items&lt;/code&gt; and &lt;code&gt;out&lt;/code&gt;:&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;for&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{v['videoId']}.srt"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"srt"&lt;/span&gt;&lt;span class="p"&gt;]&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each &lt;code&gt;.srt&lt;/code&gt; file opens in any subtitle editor or video player. Use &lt;code&gt;vtt&lt;/code&gt; in &lt;code&gt;formats&lt;/code&gt; and the &lt;code&gt;vtt&lt;/code&gt; field if you need WebVTT for a web player.&lt;/p&gt;

&lt;h2&gt;
  
  
  Preview a channel with listOnly before you pay
&lt;/h2&gt;

&lt;p&gt;Setting &lt;code&gt;listOnly&lt;/code&gt; to true returns the video list with no transcripts: id, title, channel, date and duration. It is a quick way to check you have the right channel and the right date range.&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="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;
&lt;span class="no"&gt;API&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/talcoe~youtube-transcripts/run-sync-get-dataset-items"&lt;/span&gt;
&lt;span class="n"&gt;headers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&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;"Bearer {os.environ['APIFY_TOKEN']}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"sources"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"@Fireship"&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;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"listOnly"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;API&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;videos&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&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;v&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;videos&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;v&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="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"durationSeconds"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"videoId"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&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="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="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;videos&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"videos listed"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run against @Fireship, it printed ten videos from 2026-11-03 to 2026-11-25, each about 4 to 6.5 minutes long. One thing to know before you point it at a big channel: each listed video is one billed record, the same price as a transcript. A preview of 200 videos costs about as much as the transcripts themselves. Keep &lt;code&gt;maxVideosPerSource&lt;/code&gt; small for a preview, or set &lt;code&gt;maxResults&lt;/code&gt; as a hard stop.&lt;/p&gt;

&lt;h2&gt;
  
  
  Videos without captions are skipped and cost nothing
&lt;/h2&gt;

&lt;p&gt;Some videos have no captions in your language. The actor does not return a record for them and does not charge for them. By default &lt;code&gt;fallbackToAnyLanguage&lt;/code&gt; is on, so a video without English returns its first available track and the &lt;code&gt;language&lt;/code&gt; field tells you which. Turn it off if you only want your language.&lt;/p&gt;

&lt;p&gt;To see which videos were skipped you need the run's key value store, and the synchronous endpoint does not give you that. Use the async endpoint with &lt;code&gt;waitForFinish&lt;/code&gt;, then read the &lt;code&gt;NO_TRANSCRIPT&lt;/code&gt; record:&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="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;
&lt;span class="no"&gt;BASE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://api.apify.com/v2"&lt;/span&gt;
&lt;span class="n"&gt;headers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&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;"Bearer {os.environ['APIFY_TOKEN']}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"sources"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Jatwf_XOncE"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"NFvDHYMzj9U"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"language"&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="s2"&gt;"fallbackToAnyLanguage"&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="s2"&gt;"formats"&lt;/span&gt;&lt;span class="p"&gt;:&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="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;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&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;"{BASE}/acts/talcoe~youtube-transcripts/runs"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"waitForFinish"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;180&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="nf"&gt;json&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;"data"&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="s2"&gt;"run status:"&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="s2"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&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;"{BASE}/datasets/{run['defaultDatasetId']}/items"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&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="s2"&gt;"transcripts returned:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&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;"videoId"&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;rows&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;store&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"defaultKeyValueStoreId"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&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;"{BASE}/key-value-stores/{store}/records/NO_TRANSCRIPT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;headers&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;row&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&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="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"skipped:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"videoId"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"reason"&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 ran it with one Fireship video and one music video that only has Spanish captions. It printed this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;run status: SUCCEEDED
transcripts returned: ['Jatwf_XOncE']
skipped: NFvDHYMzj9U LANGUAGE_NOT_AVAILABLE: no captions in "en". Available: es
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A video that fails for another reason, such as private, removed or blocked by a bot check, is also free. Those go to an &lt;code&gt;ERRORS&lt;/code&gt; record in the same store. If your channel is large, read both records after each run so you know what is missing from the dataset.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a 200 video channel costs
&lt;/h2&gt;

&lt;p&gt;Pricing is pay per result. A run costs a $0.005 start fee, then $0.005 per transcript on the Free and Bronze plans, $0.0045 on Silver and $0.004 on Gold, Platinum and Diamond. For a channel with 200 captioned videos:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Per transcript&lt;/th&gt;
&lt;th&gt;200 videos plus start fee&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free and Bronze&lt;/td&gt;
&lt;td&gt;$0.005&lt;/td&gt;
&lt;td&gt;$1.005&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Silver&lt;/td&gt;
&lt;td&gt;$0.0045&lt;/td&gt;
&lt;td&gt;$0.905&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gold and above&lt;/td&gt;
&lt;td&gt;$0.004&lt;/td&gt;
&lt;td&gt;$0.805&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Videos with no captions drop out of the count, so a channel that has 20 videos without captions costs less than the table says. Set &lt;code&gt;maxResults&lt;/code&gt; on the first run to cap the bill, and use a new run with &lt;code&gt;publishedAfter&lt;/code&gt; to pick up only new uploads later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use it from Claude or Cursor
&lt;/h2&gt;

&lt;p&gt;If you would rather ask an AI agent than write the script, the actor is also available through the Apify MCP server. Add this address to Claude, Cursor or any other MCP client:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://mcp.apify.com/?tools=talcoe/youtube-transcripts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Send your Apify token as an &lt;code&gt;Authorization: Bearer&lt;/code&gt; header. Then ask for the transcripts of a channel in plain words, and the agent fills in the same inputs shown above.&lt;/p&gt;

&lt;p&gt;I built this actor, and AI helped me write this post.&lt;/p&gt;

</description>
      <category>python</category>
      <category>api</category>
      <category>youtube</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to pull open US government bids into JSON or CSV with one API call</title>
      <dc:creator>Mohammed Usama</dc:creator>
      <pubDate>Sat, 28 Nov 2026 15:37:02 +0000</pubDate>
      <link>https://dev.to/mohammed_usama_d2c2854d70/how-to-pull-open-us-government-bids-into-json-or-csv-with-one-api-call-hcj</link>
      <guid>https://dev.to/mohammed_usama_d2c2854d70/how-to-pull-open-us-government-bids-into-json-or-csv-with-one-api-call-hcj</guid>
      <description>&lt;p&gt;US agencies post their bids on hundreds of separate portals. Federal work goes up on SAM.gov. Each state runs its own procurement site. Cities, counties and school districts post on BidNet Direct, Bonfire, PlanetBids, OpenGov, Public Purchase or their own websites. Each portal has its own search form, its own field names and its own way of writing a due date.&lt;/p&gt;

&lt;p&gt;If you already know you want this as data, one POST request does it. It returns open bids from 39 sources in a single record shape, as JSON or CSV, and you pay for each bid it returns.&lt;/p&gt;

&lt;h2&gt;
  
  
  The API call
&lt;/h2&gt;

&lt;p&gt;The work happens in an Apify actor I built, &lt;a href="https://apify.com/talcoe/us-government-bids-rfps" rel="noopener noreferrer"&gt;US Government Bids &amp;amp; RFPs&lt;/a&gt;. You need an Apify account and its API token, which sits in Apify Console under Settings, then API &amp;amp; Integrations. Put the token in an environment variable named &lt;code&gt;APIFY_TOKEN&lt;/code&gt; and run this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -X POST &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/talcoe~us-government-bids-rfps/run-sync-get-dataset-items"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $APIFY_TOKEN"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"keywords": ["hvac"], "states": ["TX", "FL"], "sources": ["sam", "texas", "florida"], "postedWithinDays": 14, "maxResults": 25}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;run-sync-get-dataset-items&lt;/code&gt; endpoint starts a run, waits for it to finish and sends the results back in the same response. I ran this on November 27. It answered in about 10 seconds with 10 open bids: 4 federal notices from SAM.gov, 5 from the Texas state portal and 1 from Florida's. Here is one of them with the main fields:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"texas:405-27R0002094"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"texas"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ROSENBERG AO HVAC REPLACEMENT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"agency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Department Of Public Safety"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"agencyType"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"state"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"state"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"TX"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"postedDate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-25"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"dueDate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-12-10T17:00:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"open"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"solicitationNumber"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"405-27R0002094"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"category"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Energy Computerized Control System (Hvac, Lighting, Utilities, Etc) Installation, Maintenance And Repair Services"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://www.txsmartbuy.gov/esbd/405-27R0002094"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A SAM.gov record carries the same keys and also fills in the NAICS codes, the set aside, the description and links to the attachments. When a portal does not publish a field, that key comes back as null, so your code can read every source the same way. The &lt;code&gt;id&lt;/code&gt; stays the same from run to run, which makes it a safe key for skipping bids you have already seen.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get government bids as a CSV file
&lt;/h2&gt;

&lt;p&gt;Add &lt;code&gt;format=csv&lt;/code&gt; to the URL and list the columns you want in &lt;code&gt;fields&lt;/code&gt;. The same endpoint then returns a CSV file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -X POST &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/talcoe~us-government-bids-rfps/run-sync-get-dataset-items?format=csv&amp;amp;fields=title,agency,state,dueDate,url"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $APIFY_TOKEN"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"keywords": ["hvac"], "states": ["TX", "FL"], "sources": ["sam", "texas", "florida"], "postedWithinDays": 14, "maxResults": 25}'&lt;/span&gt; \
  -o hvac_bids.csv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The file opens in Excel or Google Sheets with one row per bid. Mine had the same 10 bids as the JSON call.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same search in Python
&lt;/h2&gt;

&lt;p&gt;This script asks for janitorial and custodial work in New York and New Jersey across every source, sorts the bids by due date and writes its own CSV:&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;csv&lt;/span&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;requests&lt;/span&gt;
&lt;span class="no"&gt;URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/talcoe~us-government-bids-rfps/run-sync-get-dataset-items"&lt;/span&gt;
&lt;span class="n"&gt;query&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"keywords"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"janitorial"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"custodial"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"states"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"NY"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"NJ"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"postedWithinDays"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;14&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"maxResults"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&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;"Bearer {os.environ['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;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;600&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;bids&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sorted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&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;key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"dueDate"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="s2"&gt;""&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;"bids.csv"&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;newline&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;""&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="n"&gt;w&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;csv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writer&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="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writerow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"due"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"state"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"agency"&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;"url"&lt;/span&gt;&lt;span class="p"&gt;]&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;b&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;bids&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writerow&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;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"dueDate"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="s2"&gt;""&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="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"state"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"agency"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&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="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"url"&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="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(bids)} bids saved to bids.csv"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My run took 83 seconds and printed &lt;code&gt;16 bids saved to bids.csv&lt;/code&gt;. BidNet Direct found most of them. The rest came from SAM.gov, the New York State Contract Reporter and an OpenGov portal. A sync call waits up to 300 seconds. A search with a broad keyword across many states can run longer than that, so for big searches start the run with &lt;code&gt;POST /v2/acts/talcoe~us-government-bids-rfps/runs&lt;/code&gt; and read the dataset when it finishes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing sources and states
&lt;/h2&gt;

&lt;p&gt;Leave &lt;code&gt;sources&lt;/code&gt; out and the actor reads all 39. That is the right default for a real search, and it is also the slowest option, which is why the first two examples name three sources.&lt;/p&gt;

&lt;p&gt;The federal source is &lt;code&gt;sam&lt;/code&gt;, which reads every active contract opportunity on SAM.gov. Twenty nine state portals sit next to it, from Texas ESBD and MyFloridaMarketPlace to Virginia eVA, Cal eProcure and the New York State Contract Reporter. A state portal only runs when &lt;code&gt;states&lt;/code&gt; is empty or includes that state.&lt;/p&gt;

&lt;p&gt;Local agencies come from the multi agency platforms. BidNet Direct lists state and local bids in all 50 states. For the other platforms the actor ships with its own lists of agency portals. Bonfire has 398 of them and PlanetBids has 323, most of those in California. Public Purchase adds 861 agency pages. CivicPlus covers 148 city and county websites. OpenGov adds more than 500 portals. The &lt;code&gt;states&lt;/code&gt; filter decides which of those get read, so a two state search stays quick.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;keywords&lt;/code&gt; matches the title, the description and the category, and one matching keyword is enough. &lt;code&gt;postedWithinDays&lt;/code&gt; keeps a run to fresh postings. &lt;code&gt;maxResults&lt;/code&gt; ends the run at that number of bids, and since you pay per bid it also caps the bill.&lt;/p&gt;

&lt;h2&gt;
  
  
  A daily feed of only new bids
&lt;/h2&gt;

&lt;p&gt;Turn on &lt;code&gt;onlyNew&lt;/code&gt; and give the search a &lt;code&gt;monitorName&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"keywords"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"roofing"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"states"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"TX"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"onlyNew"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"monitorName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"roofing-texas"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"maxResults"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each run now returns only the bids this monitor has not delivered before, and you never pay twice for the same bid. I ran this input twice in a row. The first run read every source for Texas in about nine minutes and returned 78 open roofing bids, 72 of them from BidNet Direct. The second run returned none, because nothing new had been posted in between. The list of delivered bids lives in a key value store in your own Apify account for 180 days.&lt;/p&gt;

&lt;p&gt;To make it a morning feed, save the input as a task in Apify Console, add a schedule with the cron expression &lt;code&gt;0 7 * * *&lt;/code&gt; and attach an integration for Slack, email, Google Sheets or a webhook. The new roofing bids in Texas then show up where your team already works, every morning, with no script of your own to keep alive.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;A bid costs $0.006, and each run adds $0.005 when it starts. The HVAC call above returned 10 bids, so it cost $0.065. A daily monitor that finds 40 new bids a morning comes to about $0.25 a day, a little over $7 for a 30 day month. Bids that &lt;code&gt;onlyNew&lt;/code&gt; skips are never billed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Instant search for apps and agents
&lt;/h2&gt;

&lt;p&gt;A run takes from a few seconds to a few minutes, depending on the sources. When an app or a chat agent needs an answer inside one request, use the second actor, &lt;a href="https://apify.com/talcoe/government-bids-search-api" rel="noopener noreferrer"&gt;Government Bids Search API&lt;/a&gt;. It serves a nightly index of the same sources over plain GET requests:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -H &lt;span class="s2"&gt;"Authorization: Bearer $APIFY_TOKEN"&lt;/span&gt; \
  &lt;span class="s2"&gt;"https://talcoe--government-bids-search-api.apify.actor/search?q=hvac&amp;amp;state=TX&amp;amp;limit=3"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On November 27 the index held 17,460 open bids, and this query matched 19 of them. A bid returned this way costs $0.008. The index drops a bid once its due date has passed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use it from Claude or Cursor
&lt;/h2&gt;

&lt;p&gt;The actor also works as an MCP tool. To add it to Claude Code, run this command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http us-government-bids &lt;span class="s2"&gt;"https://mcp.apify.com/?tools=talcoe/us-government-bids-rfps"&lt;/span&gt; --header &lt;span class="s2"&gt;"Authorization: Bearer $APIFY_TOKEN"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then ask for something like "open janitorial bids in New Jersey due in the next two weeks" and the agent writes the input for you. The server is in the official MCP Registry as &lt;code&gt;io.github.musama000/us-government-bids&lt;/code&gt;, together with federal awards and SBIR awards.&lt;/p&gt;

&lt;h2&gt;
  
  
  When you want the bids without code
&lt;/h2&gt;

&lt;p&gt;I also run a daily email built on the same data, &lt;a href="https://talcoe.com/bids" rel="noopener noreferrer"&gt;Talcoe Bid Alerts&lt;/a&gt;. You pick trades and states, and the new bids arrive each morning. It costs $49 a month after a 14 day trial that needs no card. There is also a public page for each trade and state that updates every day, such as &lt;a href="https://talcoe.com/bids/hvac/texas" rel="noopener noreferrer"&gt;open HVAC bids in Texas&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I built the actors and the email service described here, and AI helped me write this post.&lt;/p&gt;

</description>
      <category>api</category>
      <category>python</category>
      <category>tutorial</category>
      <category>webscraping</category>
    </item>
    <item>
      <title>Fixing RequestBlocked in youtube-transcript-api on a cloud server</title>
      <dc:creator>Mohammed Usama</dc:creator>
      <pubDate>Fri, 27 Nov 2026 05:26:53 +0000</pubDate>
      <link>https://dev.to/mohammed_usama_d2c2854d70/fixing-requestblocked-in-youtube-transcript-api-on-a-cloud-server-1jlg</link>
      <guid>https://dev.to/mohammed_usama_d2c2854d70/fixing-requestblocked-in-youtube-transcript-api-on-a-cloud-server-1jlg</guid>
      <description>&lt;p&gt;A YouTube transcript script usually starts small. You install youtube-transcript-api, pass it a video id, and the transcript prints. Then you move the same code to a server so it can run every night, and the calls start failing with &lt;code&gt;RequestBlocked&lt;/code&gt; or &lt;code&gt;IpBlocked&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The library's README gives the reason: "YouTube has started blocking most IPs that are known to belong to cloud providers." It names AWS, Google Cloud and Azure, which covers a lot of the places a nightly job runs.&lt;/p&gt;

&lt;p&gt;You can keep the library and add a proxy, or you can hand the fetching to a hosted actor that returns JSON.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 1: keep the library and add a residential proxy
&lt;/h2&gt;

&lt;p&gt;The library has proxy support built in, and its README recommends rotating residential proxies over static ones. With a Webshare account it looks like this:&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;from&lt;/span&gt; &lt;span class="n"&gt;youtube_transcript_api&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;YouTubeTranscriptApi&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;youtube_transcript_api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;proxies&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;WebshareProxyConfig&lt;/span&gt;
&lt;span class="n"&gt;ytt_api&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;YouTubeTranscriptApi&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;proxy_config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;WebshareProxyConfig&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;proxy_username&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;proxy-username&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;proxy_password&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;proxy-password&amp;gt;"&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;transcript&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ytt_api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"jNQXAC9IVRw"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Other providers plug in through &lt;code&gt;GenericProxyConfig(http_url=..., https_url=...)&lt;/code&gt;. This fix makes sense if you already pay for proxies and you fetch one video at a time. You still write the code that turns a channel or a playlist into video ids, and the proxy plan is one more bill to watch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 2: call a hosted actor and get JSON back
&lt;/h2&gt;

&lt;p&gt;I build data tools on Apify under the name Talcoe, and one of them fetches YouTube transcripts. You give it video links, channels, @handles or playlists in one list. It returns one record per video with the transcript as plain text, timestamped segments, SRT or VTT. It runs on Apify's residential proxy by default, so there is no proxy account to manage.&lt;/p&gt;

&lt;p&gt;This is the request I sent while writing this post:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/talcoe~youtube-transcripts/run-sync-get-dataset-items"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer YOUR_APIFY_TOKEN"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"sources": ["@Fireship", "jNQXAC9IVRw"], "maxVideosPerSource": 2, "formats": ["text", "srt"]}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three records came back after 34 seconds. Two were the newest Fireship videos at the time, with auto generated captions of 1,205 and 939 words. The third was "Me at the zoo," the first video uploaded to YouTube, which starts like this in SRT:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1
00:00:01,200 --&amp;gt; 00:00:03,360
All right, so here we are, in front of the elephants
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each record also has the title, channel, publish date, duration, view count, caption language and an &lt;code&gt;autoGenerated&lt;/code&gt; flag.&lt;/p&gt;

&lt;p&gt;Here is the same call from Python, set up for a nightly job that only wants new videos:&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;requests&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/talcoe~youtube-transcripts/run-sync-get-dataset-items"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&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;"Bearer {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;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"sources"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"@Fireship"&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;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"publishedAfter"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-01"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"formats"&lt;/span&gt;&lt;span class="p"&gt;:&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;"segments"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"language"&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="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;,&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;video&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&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="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;video&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="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;video&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="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;video&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"segments"&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That run returned five November videos, each between 939 and 1,311 words long.&lt;/p&gt;

&lt;p&gt;Some details matter once this runs on a schedule:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A video with no captions costs nothing and goes to a &lt;code&gt;NO_TRANSCRIPT&lt;/code&gt; record. Turn &lt;code&gt;fallbackToAnyLanguage&lt;/code&gt; off and the same happens to a video that lacks your language, with the languages it does have listed.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;publishedAfter&lt;/code&gt; keeps only channel and playlist videos from that date on.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;maxResults&lt;/code&gt; stops the run at a set number of transcripts, which also caps the bill.&lt;/li&gt;
&lt;li&gt;When YouTube shows a bot check on a video, the actor does not try to get past it. That video goes to an &lt;code&gt;ERRORS&lt;/code&gt; record and costs nothing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The price is half a cent per transcript plus a half cent start fee per run, and higher Apify plans pay less per transcript.&lt;/p&gt;

&lt;h2&gt;
  
  
  From an AI agent
&lt;/h2&gt;

&lt;p&gt;The actor also works as an MCP tool. To add it to Claude Code, run this with your token in place of YOUR_APIFY_TOKEN.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http youtube-transcripts &lt;span class="s2"&gt;"https://mcp.apify.com/?tools=talcoe/youtube-transcripts"&lt;/span&gt; --header &lt;span class="s2"&gt;"Authorization: Bearer YOUR_APIFY_TOKEN"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then ask for something like "Get the transcripts of the 10 newest videos on @Fireship and list the products each one mentions." Cursor and VS Code accept the same URL and header.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which fix to use
&lt;/h2&gt;

&lt;p&gt;Keep the library and add the proxy if you fetch single videos and already have a proxy account. Use the hosted call if you want whole channels or playlists, subtitle files, or a nightly job with less code to maintain.&lt;/p&gt;

&lt;p&gt;The actor's page is &lt;a href="https://apify.com/talcoe/youtube-transcripts" rel="noopener noreferrer"&gt;apify.com/talcoe/youtube-transcripts&lt;/a&gt;. If you need a field it does not return, open an issue there and I will look at it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written with help from an AI assistant. The curl and Python examples above ran against the live actor before this post went up.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>youtube</category>
      <category>ai</category>
      <category>webscraping</category>
    </item>
    <item>
      <title>How SOAP, DAP and BIRP notes differ, and when each one fits a vet visit</title>
      <dc:creator>Mohammed Usama</dc:creator>
      <pubDate>Thu, 05 Nov 2026 17:00:02 +0000</pubDate>
      <link>https://dev.to/mohammed_usama_d2c2854d70/how-soap-dap-and-birp-notes-differ-and-when-each-one-fits-a-vet-visit-349i</link>
      <guid>https://dev.to/mohammed_usama_d2c2854d70/how-soap-dap-and-birp-notes-differ-and-when-each-one-fits-a-vet-visit-349i</guid>
      <description>&lt;p&gt;SOAP, DAP, and BIRP organize the same visit three different ways. They are not interchangeable.&lt;/p&gt;

&lt;p&gt;SOAP stands for Subjective, Objective, Assessment, Plan. Dr. Lawrence Weed built it for human medicine in the 1960s, and veterinary medicine adopted it as the standard note for an exam visit: what the owner reports, what you measure, your read on it, what happens next.&lt;/p&gt;

&lt;p&gt;DAP stands for Data, Assessment, Plan. It comes from counseling and behavioral health, where one Data section replaces SOAP's separate Subjective and Objective sections. That makes it faster to write. In our opinion it suits a short recheck or a progress note.&lt;/p&gt;

&lt;p&gt;BIRP stands for Behavior, Intervention, Response, Plan. It also comes from behavioral health. It tracks the presenting behavior, what was done about it, how the patient responded, and the plan. In our view, that fits a behavior consult better than an exam note does.&lt;/p&gt;

&lt;p&gt;None of the guides we checked point to a required format for any of these. Pick the format that fits the visit in front of you.&lt;/p&gt;

&lt;p&gt;We built our scribe to draft in all three, so changing the format is a setting and needs no rewrite.&lt;/p&gt;

&lt;p&gt;Which format does your practice default to for everything, even visits it does not quite fit?&lt;/p&gt;

&lt;p&gt;We make Perch, a dictation tool for veterinary clinics. It drafts the note while the vet talks, and when it cannot match a drug name to a known term it leaves the line for the vet instead of guessing. You can try it without an account at &lt;a href="https://perchscribe.com/demo" rel="noopener noreferrer"&gt;perchscribe.com/demo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Sources: SOAP and the problem oriented medical record (Lawrence Weed, 1960s); DAP and BIRP definitions from clinical documentation guides (ICANotes on DAP, SimplePractice on BIRP).&lt;/p&gt;

</description>
      <category>veterinary</category>
      <category>healthtech</category>
      <category>productivity</category>
      <category>ai</category>
    </item>
    <item>
      <title>Who is responsible for a veterinary note that AI drafted</title>
      <dc:creator>Mohammed Usama</dc:creator>
      <pubDate>Mon, 02 Nov 2026 17:01:26 +0000</pubDate>
      <link>https://dev.to/mohammed_usama_d2c2854d70/who-is-responsible-for-a-veterinary-note-that-ai-drafted-32e3</link>
      <guid>https://dev.to/mohammed_usama_d2c2854d70/who-is-responsible-for-a-veterinary-note-that-ai-drafted-32e3</guid>
      <description>&lt;p&gt;The AAVSB put it in writing in March 2025: when AI drafts the note, responsibility does not move to the software. It stays with the veterinarian who signs.&lt;/p&gt;

&lt;p&gt;Their whitepaper says "the responsibility for appropriate use of AI rests entirely with the Licensee." On records specifically: the veterinarian "remains solely responsible for finalizing the medical record," and must "thoroughly review all AI-generated records to ensure their accuracy," since AI "may fabricate inaccurate content."&lt;/p&gt;

&lt;p&gt;That is the case for reading before you sign, every time. Check each drug name against what was actually said, since a name that sounds close can still be the wrong drug. Check doses and routes against the dictation. Check that the vitals made it into the note, because they go missing when someone types them into the practice software instead of saying them. Check who said each thing, since a client's description is not a clinical finding. And take out anything that was never said in the exam before it reaches the chart.&lt;/p&gt;

&lt;p&gt;What does "read before you sign" actually look like at your clinic?&lt;/p&gt;

&lt;p&gt;We make Perch, a dictation tool for veterinary clinics. It drafts the note while the vet talks, and when it cannot match a drug name to a known term it leaves the line for the vet instead of guessing. You can try it without an account at &lt;a href="https://perchscribe.com/demo" rel="noopener noreferrer"&gt;perchscribe.com/demo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Source: AAVSB, "Regulatory Considerations of the Use of Artificial Intelligence in Veterinary Medicine," March 2025.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>veterinary</category>
      <category>healthtech</category>
      <category>writing</category>
    </item>
    <item>
      <title>Perch Essential costs $20 a month for the whole clinic</title>
      <dc:creator>Mohammed Usama</dc:creator>
      <pubDate>Thu, 29 Oct 2026 17:00:03 +0000</pubDate>
      <link>https://dev.to/mohammed_usama_d2c2854d70/perch-essential-costs-20-a-month-for-the-whole-clinic-27b5</link>
      <guid>https://dev.to/mohammed_usama_d2c2854d70/perch-essential-costs-20-a-month-for-the-whole-clinic-27b5</guid>
      <description>&lt;p&gt;A clinic with one, two or three vets should not have to price a scribe per doctor. Starting today, Perch has an Essential plan: $20 a month, one flat price for the whole clinic, for up to 3 vets.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you get
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Talk through the exam the way you already do. The words appear on screen while you are still speaking.&lt;/li&gt;
&lt;li&gt;The note drafts itself in SOAP, DAP or BIRP. Read it, change anything, and sign.&lt;/li&gt;
&lt;li&gt;Paste the finished note into your practice software. Perch runs in the browser on a phone or a desktop, with nothing to set up or install.&lt;/li&gt;
&lt;li&gt;If a drug name can't be matched to a known term, Perch leaves it out of the note instead of guessing. Perch leaves the line for you to fill in, since a blank gets checked and a guess gets signed.&lt;/li&gt;
&lt;li&gt;Your audio builds the transcript live and is gone afterward. It is not stored.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to start
&lt;/h2&gt;

&lt;p&gt;Every clinic gets 30 days of full access free, and you add a card only if you keep it. Sign up at &lt;a href="https://perchscribe.com" rel="noopener noreferrer"&gt;perchscribe.com&lt;/a&gt; and talk through a real exam on your next visit. After the 30 days, Essential is $20 a month for the clinic, and nothing is charged until you add a card.&lt;/p&gt;

&lt;p&gt;Clinics with more than 3 vets are on Standard: $149 a month covers 3 vets, and each vet after that is $49 a month. Every plan is on the &lt;a href="https://perchscribe.com/#pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://perch.talcoe.com/news/essential-plan" rel="noopener noreferrer"&gt;perch.talcoe.com/news/essential-plan&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>veterinary</category>
      <category>startup</category>
      <category>saas</category>
      <category>ai</category>
    </item>
    <item>
      <title>Perch publishes three open releases for checking drug names in dictation</title>
      <dc:creator>Mohammed Usama</dc:creator>
      <pubDate>Mon, 26 Oct 2026 17:00:02 +0000</pubDate>
      <link>https://dev.to/mohammed_usama_d2c2854d70/perch-publishes-three-open-releases-for-checking-drug-names-in-dictation-5ded</link>
      <guid>https://dev.to/mohammed_usama_d2c2854d70/perch-publishes-three-open-releases-for-checking-drug-names-in-dictation-5ded</guid>
      <description>&lt;p&gt;Today we are publishing three open releases: a tool that checks a drug list against the audio of a dictation, a table of how veterinary drug names are said and misheard, and six blind dictation corpora.&lt;/p&gt;

&lt;h2&gt;
  
  
  The phoneme lane
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://github.com/perchvet/perch-phoneme-lane" rel="noopener noreferrer"&gt;phoneme lane&lt;/a&gt; scores the audio, not the transcript. It runs a phoneme model over a dictation and scores every name on a formulary, a clinic's drug list, against the sounds it heard. It returns the best fits and the seconds of the clip where they sit. On clip r001 in blind6, read by the voice am_echo, the transcript spells famotidine "famitidine," maropitant "meripitin" and Entyce "Entice." The lane's four best fits are famotidine, morphine, Entyce and maropitant, and all four were said. In a Hindi sample sentence naming Heartgard and Bravecto, the transcript came out entirely in Devanagari, so a text matcher had no Latin letters to read. The lane ranked Heartgard first. It proposes names. It does not chart them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Vet drug pronunciations
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/perchvet/vet-drug-pronunciations" rel="noopener noreferrer"&gt;Vet drug pronunciations&lt;/a&gt; lists 265 drug and brand names used in veterinary practice, each with its pronunciation in IPA, the International Phonetic Alphabet, for American, British and South Asian English speakers. Sixty six of the names are on Perch's default list. For 59 of those the garble atlas lists the wrong words speech recognizers wrote when Kokoro voices said the name. Each is counted, and flagged if it is an ordinary English word. Atenolol, for example, came out as "8 nilal."&lt;/p&gt;

&lt;h2&gt;
  
  
  Blind dictation corpora
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/perchvet/perch-vetdictation" rel="noopener noreferrer"&gt;Perch blind dictation corpora&lt;/a&gt; are six sets of 70 rows, each a dictation or a trap, each written by an author who never saw Perch's matching code. In every set 45 are dictations and 25 are traps, sentences built to bait a system into offering a drug nobody said. Three Kokoro voices read each of the 420 rows, which makes 1,260 clips and about five hours of audio. The first set, blind1, holds the 70 clips of the &lt;a href="https://github.com/perchvet/perch-trapset" rel="noopener noreferrer"&gt;trap set&lt;/a&gt; and adds two more voices for each sentence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Perch publishes its tests
&lt;/h2&gt;

&lt;p&gt;A company's own results are a claim until someone else can rerun them. The &lt;a href="https://perch.talcoe.com/news/invented-drug-names-test" rel="noopener noreferrer"&gt;trap set post&lt;/a&gt; set the pattern: publish the clips and the scoring rule so anyone can check the work. These releases do the same with the sentences we score Perch on, the table our matcher reads when a name comes out garbled, and the lane we built for the names the matcher still missed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method notes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The phoneme model is wav2vec2 xlsr 53 espeak, with 388 phone symbols and 20 millisecond frames.&lt;/li&gt;
&lt;li&gt;Every transcript quoted is Whisper large v3. The atlas holds what Whisper large v3 and MedASR wrote when six Kokoro voices said each of the 66 names in three sentence frames.&lt;/li&gt;
&lt;li&gt;The pronunciations are espeak IPA for American and British English, plus three spoken forms per name from a language model, one each for American, British and South Asian English.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where to find them
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Phoneme lane, code under Apache 2.0: &lt;a href="https://github.com/perchvet/perch-phoneme-lane" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;. DOI pending.&lt;/li&gt;
&lt;li&gt;Vet drug pronunciations, data under CC BY 4.0: &lt;a href="https://github.com/perchvet/vet-drug-pronunciations" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; and &lt;a href="https://huggingface.co/datasets/Talcoe/vet-drug-pronunciations" rel="noopener noreferrer"&gt;Hugging Face&lt;/a&gt;. DOI pending.&lt;/li&gt;
&lt;li&gt;Blind dictation corpora, data under CC BY 4.0: &lt;a href="https://github.com/perchvet/perch-vetdictation" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; and &lt;a href="https://huggingface.co/datasets/Talcoe/perch-vetdictation" rel="noopener noreferrer"&gt;Hugging Face&lt;/a&gt;. DOI pending.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Kokoro v1.0, from hexgrad and under Apache 2.0, voiced the clips. Run your own system against these sets, and open an issue on any of the repositories with what it misses. Perch is at &lt;a href="https://perch.talcoe.com" rel="noopener noreferrer"&gt;perch.talcoe.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://perch.talcoe.com/news/three-open-releases" rel="noopener noreferrer"&gt;perch.talcoe.com/news/three-open-releases&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>dataset</category>
      <category>speechrecognition</category>
      <category>veterinary</category>
    </item>
    <item>
      <title>Relief vets use Perch free, for good</title>
      <dc:creator>Mohammed Usama</dc:creator>
      <pubDate>Sat, 24 Oct 2026 02:42:01 +0000</pubDate>
      <link>https://dev.to/mohammed_usama_d2c2854d70/relief-vets-use-perch-free-for-good-3npd</link>
      <guid>https://dev.to/mohammed_usama_d2c2854d70/relief-vets-use-perch-free-for-good-3npd</guid>
      <description>&lt;p&gt;Relief vets walk into a different clinic, and a different practice system, almost every week, and still owe the same finished chart by the end of the shift. Perch runs in the browser, so it works the same way in every one of those rooms.&lt;/p&gt;

&lt;p&gt;Starting today, relief veterinarians use Perch free, for good. There is no card, no clinic sponsor and no end date. If you work shifts at more than one clinic, through an agency, a marketplace or on your own, this is for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Start at &lt;a href="https://perch.talcoe.com/relief" rel="noopener noreferrer"&gt;perch.talcoe.com/relief&lt;/a&gt; and create your account. Perch asks you once to confirm that you work relief.&lt;/li&gt;
&lt;li&gt;Each clinic you work is its own workspace. Switch between them in Settings, and your records stay with the clinic you charted for.&lt;/li&gt;
&lt;li&gt;Perch drafts the note while you talk. Nothing enters the record until you review and sign it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is included
&lt;/h2&gt;

&lt;p&gt;The whole product, not a trimmed tier: dictation on every visit, the running note in SOAP, DAP or BIRP, note history, and client discharge emails.&lt;/p&gt;

&lt;h2&gt;
  
  
  The first cohort
&lt;/h2&gt;

&lt;p&gt;National Veterinary Technician Week runs October 18 to 24. If relief vets have signed notes with Perch by then, that week we will name the first relief cohort and say how many. Join before then to be counted in it: &lt;a href="https://perch.talcoe.com/relief" rel="noopener noreferrer"&gt;perch.talcoe.com/relief&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://perch.talcoe.com/news/relief-vets-free-forever" rel="noopener noreferrer"&gt;perch.talcoe.com/news/relief-vets-free-forever&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>veterinary</category>
      <category>startup</category>
      <category>ai</category>
      <category>healthtech</category>
    </item>
    <item>
      <title>Perch's Blind 70 Clip Drug Name Test</title>
      <dc:creator>Mohammed Usama</dc:creator>
      <pubDate>Tue, 20 Oct 2026 03:15:00 +0000</pubDate>
      <link>https://dev.to/mohammed_usama_d2c2854d70/perchs-blind-70-clip-drug-name-test-5dla</link>
      <guid>https://dev.to/mohammed_usama_d2c2854d70/perchs-blind-70-clip-drug-name-test-5dla</guid>
      <description>&lt;p&gt;&lt;em&gt;Perch ran a blind 70 clip test built to catch invented medications, against a commercial veterinary AI scribe and against itself, with every miss on both sides published in the open.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with AI assistance from our test records. Every result below is in the public ledger linked at the end.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The failure mode
&lt;/h2&gt;

&lt;p&gt;An AI scribe that turns a spoken exam into a written chart usually runs two steps in sequence. First a speech recognition layer turns audio into text. Second a language model layer reads that text and writes the structured note: the SOAP, the DAP, the medication list.&lt;/p&gt;

&lt;p&gt;The first step is weak on its own. Drug names are unusual words, said quickly, often as a brand name next to its own generic in the same breath. Raw speech recognition misses a meaningful share of them.&lt;/p&gt;

&lt;p&gt;The second step is where the real work happens, and where the real risk starts. A language model reading a rough transcript can recover a drug name the recognizer garbled, by matching it against context, such as the dose and the species. That is genuinely useful work. It is also the same mechanism that can produce a drug name nobody said. A model able to infer the right drug from a mangled word can just as easily infer a wrong one that merely sounds plausible, because the same inference step produces both outcomes.&lt;/p&gt;

&lt;p&gt;We built a test set to find out whether this happens: on our own scribe, Perch, and on a commercial veterinary AI scribe already in clinical use. We are publishing what we found on both sides, at the same weight.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the test set was built
&lt;/h2&gt;

&lt;p&gt;Perch built the set as 70 short clips: 45 ordinary dictations that mirror how a vet talks through a visit, and 25 traps built to bait a scribe into charting a drug that was never said. A trap might be an offhand phone note that happens to contain a word that sounds like a brand name, with no clinical content in it at all.&lt;/p&gt;

&lt;p&gt;The clips were written by someone who never saw the matching code on either side, so nothing in the corpus was tuned to pass. Each clip was rendered once, with a synthetic voice, so no clip has more than one reading.&lt;/p&gt;

&lt;p&gt;We ran both products against the same 70 clips. We ran the commercial scribe the way any customer would run it, and scored Perch on the same clips through its own production pipeline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scoring rules
&lt;/h2&gt;

&lt;p&gt;Both products are scored the same way. A drug actually said in a dictation counts as recalled if it appears correctly in the output text, or is charted in the note. A false offer is a drug name that ends up charted or offered in the note when the clinician never said it. There is no partial credit and no benefit of the doubt for either side.&lt;/p&gt;

&lt;p&gt;The 45 dictation clips carried 84 drug mentions between them. That is the base every clip level result in this piece is measured against.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened on the run
&lt;/h2&gt;

&lt;p&gt;Every example below comes from a clip read by a synthetic voice, not a real clinician, in a test we ran and scored ourselves. Real speech runs harder than a synthetic voice does. This is a reproducible shared test set, not an accuracy claim about either product.&lt;/p&gt;

&lt;p&gt;One dictation read: "Started on Baytril, enrofloxacin, 5 mg per kg IV once," a brand name followed by its own generic, said together the way vets often say it to keep a record unambiguous. The commercial scribe's transcript rendered this as "batril and roflexacin." Its note generation step then charted both as separate medications: Baytril, and Roflexacin. Roflexacin does not exist. The chart, as generated, doubled the antibiotic dose under a name that is not a real drug. Perch, scored on the same clip, charted enrofloxacin and missed the Baytril brand, in both of its configurations: a miss, but no second drug.&lt;/p&gt;

&lt;p&gt;A trap clip carried a different shape of risk. The dictation was an offhand phone note about "the next guard shift schedule change," nothing clinical. The same product's transcript wrote "the NexGard shift schedule change," and the brand name for a flea and tick product carried through into the note's narrative text, where no medication had been discussed at all.&lt;/p&gt;

&lt;p&gt;Perch's own record is not clean either, and it belongs at the same weight as the two failures above. On a separate trap clip from Perch's own testing, a cat is described obliquely as being on Bexacat. An earlier build of Perch charted Zycortal, a real but wrong drug, from the garbled audio. The build running now declines to chart anything on that same clip. And one configuration we evaluated while building the current matcher, and never shipped, charted ProHeart from a misheard "pretreated"; this test set caught it before it reached a clinic. We name our own build and the fix here, and leave the comparison at that.&lt;/p&gt;

&lt;p&gt;Credit belongs on the other side too. One dictation contained a badly garbled reading of atenolol, rendered by the recognition step as something close to "8 nilal." The commercial scribe's repair layer recovered the correct drug name from that garble. One of Perch's two configurations missed it on the same clip. That repair layer did real work across the run, recovering several other names a raw transcript alone would have lost.&lt;/p&gt;

&lt;p&gt;The same repair layer, while recovering names, also quietly dropped the brand half of more than one dictated brand and generic pair: Apoquel twice, plus Clavamox, Rimadyl and Cerenia each lost their brand name in the finished note, leaving only the generic behind. Nobody flagged the loss, since the note read as complete either way. Perch, scored on those same five pairs, charted both halves of each. Its one dropped brand in the run was Baytril, on the clip above.&lt;/p&gt;

&lt;p&gt;A few smaller errors from the same run are worth naming plainly. The commercial scribe's chart spelled a dictated Cosequin as "Kosquin," close enough to pass a quick read but wrong on the page. Entyce, an appetite stimulant, defeated every system in the test, Perch included, and the commercial scribe's note put the ordinary word "Entice" next to its medication list. On two other clips its note stated a diagnosis the clinician never dictated, and a surgery date nobody said, detail added on top of what was actually spoken.&lt;/p&gt;

&lt;p&gt;Across the 25 trap clips, Perch charted nothing that was not said. The commercial scribe charted no drug from the ordinary word bait either. Its two trap misses were NexGard in the narrative and an unstated generic name, phenylpropanolamine, added next to a correctly charted Proin.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Perch refuses instead of guessing
&lt;/h2&gt;

&lt;p&gt;Perch's rule for an unresolved drug name is to leave it out of the note rather than fill in a best guess. If the audio does not clearly match a known term, that line stays blank for the vet to fill in on review, rather than being written with a name that only sounds right.&lt;/p&gt;

&lt;p&gt;A blank line gets checked before a note is signed. A wrong but plausible drug name can read as complete and get missed entirely. That asymmetry is the reason for the design. Across both of Perch's configurations in this run, the count of invented drug names charted was zero. The count of real drug names it declined to guess, and left blank instead, is a cost of the same design, accepted on purpose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits
&lt;/h2&gt;

&lt;p&gt;Every clip in this set is synthetic speech, generated by text to speech voices, one voice per clip. This is our own test, run and scored by the team that built Perch, not an outside body. We expect real clinician speech, with background noise and cross talk, to run harder for any scribe, ours included.&lt;/p&gt;

&lt;p&gt;We ran the commercial scribe through its own documented upload flow, at its default settings, on a trial account, generating one note per case from its stock template, with no manual edits and no clinic drug list uploaded on either side. That is an out of box comparison, not a claim about what either product does once tuned for a specific clinic.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to run this yourself
&lt;/h2&gt;

&lt;p&gt;The clips, the written dictations, the scoring script, and the full ledger of what each product charted on every clip, including every miss on both sides, are published at &lt;a href="https://github.com/perchvet/perch-trapset" rel="noopener noreferrer"&gt;https://github.com/perchvet/perch-trapset&lt;/a&gt;. The rule is the one described above: a drug counts as recalled if it appears or is charted, a false offer is anything charted that nobody said. Any scribe, including a future build of Perch, can be scored against the same 70 clips the same way.&lt;/p&gt;




&lt;p&gt;Mohammed Usama is a cofounder of Talcoe LLC, which makes Perch, a veterinary AI scribe. Questions about the test set: &lt;a href="mailto:mo@talcoe.com"&gt;mo@talcoe.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>healthcare</category>
      <category>testing</category>
      <category>startup</category>
    </item>
  </channel>
</rss>
