<?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: Sid Mishra</title>
    <description>The latest articles on DEV Community by Sid Mishra (@sid_mishra).</description>
    <link>https://dev.to/sid_mishra</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%2F4154228%2F618374b2-57ca-4e4e-9bd4-c3ae889409a9.jpg</url>
      <title>DEV Community: Sid Mishra</title>
      <link>https://dev.to/sid_mishra</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sid_mishra"/>
    <language>en</language>
    <item>
      <title>Google's Custom Search API ends on 1 January. A drop-in cse.list replacement in Python and Node</title>
      <dc:creator>Sid Mishra</dc:creator>
      <pubDate>Fri, 04 Dec 2026 08:53:12 +0000</pubDate>
      <link>https://dev.to/sid_mishra/googles-custom-search-api-ends-on-1-january-a-drop-in-cselist-replacement-in-python-and-node-1pk0</link>
      <guid>https://dev.to/sid_mishra/googles-custom-search-api-ends-on-1-january-a-drop-in-cselist-replacement-in-python-and-node-1pk0</guid>
      <description>&lt;p&gt;Google's Custom Search JSON API stops on 1 January 2027, and it stopped taking new customers a while ago. I work on the search side of MeshArc, so I wrote the replacement I'd want if my own code still called &lt;code&gt;customsearch.googleapis.com&lt;/code&gt;: a function that takes &lt;code&gt;cse.list&lt;/code&gt;'s parameters and hands back Google's &lt;code&gt;items&lt;/code&gt;, so nothing upstream has to change. Below are the checklist, the code in Python, Node and cURL, and what a test run against it looked like, warts included.&lt;/p&gt;

&lt;h2&gt;
  
  
  What stops, and when
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Custom Search JSON API&lt;/th&gt;
&lt;th&gt;Value (Google's overview page, checked 25 November 2026)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free queries&lt;/td&gt;
&lt;td&gt;100 a day&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Paid queries&lt;/td&gt;
&lt;td&gt;$5 per 1,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Daily ceiling&lt;/td&gt;
&lt;td&gt;10,000 queries&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Results a query can reach&lt;/td&gt;
&lt;td&gt;100 (&lt;code&gt;num&lt;/code&gt; is 1 to 10, and &lt;code&gt;start + num&lt;/code&gt; can't pass 100)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New sign-ups&lt;/td&gt;
&lt;td&gt;Closed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;After 1 January 2027&lt;/td&gt;
&lt;td&gt;Discontinued&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Google hasn't documented what the API will return after the cut-off. So treat any non-200 answer from &lt;code&gt;customsearch.googleapis.com&lt;/code&gt; as a failure and alert on it, starting now.&lt;/p&gt;

&lt;p&gt;Most calls do one of two jobs, and they need different replacements:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Whole-web search.&lt;/strong&gt; An app or an agent asks what the web says about something and reads the ranked links. You need another search API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Searching your own site.&lt;/strong&gt; An engine restricted to your help centre or docs. You don't need a web search API for this at all. You need an index of your own pages.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Google's own way out, from its Programmable Search Engine blog (20 January 2026): the free Search Element widget with "Sites to search" for a search box on your own site, Vertex AI Search for up to 50 domains inside an app, and a full web search product you have to contact Google about.&lt;/p&gt;

&lt;h2&gt;
  
  
  The checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find every call.&lt;/strong&gt; Search code and config for &lt;code&gt;customsearch.googleapis.com&lt;/code&gt;, &lt;code&gt;googleapis.com/customsearch&lt;/code&gt;, &lt;code&gt;cse().list&lt;/code&gt; and the environment variables that hold the &lt;code&gt;cx&lt;/code&gt; engine ID. Cron jobs and no-code automations count too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sort each call into whole-web or own-site.&lt;/strong&gt; The engine's settings in the Programmable Search control panel show which sites it covers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Map the parameters&lt;/strong&gt; (the function below does it) and write down any you use that have no equivalent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run old and new side by side&lt;/strong&gt; on 20 queries your users really send, while the Google key still works, and compare the top ten.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decide what an empty answer does&lt;/strong&gt; before it happens in production.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cut over, then delete the Google key&lt;/strong&gt; before the end of December.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 4 is the one people skip, and it's the only one with a deadline baked in: the comparison stops being possible the day Google's key stops answering.&lt;/p&gt;

&lt;h2&gt;
  
  
  A drop-in replacement for &lt;code&gt;cse.list&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;This takes the parameters you pass to Google and returns the parts of Google's response most code reads (&lt;code&gt;items[].title&lt;/code&gt;, &lt;code&gt;link&lt;/code&gt;, &lt;code&gt;displayLink&lt;/code&gt;, &lt;code&gt;snippet&lt;/code&gt;), so the code that calls it doesn't change. It doesn't fake the fields it can't fill: there's no &lt;code&gt;searchInformation.totalResults&lt;/code&gt; and no &lt;code&gt;pagemap&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;pip install mesharc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# MeshArc as a stand-in for Google's cse.list. Needs MESHARC_API_KEY in the environment.&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;parse&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;urlparse&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;mesharc&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;

&lt;span class="n"&gt;arc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_freshness&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;date_restrict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Google's d7, w2, m3, y1 -&amp;gt; the smallest MeshArc window that still covers it."""&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;date_restrict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
    &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;date_restrict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"d"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&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="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"m"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;31&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"y"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;366&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;date_restrict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&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;window&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"day"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&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;"week"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&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;"month"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;31&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;"year"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;366&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;if&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;window&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;  &lt;span class="c1"&gt;# longer than a year: no filter&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;cse_list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;siteSearch&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;siteSearchFilter&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"i"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
             &lt;span class="n"&gt;gl&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hl&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dateRestrict&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;ignored&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;site&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;siteSearch&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;siteSearch&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
    &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;web_search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&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="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;       &lt;span class="c1"&gt;# start=11 is page 2&lt;/span&gt;
        &lt;span class="n"&gt;country&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;gl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;hl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;freshness&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nf"&gt;_freshness&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dateRestrict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;include_domains&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;site&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;siteSearchFilter&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"i"&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;exclude_domains&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;site&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;siteSearchFilter&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"e"&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;# "blocked" with outcome "no_results": no results, nothing charged, so return no items like Google.&lt;/span&gt;
    &lt;span class="c1"&gt;# "blocked" with any other outcome: the search did not run (out of credits?), so raise, never "no results".&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;res&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;"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;"blocked"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;res&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;"outcome"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s2"&gt;"no_results"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;RuntimeError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"MeshArc search did not run (out of credits?)"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&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;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;res&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;"data"&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="c1"&gt;# MeshArc pages are fixed blocks of 10, like Google's start=1, 11, 21&lt;/span&gt;
    &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&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="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"customsearch#search"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"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="s2"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"customsearch#result"&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="n"&gt;h&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="s2"&gt;"link"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;h&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="s2"&gt;"displayLink"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;urlparse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&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="n"&gt;netloc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="s2"&gt;"snippet"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;h&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;"snippet"&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="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;hits&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;Three behaviours to know. &lt;code&gt;start&lt;/code&gt; doesn't have to be 1, 11 or 21: the function reads that block of ten and starts from &lt;code&gt;start&lt;/code&gt;, but it doesn't cross into the next block, so &lt;code&gt;start=5&lt;/code&gt; returns results 5 to 10, not 5 to 14. Crossing over would mean a second search, so it stops at the block's end. &lt;code&gt;dateRestrict&lt;/code&gt; rounds up to the next window MeshArc has, so &lt;code&gt;d3&lt;/code&gt; becomes the last week and you may see a few older results, never fewer. And &lt;code&gt;cx&lt;/code&gt;, &lt;code&gt;searchType&lt;/code&gt; and the other Google-only parameters land in &lt;code&gt;ignored&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The same function in Node (the &lt;code&gt;mesharc&lt;/code&gt; package on npm, ESM):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// npm install mesharc   (MESHARC_API_KEY in the environment)&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'mesharc'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&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="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;freshness&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dateRestrict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;dateRestrict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;per&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&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="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;31&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;366&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;dateRestrict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;parseInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dateRestrict&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&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="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;per&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'day'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&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="s1"&gt;'week'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&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="s1"&gt;'month'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;31&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="s1"&gt;'year'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;366&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="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;cseList&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;siteSearch&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;siteSearchFilter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'i'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;gl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dateRestrict&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;opts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;limit&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="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;opts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;country&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;gl&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;opts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;hl&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;freshness&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dateRestrict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;opts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;freshness&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;siteSearch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;opts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;siteSearchFilter&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'e'&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s1"&gt;'excludeDomains'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'includeDomains'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;siteSearch&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;webSearch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;opts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="c1"&gt;// 'blocked' with outcome 'no_results': no results, nothing charged, so return no items like Google.&lt;/span&gt;
  &lt;span class="c1"&gt;// 'blocked' with any other outcome: the search did not run (out of credits?), so throw, never "no results".&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'blocked'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;outcome&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="s1"&gt;'no_results'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'MeshArc search did not run (out of credits?)'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&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="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&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="p"&gt;}&lt;/span&gt;
  &lt;span class="c1"&gt;// MeshArc pages are fixed blocks of 10, like Google's start=1, 11, 21&lt;/span&gt;
  &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&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="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'customsearch#search'&lt;/span&gt;&lt;span class="p"&gt;,&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;hits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;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;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'customsearch#result'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;link&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;displayLink&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&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;h&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hostname&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;snippet&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;snippet&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="s1"&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="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="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And with cURL, for a shell script or a no-code tool. The request waits up to &lt;code&gt;timeout&lt;/code&gt; seconds (120 at most). A slower search comes back with its &lt;code&gt;id&lt;/code&gt; and a &lt;code&gt;running&lt;/code&gt; status, and you read it again at &lt;code&gt;GET /search/{id}&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;curl -s https://api.mesharc.dev/api/v1/search \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $MESHARC_API_KEY"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"query": "http.client HTTPSConnection timeout", "limit": 10, "page": 1,
       "includeDomains": ["docs.python.org"], "timeout": 60}'&lt;/span&gt; \
&lt;span class="o"&gt;|&lt;/span&gt; jq &lt;span class="s1"&gt;'{items: [.data[]? | {title, link: .url, snippet}]}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What a test run showed
&lt;/h2&gt;

&lt;p&gt;On 19 November 2026 we ran five searches through MeshArc's hosted MCP server, the same search the SDK calls. Four came back with 10 results each, one of them a repeat answered from cache. The fifth, a vague query restricted to &lt;code&gt;docs.python.org&lt;/code&gt;, came back empty. Three things from that run are worth checking on your own queries:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Google answered none of the five.&lt;/strong&gt; Each time it asked for JavaScript or refused, and DuckDuckGo's results were used. Since 24 November the response no longer says which engine answered, so if "Google's results" matters to your product, judge it on your 20 test queries.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A narrow domain filter on a vague query can return nothing.&lt;/strong&gt; That's why both functions treat a &lt;code&gt;no_results&lt;/code&gt; block as an empty answer and raise on anything else. An out-of-credits error that silently looks like "no results" is the kind of bug you find in March.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The two site-restricted searches took over 40 seconds&lt;/strong&gt; and came back as jobs to poll. The SDKs poll for you, but if a person is waiting on the answer, a dedicated SERP API is the better fit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Custom Search also still beats this switch in two places: 100 free queries a day, and image search (&lt;code&gt;searchType=image&lt;/code&gt;). MeshArc returns web and news results only.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you were searching your own site
&lt;/h2&gt;

&lt;p&gt;An engine pointed at your own domain is a site search, and a web search API with a domain filter is a poor stand-in for it, as the empty result above shows. If people search from a box on your site, Google's free Search Element with "Sites to search" may be all you need. If an app or an agent searches your pages through an API, index the pages yourself:&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="n"&gt;project&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://help.example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Help centre"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"daily"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;runs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wait&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="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'"refund policy"'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# pages that say it, from the last run&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every run also tells you which pages were added, changed or removed, which a search index on its own never did.&lt;/p&gt;

&lt;p&gt;If you want to see what comes back for your own queries before touching code, try a search in the &lt;a href="https://mesharc.dev/playground?mode=search&amp;amp;utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w49-destinations&amp;amp;utm_content=replace-google-custom-search-json-api" rel="noopener noreferrer"&gt;playground&lt;/a&gt; (it asks you to sign in). The &lt;a href="https://mesharc.dev/web-search-api?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w49-destinations&amp;amp;utm_content=replace-google-custom-search-json-api" rel="noopener noreferrer"&gt;web search API page&lt;/a&gt; lists what a search returns.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your turn
&lt;/h2&gt;

&lt;p&gt;If you're still on Custom Search: what are you moving to, and which parameter turned out hardest to map? My guess is &lt;code&gt;dateRestrict&lt;/code&gt;: "the last 3 days" has no exact match in the function above, so it rounds up to a week.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://mesharc.dev/blog/replace-google-custom-search-json-api?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w49-destinations&amp;amp;utm_content=replace-google-custom-search-json-api" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>api</category>
      <category>google</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Generating an llms.txt takes seconds. Here are 4 ways it comes out wrong</title>
      <dc:creator>Sid Mishra</dc:creator>
      <pubDate>Thu, 03 Dec 2026 12:53:40 +0000</pubDate>
      <link>https://dev.to/sid_mishra/generating-an-llmstxt-takes-seconds-here-are-4-ways-it-comes-out-wrong-25n3</link>
      <guid>https://dev.to/sid_mishra/generating-an-llmstxt-takes-seconds-here-are-4-ways-it-comes-out-wrong-25n3</guid>
      <description>&lt;p&gt;When we crawled HTTPX's docs to test llms.txt generation, the QuickStart page and the Timeouts page both described themselves the same way: "A next-generation HTTP client for Python." So did every other page: the site uses one meta description for all of them. Feed that into a generator and every link in your llms.txt gets the same line under it, which tells an agent nothing about any of them.&lt;/p&gt;

&lt;p&gt;Making an llms.txt is quick. Checking it is where the work is. Below are the two ways I'd generate one, what each produces, and a small script that catches the problems you can catch automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 30-second version of the format
&lt;/h2&gt;

&lt;p&gt;From the proposal at &lt;a href="https://llmstxt.org/" rel="noopener noreferrer"&gt;llmstxt.org&lt;/a&gt;: a Markdown file at your site's root with an H1 (the only required part), an optional blockquote summary, then H2 sections of links, each &lt;code&gt;[name](url)&lt;/code&gt; with an optional &lt;code&gt;: note&lt;/code&gt;. &lt;code&gt;llms-full.txt&lt;/code&gt; isn't in the proposal. It's a convention docs platforms publish beside it: every page's content in one file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route 1: from the sitemap (free, seconds)
&lt;/h2&gt;

&lt;p&gt;We built a free &lt;a href="https://mesharc.dev/tools/llms-txt-generator?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w49-destinations&amp;amp;utm_content=generate-llms-txt-for-any-site" rel="noopener noreferrer"&gt;llms.txt generator&lt;/a&gt; into MeshArc. Paste a domain and it reads robots.txt, follows the sitemaps it names and groups the URLs into sections by the first part of each path.&lt;/p&gt;

&lt;p&gt;What you get, and what you don't:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The H1 is the site's host.&lt;/li&gt;
&lt;li&gt;Each link shows the URL's path. It doesn't read the pages, so there are no titles and no descriptions.&lt;/li&gt;
&lt;li&gt;It needs a sitemap, and returns at most 400 lines and 60 URLs per section.&lt;/li&gt;
&lt;li&gt;No account. It allows 10 requests an hour and 40 a day per IP.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Treat it as a first draft: the structure is there, the notes under each link are yours to write.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route 2: from a crawl (with the page descriptions)
&lt;/h2&gt;

&lt;p&gt;A crawl reads every page, so the export can write each link from the page's own title and description. With the Python SDK:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install mesharc
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;MESHARC_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;mesharc_...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;mesharc&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;

&lt;span class="n"&gt;arc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# reads MESHARC_API_KEY&lt;/span&gt;

&lt;span class="n"&gt;project&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://www.python-httpx.org/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"HTTPX"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                   &lt;span class="c1"&gt;# this becomes the file's H1&lt;/span&gt;
    &lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"weekly"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;              &lt;span class="c1"&gt;# re-crawled every week&lt;/span&gt;
    &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"max_pages"&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="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;runs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wait&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="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;export&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"llms.txt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dataset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"llms"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"txt"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;export&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"llms-full.txt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dataset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"llms-full"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"txt"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The H1 is the &lt;strong&gt;project's&lt;/strong&gt; name, not the host, so name the project after the site. The file comes out in this shape:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# &amp;lt;project name&amp;gt;
&lt;/span&gt;
&lt;span class="ge"&gt;&amp;gt; &amp;lt;the home page's meta description&amp;gt;
&lt;/span&gt;
&amp;lt;host&amp;gt;: N pages read by MeshArc on &amp;lt;date&amp;gt;; the pages a model can use are listed below.

&lt;span class="gu"&gt;## Pages
&lt;/span&gt;
&lt;span class="k"&gt;- &lt;/span&gt;[title](url): description

&lt;span class="gu"&gt;## /advanced
&lt;/span&gt;
&lt;span class="k"&gt;- &lt;/span&gt;[title](url): description
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every top-level page goes together under &lt;code&gt;## Pages&lt;/code&gt;, which comes first. Pages in a sub-folder go under a section named after the folder. &lt;code&gt;llms-full.txt&lt;/code&gt; lands beside it with every usable page's Markdown, each under its title and a &lt;code&gt;Source:&lt;/code&gt; line.&lt;/p&gt;

&lt;p&gt;Without the SDK it's a GET to &lt;code&gt;https://api.mesharc.dev/api/v1/projects/{id}/export?dataset=llms&amp;amp;format=txt&lt;/code&gt; with your key as a Bearer token. Exports are free (you pay 1 credit for each plain page the crawl reads), and we ran both on a small project on 27 November 2026. With a weekly schedule, your deploy job can pull the two exports after each run and publish them.&lt;/p&gt;

&lt;h2&gt;
  
  
  4 ways a generated llms.txt goes wrong
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. The same description under every link.&lt;/strong&gt; The HTTPX problem from the top. It's common in docs themes. The real fix is in your pages: give each one its own meta description, and every other tool that reads them gets better too. Otherwise, edit the lines by hand after generating.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Sections that aren't sections.&lt;/strong&gt; HTTPX's sitemap has one folder with depth, &lt;code&gt;/advanced/&lt;/code&gt; (10 pages). The other 13 URLs each sit in a top-level segment of their own. The free generator makes one section per first path segment, so you get a pile of one-link sections and one real one. The crawl export goes the other way and puts all 13 under a single catch-all &lt;code&gt;## Pages&lt;/code&gt;, which isn't much more useful to a reader. Neither has a setting for this, so merge them by hand into what a reader would expect, such as Guides, API and Advanced.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Pages blocked on that run, missing from the file.&lt;/strong&gt; The crawl export lists the run's usable pages only. A page the site refused that day is reported as blocked, not as removed, but it won't be in that run's file. Before you publish a rebuilt llms.txt, look at the run's counts. If pages were refused, keep last week's file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. An llms-full.txt too big to use.&lt;/strong&gt; Mintlify notes that its file may be truncated once it passes 100 KB. On a big site, one file per section works better.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick checker
&lt;/h2&gt;

&lt;p&gt;Problems 1, 4 and the one-link kind of 2 are visible in the files themselves, so I'd run something like this before publishing. Problem 3 isn't: a missing page leaves no trace in the file, so that one needs the run's counts.&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;re&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;collections&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Counter&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;check&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;full_path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_text&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="n"&gt;sections&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;descs&lt;/span&gt; &lt;span class="o"&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="kc"&gt;None&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;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;splitlines&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;if&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&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="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;line&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="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="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;sections&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
        &lt;span class="n"&gt;m&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="k"&gt;match&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;"\s*-\s*\[([^\]]*)\]\(([^)]+)\)(?::\s*(.+))?"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;sections&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;group&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="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;descs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;group&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="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="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# 1. the same description under many links&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;desc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nc"&gt;Counter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;descs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;most_common&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="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&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;"same description under {n} links: {desc[:60]!r}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# 2. sections with a single link&lt;/span&gt;
    &lt;span class="n"&gt;lonely&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;sections&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;lonely&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(lonely)} one-link sections: {', '.join(lonely[:5])}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# 4. llms-full.txt size&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;full_path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;kb&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;full_path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stat&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;st_size&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1024&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;kb&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;100&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;"llms-full.txt is {kb:.0f} KB; consider one file per section"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;check&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&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="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python check_llms.py llms.txt llms-full.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On a test file with three identical descriptions, two one-link sections and a 198 KB llms-full.txt, it prints:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;same description under 3 links: 'A next-generation HTTP client.'
2 one-link sections: /changelog, /api
llms-full.txt is 198 KB; consider one file per section
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  When not to generate it at all
&lt;/h2&gt;

&lt;p&gt;If fewer than about 30 pages matter, write it by hand. You'll write better notes than any generator, ours included. And if your docs already live on a platform that publishes one for you, use that.&lt;/p&gt;

&lt;p&gt;Have you shipped an llms.txt yet, and has anything you know of actually read it?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://mesharc.dev/blog/generate-llms-txt-for-any-site?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w49-destinations&amp;amp;utm_content=generate-llms-txt-for-any-site" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>documentation</category>
      <category>python</category>
      <category>webdev</category>
    </item>
    <item>
      <title>A website change monitor that doesn't cry wolf: diff, Slack and Postgres in Python</title>
      <dc:creator>Sid Mishra</dc:creator>
      <pubDate>Tue, 01 Dec 2026 10:55:37 +0000</pubDate>
      <link>https://dev.to/sid_mishra/a-website-change-monitor-that-doesnt-cry-wolf-diff-slack-and-postgres-in-python-2k2f</link>
      <guid>https://dev.to/sid_mishra/a-website-change-monitor-that-doesnt-cry-wolf-diff-slack-and-postgres-in-python-2k2f</guid>
      <description>&lt;p&gt;I work on the change detection in MeshArc, so I spend a lot of time on one question: why do website change monitors end up muted? Usually it's noise. A banner rotated, a "last updated" stamp ticked over, or a page timed out and got reported as deleted. What I actually want is narrower: watch a whole section of a site, hear about real edits only, and keep every version of every page in a table I can query next quarter.&lt;/p&gt;

&lt;p&gt;This is that pipeline in three stages (the diff, the alert, the table), plus the cases where you shouldn't build it this way at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a change monitor has to get right
&lt;/h2&gt;

&lt;p&gt;Four things separate a monitor you trust from one you mute:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Coverage.&lt;/strong&gt; A regulator's guidance library or a competitor's docs is hundreds of pages, and new pages matter as much as edited ones. Ten hand-picked URLs will miss the page published on Tuesday.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Noise.&lt;/strong&gt; Consent banners, rotating widgets and timestamps change on every load. If they reach the diff, every page is "modified" every day.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Refusal is not removal.&lt;/strong&gt; A page that came back blocked, timed out or showed a captcha this run hasn't been deleted. A monitor that can't tell the difference will one day report half a site as gone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History.&lt;/strong&gt; An alert tells you something changed today. A table tells you what the page said in March.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Keep these four in mind even if you never touch the code below. They're the checklist for any tool you pick.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stage 1: the diff
&lt;/h2&gt;

&lt;p&gt;In MeshArc a watched site is a &lt;em&gt;project&lt;/em&gt;: a seed URL, a scope and a schedule. The first run sets the baseline. Every later run produces a change record that compares each page with its previous version.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install mesharc
&lt;span class="c"&gt;# or: npm install mesharc&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;mesharc&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;

&lt;span class="n"&gt;arc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# reads MESHARC_API_KEY&lt;/span&gt;

&lt;span class="n"&gt;project&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://www.example.gov/guidance"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Regulator guidance"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"daily"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                       &lt;span class="c1"&gt;# manual | hourly | daily | weekly&lt;/span&gt;
    &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"max_pages"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"include_paths"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/guidance/*"&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="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;runs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wait&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="c1"&gt;# run 1: the baseline&lt;/span&gt;

&lt;span class="c1"&gt;# ...the next scheduled run (or another runs.start) produces the change record&lt;/span&gt;
&lt;span class="n"&gt;record&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;changes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&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;record&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"change"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"counts"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# {'added': …, 'removed': …, 'modified': …, 'withheld': …}&lt;/span&gt;

&lt;span class="n"&gt;diff&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;page_diff&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&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.example.gov/guidance/fees"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each page in the record is classed as added, removed, modified, same, withheld, unverified or skipped. Three behaviours do most of the work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Noise is stripped before comparison.&lt;/strong&gt; Consent banners, rotating widgets and "last updated" stamps come out first, so they never reach the diff.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Withheld is not removed.&lt;/strong&gt; A page the site refused this run is &lt;em&gt;withheld&lt;/em&gt;, never &lt;em&gt;removed&lt;/em&gt;. If a run reaches under 90% of the site, removals are held back altogether and the record says why, so an interrupted crawl isn't read as a mass deletion.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fields, not just text.&lt;/strong&gt; Next to the word-level diff you get field-level changes to titles, dates, canonicals and prices. A field that suddenly goes empty on every page is raised as a broken selector, not reported as a thousand edits.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The third one is the one I'd steal for any homegrown monitor. If the same field disappears everywhere at once, the site didn't change. Your parser did.&lt;/p&gt;

&lt;p&gt;Coverage comes from the sitemap. MeshArc walks robots.txt, the well-known paths and sitemap indexes, so a page that shows up in the sitemap is flagged as added on the run after it's published. On gov.uk one discovery mapped 508,290 URLs, which is a decent upper bound on "too many pages to watch by hand".&lt;/p&gt;

&lt;p&gt;A quick word on cost, because it shapes the design: the change records, diffs, alerts and webhooks cost nothing. You pay for the page reads (1 credit for a plain page, 4 when it needs a real browser). Refused pages and 404s cost 0. Turn on &lt;code&gt;sitemap_incremental&lt;/code&gt; and a page the sitemap says hasn't changed is carried over from the last run without a fetch, so a mostly static section gets cheap to watch daily.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stage 2: the alert
&lt;/h2&gt;

&lt;p&gt;There are two ways to hear about a change, and most teams end up wanting both.&lt;/p&gt;

&lt;h3&gt;
  
  
  Slack, Teams or Discord: one URL
&lt;/h3&gt;

&lt;p&gt;Set &lt;code&gt;chat_url&lt;/code&gt; in the project's config to an incoming-webhook URL. Slack, Discord, Microsoft Teams (Workflows), Mattermost and Google Chat are supported, each in its own message format. Slack gets Block Kit.&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="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"chat_url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://hooks.slack.com/services/T000/B000/XXXX"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"notify_min_words"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;# default 5; edits smaller than this stay quiet&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;&lt;code&gt;notify_min_words&lt;/code&gt; is what keeps the channel readable. A modified page whose edit is under that many changed words stays out of the &lt;code&gt;page.changed&lt;/code&gt; alerts, so a typo fix lives in the change record and not in Slack. The default is 5; I'd start higher on a busy site and lower it once you trust the noise filter.&lt;/p&gt;

&lt;p&gt;Chat messages are unsigned (that's how incoming webhooks work), and the API hands the URL back masked as &lt;code&gt;https://hooks.slack.com/services/••••&lt;/code&gt;, so it doesn't leak through a config dump.&lt;/p&gt;

&lt;h3&gt;
  
  
  A signed webhook, for code
&lt;/h3&gt;

&lt;p&gt;For anything automated, set &lt;code&gt;webhook_url&lt;/code&gt; and &lt;code&gt;webhook_events&lt;/code&gt; on the project. The two events worth subscribing to are &lt;code&gt;run.finished&lt;/code&gt; (status, pages, counts, coverage, stop reason) and &lt;code&gt;page.changed&lt;/code&gt; (each added, modified or removed page, with words added and removed). There's also &lt;code&gt;page.blocked&lt;/code&gt;, &lt;code&gt;site.failing&lt;/code&gt; / &lt;code&gt;site.recovered&lt;/code&gt; and &lt;code&gt;sitemap.added&lt;/code&gt; / &lt;code&gt;sitemap.removed&lt;/code&gt; if you want to know when a site starts refusing you or restructures.&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="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"webhook_url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://hooks.yourapp.com/mesharc"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"webhook_events"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"run.finished"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"page.changed"&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every delivery is a &lt;code&gt;POST&lt;/code&gt; with a JSON body &lt;code&gt;{id, event, createdAt, data}&lt;/code&gt; and a header &lt;code&gt;X-MeshArc-Signature: sha256=&amp;lt;HMAC-SHA256 of the raw body&amp;gt;&lt;/code&gt;. Verify against the raw bytes before you parse anything, and answer with a 2xx within 10 seconds:&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;hashlib&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hmac&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;BaseHTTPRequestHandler&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;HTTPServer&lt;/span&gt;

&lt;span class="no"&gt;SECRET&lt;/span&gt; &lt;span class="o"&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;"MESHARC_WEBHOOK_SECRET"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Hook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;BaseHTTPRequestHandler&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;do_POST&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rfile&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Content-Length"&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;expected&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"sha256="&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;hmac&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;SECRET&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hashlib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hexdigest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;hmac&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compare_digest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;headers&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;"X-MeshArc-Signature"&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="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send_response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;401&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;end_headers&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;return&lt;/span&gt;

        &lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send_response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;204&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;end_headers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# acknowledge first&lt;/span&gt;
        &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"event"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"page.changed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="nf"&gt;queue_for_review&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;msg&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="p"&gt;)&lt;/span&gt;             &lt;span class="c1"&gt;# your code, off the request path&lt;/span&gt;

&lt;span class="nc"&gt;HTTPServer&lt;/span&gt;&lt;span class="p"&gt;(&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="mi"&gt;8080&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Hook&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;serve_forever&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;Two habits in there are worth copying into any webhook receiver. &lt;code&gt;hmac.compare_digest&lt;/code&gt; instead of &lt;code&gt;==&lt;/code&gt;, so the check doesn't leak timing. And acknowledge first, work afterwards: a slow handler turns into a failed delivery. Failed deliveries are retried (and retries cost nothing), so a short deploy on your side shouldn't lose a change, but don't lean on that for long outages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stage 3: the table
&lt;/h2&gt;

&lt;p&gt;Alerts are for today. For "what did this page say before the 14 March update", you want every version in a database. MeshArc writes to warehouses, databases, vector stores, object stores and streams on every plan, Postgres among them, with no glue code.&lt;/p&gt;

&lt;p&gt;Add a Postgres connection once (its secret is the &lt;code&gt;dsn&lt;/code&gt;), then a destination on the project. These are the settings for a change log, from the &lt;a href="https://mesharc.dev/docs/connectors-destinations?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w49-destinations&amp;amp;utm_content=website-change-monitoring-api" rel="noopener noreferrer"&gt;connectors and destinations docs&lt;/a&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;Value for a change log&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;target&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;site_changes&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Created if missing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;mode&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;upsert&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ON CONFLICT&lt;/code&gt; on the key&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;key&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;url+content_hash&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;One row per page &lt;em&gt;version&lt;/em&gt;; &lt;code&gt;url&lt;/code&gt; alone keeps only the latest&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;incremental&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Sends only added, modified and removed pages, field changes and the baseline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;schedule&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;after_run&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Syncs when each run finishes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code&gt;key&lt;/code&gt; row is the whole trick. Key on &lt;code&gt;url&lt;/code&gt; and you have a mirror of the site. Key on &lt;code&gt;url+content_hash&lt;/code&gt; and you have its history.&lt;/p&gt;

&lt;p&gt;The default columns already carry the change: &lt;code&gt;change_class&lt;/code&gt;, &lt;code&gt;added_words&lt;/code&gt;, &lt;code&gt;removed_words&lt;/code&gt; and &lt;code&gt;changed_fields&lt;/code&gt;, next to &lt;code&gt;url&lt;/code&gt;, &lt;code&gt;crawled_at&lt;/code&gt;, &lt;code&gt;content_hash&lt;/code&gt;, &lt;code&gt;markdown&lt;/code&gt;, &lt;code&gt;title&lt;/code&gt; and the rest. If you only care about part of a site, a &lt;code&gt;shape&lt;/code&gt; filters rows (say, &lt;code&gt;path&lt;/code&gt; matching &lt;code&gt;/guidance/fees/*&lt;/code&gt;) and maps fields into typed columns. &lt;code&gt;POST /destinations/preview&lt;/code&gt; shows you the shaped rows from the last run before you save anything:&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 https://api.mesharc.dev/api/v1/destinations/preview \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $MESHARC_API_KEY"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"project_id": "&amp;lt;id&amp;gt;", "columns": ["url","crawled_at","change_class","added_words","changed_fields"], "shape": {}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once rows are landing, the questions are plain SQL:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- What changed in the last 30 days, biggest edits first&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;change_class&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;added_words&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;removed_words&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;changed_fields&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;crawled_at&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;site_changes&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;change_class&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'added'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'modified'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'removed'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;crawled_at&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="kt"&gt;interval&lt;/span&gt; &lt;span class="s1"&gt;'30 days'&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;added_words&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;removed_words&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- Every version of one page&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;crawled_at&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;content_hash&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;left&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;markdown&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;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;site_changes&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'https://www.example.gov/guidance/fees'&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;crawled_at&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One limit to know: a single sync writes at most 20,000 rows. A monitor sending only changed pages rarely gets near it. For a full re-sync of a big site, set &lt;code&gt;incremental: false&lt;/code&gt; on purpose and expect several syncs.&lt;/p&gt;

&lt;h2&gt;
  
  
  When not to build it this way
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A short list of URLs and a spare server?&lt;/strong&gt; changedetection.io is open source and self-hostable. Hard to argue with free.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The people reading the alerts aren't developers?&lt;/strong&gt; Visualping and Distill give visual diffs, browser extensions and email. For a marketing team watching ten competitor pages they're friendlier than any API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You need checks every few minutes?&lt;/strong&gt; MeshArc's fastest schedule is hourly, on purpose. Firecrawl's &lt;code&gt;/monitor&lt;/code&gt; goes down to every 5 minutes (checked 27 Nov 2026). Prices that move by the minute belong in a live feed, not a crawler.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Where this setup earns its keep is a whole section rather than a URL list, refusals that never pass for deletions, and a history that lands in your own Postgres. If you want to see what MeshArc returns for a page you keep checking by hand, try a URL in the &lt;a href="https://mesharc.dev/playground?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w49-destinations&amp;amp;utm_content=website-change-monitoring-api" rel="noopener noreferrer"&gt;playground&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your turn
&lt;/h2&gt;

&lt;p&gt;How do you keep change alerts from turning into noise? A word threshold like &lt;code&gt;notify_min_words&lt;/code&gt;, an allow-list of fields, a human triage step, or something I haven't thought of? I'd like to hear what's survived contact with a real team.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://mesharc.dev/blog/website-change-monitoring-api?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w49-destinations&amp;amp;utm_content=website-change-monitoring-api" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>webscraping</category>
      <category>monitoring</category>
      <category>postgres</category>
    </item>
    <item>
      <title>A 15-page paper converted to Markdown: what broke, and 30 lines of Python that fix it</title>
      <dc:creator>Sid Mishra</dc:creator>
      <pubDate>Mon, 30 Nov 2026 06:14:17 +0000</pubDate>
      <link>https://dev.to/sid_mishra/a-15-page-paper-converted-to-markdown-what-broke-and-30-lines-of-python-that-fix-it-38jj</link>
      <guid>https://dev.to/sid_mishra/a-15-page-paper-converted-to-markdown-what-broke-and-30-lines-of-python-that-fix-it-38jj</guid>
      <description>&lt;p&gt;A PDF describes where ink goes on a printed page. It never says "this is a heading" or "these cells are a table"; it says "draw these glyphs at these coordinates". So every converter is guessing the structure back from the layout, and in my experience building a crawler that reads them, how well it guesses depends far more on the PDF than on the tool.&lt;/p&gt;

&lt;p&gt;That's why the same tool gives you clean Markdown from a policy document and garbage from a financial report. Below is a real conversion with its numbers, the things that broke, and a small standard-library script that cleans the output before you chunk it.&lt;/p&gt;

&lt;h2&gt;
  
  
  First, which kind of PDF do you have?
&lt;/h2&gt;

&lt;p&gt;Three questions, in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Does it have a text layer?&lt;/strong&gt; Try to select a sentence. If you can't, it's a scan, and nothing reads it without OCR first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do the tables, equations or columns carry your answers?&lt;/strong&gt; Prose (policies, manuals, contracts) converts fine with a text-layer extractor. Rate cards and financial statements need a layout model such as Docling or Marker, or your retriever sees cell values with no row or column attached.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One file, a folder, or a website full of them?&lt;/strong&gt; One file: a free converter. A folder: a local library. A site that keeps publishing and replacing PDFs: a crawler.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  A real run: "Attention Is All You Need"
&lt;/h2&gt;

&lt;p&gt;On 30 November 2026 we converted the arXiv copy of "Attention Is All You Need" (15 pages, with equations, figures and results tables) through MeshArc's scrape, reading only its text layer.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;PDF&lt;/td&gt;
&lt;td&gt;15 pages, 2,215,244 bytes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Markdown&lt;/td&gt;
&lt;td&gt;39,594 bytes (about 56 times smaller), 6,036 words&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How it was read&lt;/td&gt;
&lt;td&gt;Plain fetch of the text layer, no browser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time&lt;/td&gt;
&lt;td&gt;About 2 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;2 credits (a fetched PDF is 2, whatever its page count)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Page breaks&lt;/td&gt;
&lt;td&gt;A &lt;code&gt;---&lt;/code&gt; rule between every page&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The numbers are the boring part. This is the useful part, the first lines of page 2 as returned:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1 Introduction
Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks
in particular, have been firmly established as state of the art approaches in sequence modeling and
...
Attention mechanisms have become an integral part of compelling sequence modeling and transduc-
tion models in various tasks, ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Four problems in one page:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The heading is plain text.&lt;/strong&gt; "1 Introduction" is an ordinary line, not a heading, so a chunker that splits on headings has nothing to split on.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lines end where the printed lines ended,&lt;/strong&gt; so one sentence is spread over several lines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"transduc-tion" is split&lt;/strong&gt; into two tokens a search won't match.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The page closes with a bare &lt;code&gt;2&lt;/code&gt;,&lt;/strong&gt; its printed page number, which would land in your chunk.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Further on, equation (1) came back as &lt;code&gt;softmax(QK T&lt;/code&gt; / &lt;code&gt;√dk&lt;/code&gt; / &lt;code&gt;)V&lt;/code&gt; across three lines. And because this file declares no title in its metadata, there was no &lt;code&gt;#&lt;/code&gt; heading at all: MeshArc returns the text layer page by page, and only a title the PDF itself declares becomes &lt;code&gt;#&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The text was complete and in reading order, so for prose questions it's good RAG input once cleaned. For the results tables it isn't: a text-layer read gives you their cells, not their structure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Clean each page, then chunk
&lt;/h2&gt;

&lt;p&gt;Clean each page, chunk it, and keep the page number with every chunk. Standard library only. We ran it on an excerpt of the output above: the page numbers went, "transduction" was re-joined, and "1 Introduction", "3 Model Architecture" and "3.1 Encoder and Decoder Stacks" came back as headings.&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;re&lt;/span&gt;

&lt;span class="c1"&gt;# a numbered heading such as "3.1 Encoder and Decoder Stacks"&lt;/span&gt;
&lt;span class="no"&gt;HEADING&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="nb"&gt;compile&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;"^(\d+(\.\d+)*)\s+[A-Z][^.]{0,80}$"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;clean_page&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;lines&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;text&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="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;splitlines&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;lines&lt;/span&gt; &lt;span class="ow"&gt;and&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;fullmatch&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;"\d{1,4}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lines&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&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="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;lines&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;lines&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;                       &lt;span class="c1"&gt;# the printed page number&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&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;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;lines&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rstrip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="no"&gt;HEADING&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&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="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"\n## "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;           &lt;span class="c1"&gt;# restore the heading the PDF lost&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;endswith&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="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;islower&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;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&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="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;        &lt;span class="c1"&gt;# "transduc-" + "tion"&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"\n## "&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;endswith&lt;/span&gt;&lt;span class="p"&gt;(&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="s2"&gt;":"&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="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="s2"&gt;" "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;                &lt;span class="c1"&gt;# re-join a wrapped line&lt;/span&gt;
        &lt;span class="k"&gt;else&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;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"\n"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&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="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="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;chunks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;markdown&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;350&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;overlap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;40&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;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;enumerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;markdown&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"\n\n---\n\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;words&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;clean_page&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="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&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="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&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;words&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;overlap&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;text&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="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;words&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;text&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="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"page"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;n&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="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What I'd change for your own documents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The heading pattern only catches numbered headings.&lt;/strong&gt; For reports with unnumbered ones, a layout tool's real heading levels are worth more than any regex.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Running headers differ per document.&lt;/strong&gt; The dependable trick is to count lines that appear on most pages and drop those.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;350 words with a 40-word overlap is a default, not a law.&lt;/strong&gt; It's also what MeshArc uses when it writes chunks to a vector store, but tune it against your own retrieval tests.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And keep &lt;code&gt;page&lt;/code&gt; in the chunk's metadata. "See page 7 of the 2026 policy" is the difference between an answer someone trusts and one they have to check.&lt;/p&gt;

&lt;p&gt;If your PDF is already online, paste its link into &lt;a href="https://mesharc.dev/tools/pdf-to-markdown?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w50-rag-freshness&amp;amp;utm_content=pdf-to-markdown-for-rag" rel="noopener noreferrer"&gt;our free converter&lt;/a&gt; (no account) and look for the four problems above before you write any code.&lt;/p&gt;

&lt;h2&gt;
  
  
  When it's a whole site of PDFs
&lt;/h2&gt;

&lt;p&gt;One PDF is a tool. A regulator's guidance library or a manufacturer's manuals is a crawl: new PDFs appear, old ones get replaced under the same URL or quietly withdrawn. With the Python SDK (&lt;code&gt;pip install mesharc&lt;/code&gt;, then &lt;code&gt;arc = MeshArc()&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="n"&gt;job&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;crawl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://example.gov/guidance/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;includePaths&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/guidance/*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"parse_documents"&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="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;wait&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="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;job&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pages&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;page&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="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"words"&lt;/span&gt;&lt;span class="p"&gt;]&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="s2"&gt;"credits"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;project&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;job&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;keep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Guidance PDFs"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"weekly"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max_pages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The crawl follows the PDF and Word files the site links to and converts each one from its text layer, or by OCR of the first 30 pages when a PDF is a scan with none. Kept as a project, every later run compares each document with the last version and records it as added, modified or removed. That's what saves money in a RAG pipeline: you re-chunk and re-embed only the documents that changed, and a document the site failed to serve one week is held back, not deleted from your index. The re-embedding side is in &lt;a href="https://mesharc.dev/blog/keep-rag-knowledge-base-fresh?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w50-rag-freshness&amp;amp;utm_content=pdf-to-markdown-for-rag" rel="noopener noreferrer"&gt;the guide to keeping a RAG knowledge base fresh&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to use something else
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your answers live in tables.&lt;/strong&gt; A text-layer read, ours included, gives you the cells' text in reading order, not Markdown tables. Run those PDFs through Docling or Marker.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;They're long scans.&lt;/strong&gt; MeshArc reads a scan by OCR, but only its first 30 pages and as plain text; for a longer scan, or the tables inside one, use an OCR-capable tool such as Docling, Marker or PyMuPDF with RapidOCR.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;They're files on your laptop.&lt;/strong&gt; MeshArc reads PDFs by URL; a local folder wants a local library.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What's the worst PDF you've had to get into a RAG index, and what finally worked on it?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://mesharc.dev/blog/pdf-to-markdown-for-rag?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w50-rag-freshness&amp;amp;utm_content=pdf-to-markdown-for-rag" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>rag</category>
      <category>python</category>
      <category>llm</category>
      <category>ai</category>
    </item>
    <item>
      <title>Firecrawl /monitor vs MeshArc change detection: an honest comparison</title>
      <dc:creator>Sid Mishra</dc:creator>
      <pubDate>Wed, 25 Nov 2026 06:47:43 +0000</pubDate>
      <link>https://dev.to/sid_mishra/firecrawl-monitor-vs-mesharc-change-detection-an-honest-comparison-2jl2</link>
      <guid>https://dev.to/sid_mishra/firecrawl-monitor-vs-mesharc-change-detection-an-honest-comparison-2jl2</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Updated 26 November 2026:&lt;/strong&gt; every figure has been re-checked, and the guide now includes code to switch from Firecrawl /monitor and a status-by-status mapping. The current version is on &lt;a href="https://mesharc.dev/blog/firecrawl-monitor-vs-mesharc-change-detection?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-monitor-vs-mesharc-change-detection-update" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I build MeshArc, and for a long time my pitch against Firecrawl was one line: they scrape, we scrape and remember. Then in May 2026 Firecrawl shipped &lt;code&gt;/monitor&lt;/code&gt;, a proper change-tracking product with scheduled checks, text and JSON diffs, an AI judge for "did anything meaningful change", webhooks, email and Slack, and that line stopped being true. So I wrote the comparison I'd want to read as a developer choosing between them: what each one watches, how each decides something changed, where the change ends up, and what a month of checks actually costs.&lt;/p&gt;

&lt;p&gt;I'm obviously biased, so weigh that. Firecrawl figures were checked on 30 October 2026 against &lt;a href="https://docs.firecrawl.dev/features/monitor" rel="noopener noreferrer"&gt;docs.firecrawl.dev/features/monitor&lt;/a&gt;, the Firecrawl billing docs and firecrawl.dev/pricing. Where Firecrawl is better, I say so.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update, 23 November 2026:&lt;/strong&gt; I re-checked Firecrawl's pricing page and docs today. Standard is still $99 a month billed monthly ($83 billed yearly) for 100,000 credits. Monitor is 1 credit a page a check (7 with the deterministic-extraction engine). A page that comes back 403 or 404 still costs 1 credit, and enhanced proxy still adds 0. The 5-minute minimum schedule, 1–50 targets per monitor, 30-day default retention and the +1 credit judge are unchanged. The webhook retry counts are as checked on 30 October. So every figure below still holds.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The short answer
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pick Firecrawl &lt;code&gt;/monitor&lt;/code&gt;&lt;/strong&gt; for a handful of pages checked every few minutes, for watching web-search results for new hits, for diffs on fields you define in your own JSON schema, or if you want the AI judge without bringing a model key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick MeshArc&lt;/strong&gt; for whole sites or sections checked hourly to weekly, when refused pages must never be reported as deleted, when pages the sitemap says haven't changed should cost nothing, and when the change has to land as a row in Postgres, BigQuery or a vector store rather than as a message.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The rest of the post is the working.&lt;/p&gt;

&lt;h2&gt;
  
  
  Side by side
&lt;/h2&gt;

&lt;p&gt;Checked 30 October 2026; Firecrawl rows re-checked 23 November 2026.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Firecrawl &lt;code&gt;/monitor&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;MeshArc change detection&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What it watches&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;scrape&lt;/code&gt; (listed URLs), &lt;code&gt;crawl&lt;/code&gt; (every page a crawl finds), &lt;code&gt;search&lt;/code&gt; (new web results); 1–50 targets per monitor&lt;/td&gt;
&lt;td&gt;A project: a seed URL plus scope (&lt;code&gt;include_paths&lt;/code&gt;), seeded from robots.txt and sitemaps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fastest schedule&lt;/td&gt;
&lt;td&gt;Every 5 minutes (cron or plain text, with a time zone)&lt;/td&gt;
&lt;td&gt;Hourly (&lt;code&gt;hourly&lt;/code&gt;, &lt;code&gt;daily&lt;/code&gt;, &lt;code&gt;weekly&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Page states&lt;/td&gt;
&lt;td&gt;same, changed, new, removed, error&lt;/td&gt;
&lt;td&gt;added, removed, modified, same, withheld, unverified, skipped&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Diff&lt;/td&gt;
&lt;td&gt;Markdown unified diff by default; JSON mode gives per-field diffs keyed by path, with previous and current values&lt;/td&gt;
&lt;td&gt;Word-level page diff, plus field changes to titles, dates, canonicals and prices&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Noise&lt;/td&gt;
&lt;td&gt;AI judge (&lt;code&gt;goal&lt;/code&gt;) marks changes meaningful or not; emails are suppressed when every change is judged noise&lt;/td&gt;
&lt;td&gt;Banners, rotating widgets and timestamps stripped before comparison; &lt;code&gt;notify_min_words&lt;/code&gt; threshold for alerts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Removals&lt;/td&gt;
&lt;td&gt;Reported as removed; failed fetches reported as error&lt;/td&gt;
&lt;td&gt;Refused pages are &lt;em&gt;withheld&lt;/em&gt;; removals held back on any run that reaches under 90% of the site&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Delivery&lt;/td&gt;
&lt;td&gt;Webhook (3 retries at 1, 5, 15 min), email (up to 25 recipients), Slack (dashboard only)&lt;/td&gt;
&lt;td&gt;Signed webhook (6 retries over about a day), Slack, Teams, Discord, Google Chat, email digest, plus push to warehouses, databases, vector stores, object stores and streams&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;History&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;retentionDays&lt;/code&gt;, 30 by default, up to 365&lt;/td&gt;
&lt;td&gt;Change records, and every version in your own database if you add a destination&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Billing per check&lt;/td&gt;
&lt;td&gt;1 credit per page per check, changed or not; +1 per changed page judged; an errored page is 1&lt;/td&gt;
&lt;td&gt;Rung price per page read; 404s, refusals and pages carried forward by &lt;code&gt;lastmod&lt;/code&gt; are 0; diffs and deliveries are 0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One billing caveat: Firecrawl's pricing page lists Monitor at "1 / page / check", but the same page also says its "deterministic-extraction engine bills a flat 7 credits per page per check". I've used the 1-credit figure throughout, which is the cheaper reading. Each Firecrawl check reports &lt;code&gt;estimatedCredits&lt;/code&gt; and &lt;code&gt;actualCredits&lt;/code&gt;, so look at a real check before you budget.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Firecrawl /monitor is better
&lt;/h2&gt;

&lt;p&gt;Plainly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Speed.&lt;/strong&gt; Five-minute checks. MeshArc's floor is hourly, by design: a crawler is the wrong tool for prices that move every few minutes. If you need that, Firecrawl does it and we don't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search targets.&lt;/strong&gt; A Firecrawl monitor can watch a web search and alert on new results, with the judge deciding which hits match your goal. MeshArc has a separate rank tracking API for searches, but not inside the change monitor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own fields.&lt;/strong&gt; JSON mode takes your schema or a prompt and diffs exactly those fields (&lt;code&gt;plans[0].price&lt;/code&gt;, previous and current). MeshArc's field diffs cover titles, dates, canonicals and prices out of the box; anything more bespoke means structured extraction on your own model key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The judge is included.&lt;/strong&gt; Firecrawl's meaningful-change judge runs on Firecrawl's side for 1 credit per changed page. MeshArc's change digest is written on your own model key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open source.&lt;/strong&gt; Firecrawl is AGPL-3.0 and can be self-hosted. MeshArc is a hosted API with MIT-licensed SDKs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Residential-only sites.&lt;/strong&gt; Firecrawl's enhanced proxy costs no extra credits. On MeshArc a page that needs a residential IP on every read is 16 credits. On those sites Firecrawl is cheaper — see the numbers below.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Where MeshArc is better
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Whole sections, found for you.&lt;/strong&gt; A MeshArc project walks robots.txt, well-known paths and sitemap indexes, so a page published on Tuesday is reported as &lt;em&gt;added&lt;/em&gt; on the next run. One gov.uk discovery run mapped 508,290 URLs. Firecrawl's &lt;code&gt;crawl&lt;/code&gt; target also finds pages, so this is a difference of degree; the sitemap memory is where it widens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pages the sitemap says haven't changed cost nothing.&lt;/strong&gt; When a sitemap's &lt;code&gt;lastmod&lt;/code&gt; says a page has not changed, MeshArc carries the previous copy forward at 0 credits; a page it does re-read is billed at the rung that read it. Firecrawl charges 1 credit per page per check whether anything changed or not.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A refusal is not a deletion.&lt;/strong&gt; Firecrawl separates &lt;code&gt;error&lt;/code&gt; from &lt;code&gt;removed&lt;/code&gt;, which is good. MeshArc goes a step further: a page the site refused this run is &lt;em&gt;withheld&lt;/em&gt;, and if a run reaches under 90% of the site, removals are held back entirely and the reason is stated. A half-finished crawl never turns into "400 pages deleted".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;404s and walls cost nothing.&lt;/strong&gt; Firecrawl bills a page that returns a document even when the status is 403 or 404, and bills 1 credit for a page that errors during a check. MeshArc bills neither.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The change lands where your data lives.&lt;/strong&gt; This is the biggest gap. Firecrawl &lt;code&gt;/monitor&lt;/code&gt; delivers by webhook, email or Slack; the table is yours to build. MeshArc pushes to warehouses, databases, vector stores, object stores and streams on every plan — PostgreSQL, MySQL, MongoDB, BigQuery, Snowflake, Redshift, Databricks, ClickHouse, Pinecone, Qdrant, Weaviate, pgvector, S3, GCS, Azure Blob, Kafka and more — upserted by URL and content hash, at 0 credits. Keyed on &lt;code&gt;url+content_hash&lt;/code&gt;, every page version becomes a row.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retries that survive a deploy.&lt;/strong&gt; MeshArc retries a failed webhook six times over about a day; Firecrawl three times within 15 minutes.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What a month of checks costs
&lt;/h2&gt;

&lt;p&gt;Per-1,000-credit rates used here: Firecrawl Standard is $99 a month for 100,000 credits ($0.99 per 1,000), or $83 a month on annual billing ($0.83). MeshArc Growth is $99 a month for 500,000 credits ($0.198 per 1,000). These are allowance-equivalent rates; you pay the plan, not the fraction. Firecrawl plan credits do not roll over on Hobby, Standard or Growth.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Job (per month)&lt;/th&gt;
&lt;th&gt;Firecrawl Standard&lt;/th&gt;
&lt;th&gt;MeshArc Growth&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2,000-page docs site, weekly (4 checks), plain HTML&lt;/td&gt;
&lt;td&gt;8,000 credits: &lt;strong&gt;$7.92&lt;/strong&gt; ($6.64 annual)&lt;/td&gt;
&lt;td&gt;8,000 credits by plain fetch: &lt;strong&gt;$1.58&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same site, sitemap &lt;code&gt;lastmod&lt;/code&gt; accurate, ~10% of pages change each week&lt;/td&gt;
&lt;td&gt;8,000 credits: $7.92 (every page billed every check)&lt;/td&gt;
&lt;td&gt;~800 page reads plus sitemap files: &lt;strong&gt;about $0.16&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same site, every page needs JavaScript&lt;/td&gt;
&lt;td&gt;8,000 credits: $7.92&lt;/td&gt;
&lt;td&gt;32,000 credits (render, 4 each): &lt;strong&gt;$6.34&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1,000 pages needing a residential IP, weekly&lt;/td&gt;
&lt;td&gt;4,000 credits: &lt;strong&gt;$3.96&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;64,000 credits (16 each): $12.67&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;20 pricing pages every 15 minutes&lt;/td&gt;
&lt;td&gt;57,600 credits: fits the $99 plan&lt;/td&gt;
&lt;td&gt;Not possible; hourly is 14,400 credits, &lt;strong&gt;$2.85&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On a plain or sitemap-friendly site MeshArc is roughly 5× to 50× cheaper per month of checks. On a JavaScript-heavy site the two are close. On a residential-only site Firecrawl is about 3× cheaper, and for sub-hourly checks it is the only option of the two. The wider price picture, including 404 billing and JSON surcharges, is in &lt;a href="https://mesharc.dev/blog/firecrawl-pricing-explained?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-monitor-vs-mesharc-change-detection" rel="noopener noreferrer"&gt;Firecrawl pricing explained&lt;/a&gt;; our own rates are on &lt;a href="https://mesharc.dev/pricing?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-monitor-vs-mesharc-change-detection" rel="noopener noreferrer"&gt;pricing&lt;/a&gt; and in the &lt;a href="https://mesharc.dev/docs/billing?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-monitor-vs-mesharc-change-detection" rel="noopener noreferrer"&gt;billing docs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same job in MeshArc, in code
&lt;/h2&gt;

&lt;p&gt;A weekly watch on a docs section, a Slack alert for real edits only, and a signed webhook for code. Install first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install mesharc
&lt;span class="c"&gt;# or: npm install mesharc&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;mesharc&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;

&lt;span class="n"&gt;arc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# reads MESHARC_API_KEY&lt;/span&gt;

&lt;span class="n"&gt;project&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://docs.example.com/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Competitor docs"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"weekly"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                      &lt;span class="c1"&gt;# manual | hourly | daily | weekly&lt;/span&gt;
    &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"max_pages"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"include_paths"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/docs/*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"chat_url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://hooks.slack.com/services/T000/B000/XXXX"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"notify_min_words"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;             &lt;span class="c1"&gt;# skip typo fixes in Slack&lt;/span&gt;
        &lt;span class="s2"&gt;"webhook_url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://hooks.yourapp.com/mesharc"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"webhook_events"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"run.finished"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"page.changed"&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="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;runs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wait&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="c1"&gt;# run 1 sets the baseline&lt;/span&gt;

&lt;span class="c1"&gt;# after the next scheduled run:&lt;/span&gt;
&lt;span class="n"&gt;record&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;changes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&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;record&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"change"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"counts"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;           &lt;span class="c1"&gt;# added, removed, modified, withheld&lt;/span&gt;

&lt;span class="n"&gt;diff&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;page_diff&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&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://docs.example.com/docs/pricing"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add a Postgres, BigQuery or Pinecone destination to the project and each run's changed pages are written there after it finishes; the settings are in the &lt;a href="https://mesharc.dev/docs/connectors-destinations?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-monitor-vs-mesharc-change-detection" rel="noopener noreferrer"&gt;connectors and destinations docs&lt;/a&gt;. The full pipeline, including verifying the webhook signature and the SQL you can run afterwards, is in &lt;a href="https://mesharc.dev/blog/website-change-monitoring-api?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-monitor-vs-mesharc-change-detection" rel="noopener noreferrer"&gt;Website change monitoring API: from diff to Slack to Postgres&lt;/a&gt;. Pointed at a vector store instead, the same project is how you &lt;a href="https://mesharc.dev/blog/keep-rag-knowledge-base-fresh?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-monitor-vs-mesharc-change-detection" rel="noopener noreferrer"&gt;keep a RAG knowledge base fresh&lt;/a&gt; without re-embedding pages that did not change.&lt;/p&gt;

&lt;p&gt;Before you save a schedule, &lt;code&gt;GET /estimate&lt;/code&gt; returns a monthly credit estimate, and &lt;code&gt;budget.perMonth&lt;/code&gt; skips any scheduled run due after the budget is spent — the MeshArc counterpart to Firecrawl's &lt;code&gt;estimatedCredits&lt;/code&gt;.&lt;/p&gt;

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

&lt;p&gt;Ask three questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;How often?&lt;/strong&gt; Faster than hourly: Firecrawl. Hourly to weekly: either.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How much of the site?&lt;/strong&gt; A few known URLs: either, and Firecrawl's JSON schema mode is very good at it. A whole section that grows: MeshArc's sitemap memory, &lt;code&gt;lastmod&lt;/code&gt; carry-forward and 90% removal rule earn their keep.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Where does the change go?&lt;/strong&gt; A person reading Slack or email: Firecrawl does that well, judge included. A table, a warehouse or an index: MeshArc writes it there; with Firecrawl you build and run the receiver.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Plenty of teams will reasonably use both: Firecrawl for a fast monitor on a few pages, MeshArc for the scheduled crawl that feeds the warehouse. For the broader switch, see &lt;a href="https://mesharc.dev/firecrawl-alternative?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-monitor-vs-mesharc-change-detection" rel="noopener noreferrer"&gt;the Firecrawl alternative page&lt;/a&gt;, and the use case in full is on &lt;a href="https://mesharc.dev/use-cases/website-change-monitoring?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-monitor-vs-mesharc-change-detection" rel="noopener noreferrer"&gt;website change monitoring&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it on a site you already watch
&lt;/h2&gt;

&lt;p&gt;Try a URL in the &lt;a href="https://mesharc.dev/playground?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-monitor-vs-mesharc-change-detection" rel="noopener noreferrer"&gt;playground&lt;/a&gt;: paste one of the pages you check by hand and see what comes back, verdict and credits included. Or &lt;a href="https://mesharc.dev/signup?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-monitor-vs-mesharc-change-detection" rel="noopener noreferrer"&gt;start free&lt;/a&gt; with 1,000 credits and no card: set the baseline today, read the first diff after the next run, and compare the bill with your current monitor's &lt;code&gt;actualCredits&lt;/code&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://mesharc.dev/blog/firecrawl-monitor-vs-mesharc-change-detection?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-monitor-vs-mesharc-change-detection" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webscraping</category>
      <category>api</category>
      <category>python</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>Track competitor prices daily with Python</title>
      <dc:creator>Sid Mishra</dc:creator>
      <pubDate>Fri, 20 Nov 2026 08:54:37 +0000</pubDate>
      <link>https://dev.to/sid_mishra/track-competitor-prices-daily-with-python-41o4</link>
      <guid>https://dev.to/sid_mishra/track-competitor-prices-daily-with-python-41o4</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Updated 26 November 2026:&lt;/strong&gt; this guide now covers extracting the price from JSON-LD, mapping competitor URLs to your SKUs and scheduling with GitHub Actions. The current version is on &lt;a href="https://mesharc.dev/blog/track-competitor-prices-python?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=track-competitor-prices-python-update" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Black Friday falls on 27 November this year, and I keep hearing the same story about the week before it: competitors move prices overnight, a few times, and whoever notices first wins the margin. Most teams start by checking twenty product pages by hand each morning. That stops working at the second competitor, so here is the small tracker I would build instead.&lt;/p&gt;

&lt;p&gt;This guide builds the replacement in Python. A scheduled crawl reads the competitor's product pages, extracts the price as a number rather than a string, compares each run with the one before, and writes one line per price that moved. Pages that were refused or blocked are reported as such and never counted as a price change. At the end there is a real run, with its numbers, and what a month of it costs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a price tracker has to get right
&lt;/h2&gt;

&lt;p&gt;Fetching a page and pulling out &lt;code&gt;£30.54&lt;/code&gt; is the easy part. The parts that make a tracker trustworthy are the ones people add after the first false alarm:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The price is a number.&lt;/strong&gt; &lt;code&gt;"£30.54"&lt;/code&gt;, &lt;code&gt;"30.54 GBP"&lt;/code&gt; and &lt;code&gt;"30,54 €"&lt;/code&gt; should all compare as 30.54, or every currency format change looks like a price change.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Only meaningful change counts.&lt;/strong&gt; A rotating "recently viewed" strip or a new review must not trigger an alert. The field you care about is the price, not the page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blocked is not changed.&lt;/strong&gt; A product page that returns a 403 or a challenge today has not changed its price, and it has not been deleted. A tracker that records &lt;code&gt;None&lt;/code&gt; for it will report a price drop to nothing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silence when nothing moved.&lt;/strong&gt; A daily report that says "12 prices, all the same" every morning is ignored by Thursday.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History.&lt;/strong&gt; "When did they last change this?" is the question the commercial team asks next.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The plan below handles each of these with a MeshArc project: a site watched on a schedule, with typed fields and a change record per run.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: install and set up the project
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install mesharc
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;MESHARC_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;mesharc_...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a real run we used &lt;a href="https://books.toscrape.com" rel="noopener noreferrer"&gt;Books to Scrape&lt;/a&gt;, a sandbox built for scraping practice whose prices are randomly assigned. Swap in your competitor's category page. The project starts from a category page, follows its links one hop to the product pages, and skips the other category pages:&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="c1"&gt;# setup_prices.py: run once&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;mesharc&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;

&lt;span class="n"&gt;arc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# reads MESHARC_API_KEY&lt;/span&gt;

&lt;span class="n"&gt;project&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://books.toscrape.com/catalogue/category/books/travel_2/index.html"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Competitor prices"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"daily"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                       &lt;span class="c1"&gt;# 03:00 UTC every day&lt;/span&gt;
    &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"crawl_mode"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"links"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;              &lt;span class="c1"&gt;# follow the category page's links&lt;/span&gt;
        &lt;span class="s2"&gt;"max_depth"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                     &lt;span class="c1"&gt;# category page, then its products&lt;/span&gt;
        &lt;span class="s2"&gt;"include_paths"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/catalogue/*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"exclude_paths"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/catalogue/category/*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"max_pages"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"max_credits_per_page"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;          &lt;span class="c1"&gt;# never more than a real browser&lt;/span&gt;
        &lt;span class="s2"&gt;"max_credits_per_month"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;      &lt;span class="c1"&gt;# scheduled runs stop past this&lt;/span&gt;
        &lt;span class="s2"&gt;"json_schema"&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;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"number"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"required"&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="p"&gt;,&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"availability"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"string"&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="c1"&gt;# optional: post the run record to Slack when something changes&lt;/span&gt;
        &lt;span class="c1"&gt;# "chat_url": "https://hooks.slack.com/services/...",&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;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&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;Three settings do most of the work. &lt;code&gt;json_schema&lt;/code&gt; declares the fields every page should yield, with types, so &lt;code&gt;price&lt;/code&gt; comes back as &lt;code&gt;30.54&lt;/code&gt;, not &lt;code&gt;"£30.54"&lt;/code&gt;. &lt;code&gt;max_credits_per_page&lt;/code&gt; and &lt;code&gt;max_credits_per_month&lt;/code&gt; cap the bill before it happens: a page that would need a dearer read is not charged and comes back marked &lt;code&gt;TIER_LIMIT&lt;/code&gt;. And &lt;code&gt;chat_url&lt;/code&gt;, if you set it, posts the run record to Slack, Discord, Teams, Mattermost or Google Chat only when a run finds something, never when it compared clean.&lt;/p&gt;

&lt;p&gt;The seed page is excluded by &lt;code&gt;exclude_paths&lt;/code&gt; but still read, because a crawl always reads where it starts. That is what we want: the category page is how new products are found.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: the daily price check
&lt;/h2&gt;

&lt;p&gt;The project crawls itself every day at 03:00 UTC. This script runs afterwards (from cron, a GitHub Action or any scheduler), compares each product's price with the previous run's, and appends the moves to a 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="c1"&gt;# prices_today.py: run daily, after the 03:00 UTC crawl&lt;/span&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;datetime&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;from&lt;/span&gt; &lt;span class="n"&gt;mesharc&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;MeshArcError&lt;/span&gt;

&lt;span class="no"&gt;PROJECT&lt;/span&gt; &lt;span class="o"&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;"PRICE_PROJECT_ID"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;arc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;record&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;changes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;PROJECT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"change"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;record&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"baseline"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;SystemExit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"First run: baseline recorded, nothing to compare yet."&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;record&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"summary"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"| withheld:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;record&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"counts"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"withheld"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;price&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;run_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;page&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;PROJECT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;run_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;run_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;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"fields"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&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;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;MeshArcError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;          &lt;span class="c1"&gt;# not in that run: a new product&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;

&lt;span class="n"&gt;moves&lt;/span&gt; &lt;span class="o"&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;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;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;PROJECT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pages"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&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;"verdict"&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="c1"&gt;# blocked, withheld or skipped: not a price change&lt;/span&gt;
        &lt;span class="k"&gt;continue&lt;/span&gt;
    &lt;span class="n"&gt;new&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;price&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;"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="nf"&gt;price&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;"url"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;record&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"prevRunId"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;moves&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&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;"url"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&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;today&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;today&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;isoformat&lt;/span&gt;&lt;span class="p"&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;"price_moves.csv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"a"&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="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;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="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writerows&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;today&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;m&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;m&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;moves&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(moves)} price(s) moved"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reading the change record and stored pages costs nothing: &lt;code&gt;changes&lt;/code&gt;, &lt;code&gt;pages&lt;/code&gt; and &lt;code&gt;page&lt;/code&gt; read what the crawl already stored and never fetch. So the script can compare every product, every day, without adding to the bill. The category page has no &lt;code&gt;price&lt;/code&gt; field, so it drops out of the comparison on its own.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;verdict&lt;/code&gt; check is what keeps a blocked page out of your price history. A page the site refused this run is reported as blocked or withheld, and MeshArc does not record removals at all when a run reached under 90% of the site, so a bad night on the competitor's side does not show up as forty products discontinued.&lt;/p&gt;

&lt;h2&gt;
  
  
  One real run, with numbers
&lt;/h2&gt;

&lt;p&gt;We created the project above (manual schedule, for the test) and ran it twice on 16 November 2026, 30 seconds apart. Results as they came back:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Run 1 (baseline)&lt;/th&gt;
&lt;th&gt;Run 2 (compared)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Pages read&lt;/td&gt;
&lt;td&gt;12 (1 category page, 11 products)&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read by&lt;/td&gt;
&lt;td&gt;Plain fetch, every page&lt;/td&gt;
&lt;td&gt;Plain fetch, every page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Credits&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time&lt;/td&gt;
&lt;td&gt;17 s&lt;/td&gt;
&lt;td&gt;17 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prices extracted&lt;/td&gt;
&lt;td&gt;11 of 11 products, £23.21 to £56.88&lt;/td&gt;
&lt;td&gt;11 of 11&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change record&lt;/td&gt;
&lt;td&gt;baseline recorded&lt;/td&gt;
&lt;td&gt;0 new · 0 changed · 0 removed · 0 withheld, reach 100%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prices moved&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A single product page, &lt;em&gt;The Great Railway Bazaar&lt;/em&gt;, came back as &lt;code&gt;{"price": 30.54, "availability": "In stock (6 available)"}&lt;/code&gt;, with 18,821 bytes of HTML reduced to 4,052 bytes of Markdown. The same page's content hash was identical in both runs, which is why the change record shows nothing.&lt;/p&gt;

&lt;p&gt;Two things in that table are worth saying plainly. First, the second run cost the same as the first. MeshArc has to read a page to know its price has not changed, and a page read is billed. Unchanged copies are free only when a site's sitemap says the page has not changed since the last fetch, and product pages rarely carry a reliable &lt;code&gt;lastmod&lt;/code&gt;. Second, "0 prices moved" was the right answer: the sandbox's prices are fixed, and a tracker that reported changes here would be reporting noise.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a month costs
&lt;/h2&gt;

&lt;p&gt;A daily check of 30 days, from the pricing page's rates (checked 16 November 2026):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you watch&lt;/th&gt;
&lt;th&gt;Credits a month&lt;/th&gt;
&lt;th&gt;Plan that covers it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The 12 pages above, plain fetch (1 credit)&lt;/td&gt;
&lt;td&gt;360&lt;/td&gt;
&lt;td&gt;Starter uses 0.4%; the free 1,000 credits (once) cover the testing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;200 product pages, plain fetch&lt;/td&gt;
&lt;td&gt;6,000&lt;/td&gt;
&lt;td&gt;Starter ($29 a month, 100,000 credits): 6%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;200 pages that need a real browser (4 credits)&lt;/td&gt;
&lt;td&gt;24,000&lt;/td&gt;
&lt;td&gt;Starter: 24%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;200 pages behind a Cloudflare managed challenge: one render, then the session at 2 credits a page&lt;/td&gt;
&lt;td&gt;12,060 at most&lt;/td&gt;
&lt;td&gt;Starter: 12%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;200 pages that refuse datacenter addresses (residential, 16 credits)&lt;/td&gt;
&lt;td&gt;96,000&lt;/td&gt;
&lt;td&gt;Growth ($99 a month, 500,000 credits, stealth tier): 19%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You do not pick the row. Every page starts at the cheapest read and climbs one rung per refusal, never two, and you pay for the rung that read it. A page the site refused, a 404 and a 410 cost 0, whatever the ladder spent finding out. The session rung is explained in &lt;a href="https://mesharc.dev/blog/cloudflare-scraping-session-rung?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=track-competitor-prices-python" rel="noopener noreferrer"&gt;scraping a Cloudflare-protected site for $0.40 per 1,000 pages&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build it yourself, or use an API?
&lt;/h2&gt;

&lt;p&gt;A &lt;code&gt;requests&lt;/code&gt; and BeautifulSoup script on a cron job is a fair way to start, and on some rows it wins:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Your own script&lt;/th&gt;
&lt;th&gt;MeshArc project&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cost per page&lt;/td&gt;
&lt;td&gt;Your server and bandwidth, close to nothing&lt;/td&gt;
&lt;td&gt;1 credit plain ($0.20 per 1,000 on Growth), more for browser or residential reads&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Price as a number&lt;/td&gt;
&lt;td&gt;You parse each site's format&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;json_schema&lt;/code&gt; field, typed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blocked page&lt;/td&gt;
&lt;td&gt;Looks like a missing price unless you handle it&lt;/td&gt;
&lt;td&gt;Reported as blocked or withheld; never a price change; 0 credits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Run-to-run comparison and history&lt;/td&gt;
&lt;td&gt;You store and diff it&lt;/td&gt;
&lt;td&gt;Change record per run; page versions kept (90 days by default)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Alert only when something moved&lt;/td&gt;
&lt;td&gt;You write it&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;chat_url&lt;/code&gt;, webhooks, or the script above&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JavaScript-only or walled product pages&lt;/td&gt;
&lt;td&gt;You add a headless browser and proxies&lt;/td&gt;
&lt;td&gt;The ladder climbs when a page refuses&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;And MeshArc is not the cheapest per plain page. Priced on plans near $100 a month, billed monthly, per 1,000 plain pages (vendors' pricing pages, checked 16 November 2026): Crawl4AI Cloud $0.08, ScrapingBee $0.10, Scrapfly $0.10, ScraperAPI $0.15, MeshArc $0.20, Firecrawl $0.99. If your competitor's pages are plain HTML that never blocks, and you are happy to build the comparison yourself, one of those is cheaper. The maths changes on walled pages after the first render, on 404s (0 credits here; Firecrawl bills 1 credit and ScraperAPI bills 404 responses, both checked 16 November 2026), and in the comparison you no longer have to write.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before Black Friday week
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Run the project manually once a few days before you need it, so the baseline exists when prices start moving.&lt;/li&gt;
&lt;li&gt;Check &lt;code&gt;fieldsRequiredMissing&lt;/code&gt; on a product page after the first run: an empty &lt;code&gt;price&lt;/code&gt; there means the page's markup did not declare one, and is worth fixing before the busy week, not during it.&lt;/li&gt;
&lt;li&gt;Add the competitor's pricing and plan pages to a second project if you sell software rather than stock. The &lt;a href="https://mesharc.dev/use-cases/competitor-price-monitoring?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=track-competitor-prices-python" rel="noopener noreferrer"&gt;competitor price monitoring use case&lt;/a&gt; covers plan tables and changelogs; &lt;a href="https://mesharc.dev/use-cases/website-change-monitoring?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=track-competitor-prices-python" rel="noopener noreferrer"&gt;website change monitoring&lt;/a&gt; is the general pattern, and &lt;a href="https://mesharc.dev/blog/website-change-monitoring-api?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=track-competitor-prices-python" rel="noopener noreferrer"&gt;from diff to Slack to Postgres&lt;/a&gt; shows how to land every page version in a table.&lt;/li&gt;
&lt;li&gt;Set &lt;code&gt;max_credits_per_month&lt;/code&gt;. A competitor that adds 2,000 products the night before a sale should not surprise your bill.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One project: a category page as the seed, &lt;code&gt;include_paths&lt;/code&gt; for the product pages, &lt;code&gt;json_schema&lt;/code&gt; for &lt;code&gt;price&lt;/code&gt; and &lt;code&gt;availability&lt;/code&gt;, &lt;code&gt;schedule="daily"&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A short script compares each price with the previous run's. Reading stored pages and change records costs nothing.&lt;/li&gt;
&lt;li&gt;Blocked and withheld pages are skipped, never written down as a price change.&lt;/li&gt;
&lt;li&gt;Our run: 12 pages, 12 credits a run, 11 prices extracted, 0 moved.&lt;/li&gt;
&lt;li&gt;Every read is billed, including unchanged pages. Refusals, 404s and 410s are free.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try a URL in the &lt;a href="https://mesharc.dev/playground?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=track-competitor-prices-python" rel="noopener noreferrer"&gt;playground&lt;/a&gt; to see which fields a competitor's product page declares and what it costs to read, or &lt;a href="https://mesharc.dev/signup?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=track-competitor-prices-python" rel="noopener noreferrer"&gt;start free&lt;/a&gt; with 1,000 credits and no card, and set the project up before the week the prices move. Full rates are on &lt;a href="https://mesharc.dev/pricing?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=track-competitor-prices-python" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://mesharc.dev/blog/track-competitor-prices-python?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=track-competitor-prices-python" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>webscraping</category>
      <category>tutorial</category>
      <category>api</category>
    </item>
    <item>
      <title>Give Claude or Cursor the web: MeshArc MCP in 60 seconds</title>
      <dc:creator>Sid Mishra</dc:creator>
      <pubDate>Tue, 17 Nov 2026 09:44:34 +0000</pubDate>
      <link>https://dev.to/sid_mishra/give-claude-or-cursor-the-web-mesharc-mcp-in-60-seconds-2j54</link>
      <guid>https://dev.to/sid_mishra/give-claude-or-cursor-the-web-mesharc-mcp-in-60-seconds-2j54</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Updated 26 November 2026:&lt;/strong&gt; the setup steps have changed. The current guide, with Claude, Claude Code, Cursor, VS Code, Codex and Windsurf, is on &lt;a href="https://mesharc.dev/blog/web-scraping-mcp-claude-cursor?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=web-scraping-mcp-claude-cursor-update" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I kept asking my coding assistant about libraries released last month and competitor pricing pages as they stand today, and kept getting confident guesses from memory. So I built MeshArc a web scraping MCP server: it hands the assistant tools that fetch a page as clean Markdown, list every URL a site declares, crawl a section, and report what changed since the last visit.&lt;/p&gt;

&lt;p&gt;This guide connects MeshArc's hosted MCP server to Claude, Claude Code and Cursor. The hosted server has no package to install and no key to copy. Then it shows one real run, with the numbers as they came back: two tool calls, 2 credits.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;A MeshArc account. The free plan gives 1,000 credits once, with no card.&lt;/li&gt;
&lt;li&gt;Claude (web, desktop or mobile), Claude Code, Cursor, or any client that accepts a remote MCP URL.&lt;/li&gt;
&lt;li&gt;One URL: &lt;code&gt;https://mcp.mesharc.dev/mcp&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is the whole list for the hosted server. If you would rather run the server on your own machine with your own API key, skip to "Run it locally instead".&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: add the server
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Claude (web, desktop and mobile)
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Settings → Connectors&lt;/strong&gt; and choose &lt;strong&gt;Add custom connector&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Paste &lt;code&gt;https://mcp.mesharc.dev/mcp&lt;/code&gt; and give it a name.&lt;/li&gt;
&lt;li&gt;Sign in to mesharc.dev when the browser asks, and approve.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Claude Code
&lt;/h3&gt;

&lt;p&gt;One line in a terminal:&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 mesharc https://mcp.mesharc.dev/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It opens a browser once to sign in and approve, then works.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cursor
&lt;/h3&gt;

&lt;p&gt;Use the &lt;strong&gt;Add to Cursor&lt;/strong&gt; button on the &lt;a href="https://mesharc.dev/mcp?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=web-scraping-mcp-claude-cursor" rel="noopener noreferrer"&gt;MCP page&lt;/a&gt;, or add the server to &lt;code&gt;~/.cursor/mcp.json&lt;/code&gt; yourself (&lt;code&gt;.cursor/mcp.json&lt;/code&gt; inside a repository keeps it to that project):&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;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"mesharc"&lt;/span&gt;&lt;span class="p"&gt;:&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://mcp.mesharc.dev/mcp"&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;Cursor asks you to confirm, then you sign in to mesharc.dev once.&lt;/p&gt;

&lt;h3&gt;
  
  
  VS Code and everything else
&lt;/h3&gt;

&lt;p&gt;The MCP page also has an &lt;strong&gt;Add to VS Code&lt;/strong&gt; button, which registers the server as &lt;code&gt;{"type": "http", "url": "https://mcp.mesharc.dev/mcp"}&lt;/code&gt;. ChatGPT connectors and any other client that takes a remote MCP URL use the same address.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: approve, and tick the right box
&lt;/h2&gt;

&lt;p&gt;The approval screen matters more than it looks. Approving does not hand the assistant your API key. MeshArc issues the connected app a key of its own, which you can see and revoke under &lt;strong&gt;Settings → API keys&lt;/strong&gt;. The assistant never holds a credential.&lt;/p&gt;

&lt;p&gt;A connection is &lt;strong&gt;read only unless you allow changes&lt;/strong&gt;, and read only means less than most people expect. A read-only connection can look at everything already stored in your workspace (projects, runs, pages, change records), but it cannot reach a website. Anything that fetches counts as a write, because it leaves the workspace and usually spends credits. That includes reading a single page and mapping a sitemap.&lt;/p&gt;

&lt;p&gt;So if the goal is to give Claude or Cursor the web, tick &lt;strong&gt;Also allow changes&lt;/strong&gt; when you approve. If you only want the assistant to query crawls you have already run, leave it off. A tool called without the right access answers &lt;code&gt;{"code": "read_only"}&lt;/code&gt; and says what to do about it; nothing fails silently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: ask for a page
&lt;/h2&gt;

&lt;p&gt;Now ask in plain English. Two prompts are enough to see the two tools you will use most.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"How many pages does the FastAPI docs site declare, and which are in the security tutorial?"&lt;/strong&gt; The assistant calls &lt;code&gt;map_site&lt;/code&gt;, which reads a site's sitemaps without fetching any page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Read the first one and summarise it."&lt;/strong&gt; The assistant calls &lt;code&gt;scrape_urls&lt;/code&gt;, which returns the page as Markdown.&lt;/p&gt;

&lt;h3&gt;
  
  
  One real run, with numbers
&lt;/h3&gt;

&lt;p&gt;We ran exactly that through the hosted server on 12 November 2026. Results as they came back:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Call&lt;/th&gt;
&lt;th&gt;What came back&lt;/th&gt;
&lt;th&gt;Credits&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;map_site&lt;/code&gt; on &lt;code&gt;fastapi.tiangolo.com&lt;/code&gt;, filtered to &lt;code&gt;/tutorial/security/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;153 URLs declared in 1 sitemap file; 5 under &lt;code&gt;/tutorial/security/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;scrape_urls&lt;/code&gt; on &lt;code&gt;/tutorial/security/first-steps/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;2,291 words; 127,298 bytes of HTML reduced to 10,400 bytes of Markdown; plain fetch, verdict &lt;code&gt;ok&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The size of the site, the section, and one page read&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two details in that table are worth a second look. The map cost 1 credit because it is charged per sitemap file, not per URL, so learning the size of a 153-page site costs the same as learning the size of a 15,000-page one that fits in one file. And the Markdown is about 8% of the HTML by size. That matters inside a chat: the assistant's context holds the content of the page, not its navigation, sponsor banners and script tags.&lt;/p&gt;

&lt;p&gt;The same two calls from a script, with the Python SDK:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install mesharc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;mesharc&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;

&lt;span class="n"&gt;arc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# reads MESHARC_API_KEY&lt;/span&gt;

&lt;span class="n"&gt;details&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map_details&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://fastapi.tiangolo.com/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;search&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"/tutorial/security/"&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;details&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"totals"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"creditsUsed"&lt;/span&gt;&lt;span class="p"&gt;]&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;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scrape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://fastapi.tiangolo.com/tutorial/security/first-steps/"&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;page&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"verdict"&lt;/span&gt;&lt;span class="p"&gt;]&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="s2"&gt;"credits"&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;page&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"markdown"&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;500&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;A tool call through MCP is an ordinary authenticated request, so the credits, limits and rate are identical either way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Beyond one page: watch a site
&lt;/h2&gt;

&lt;p&gt;Reading a page is where most web MCP servers stop. The larger group of MeshArc's tools is for a site you come back to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;crawl_site&lt;/code&gt; crawls a site once, to a limit and depth, with include and exclude globs.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;create_project&lt;/code&gt; turns a seed URL into a watched project with a schedule: manual, hourly, daily or weekly.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;start_run&lt;/code&gt; crawls it now, or only the pages you list.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;get_changes&lt;/code&gt; lists the pages added, modified and removed since the run before.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;list_pages&lt;/code&gt; searches the stored pages by word, quoted phrase or CSS selector.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The MCP page shows a conversation of this kind as it ran. Asked to "set up a project that only scrapes the blog, weekly", the assistant first called &lt;code&gt;get_project&lt;/code&gt; with no project, which returns every setting it may set. It then mapped the site, found the blog under &lt;code&gt;/blogs/&lt;/code&gt; and not &lt;code&gt;/blog/&lt;/code&gt;, and created the project with &lt;code&gt;include_paths&lt;/code&gt; set to &lt;code&gt;["/blogs/*"]&lt;/code&gt;. The first run read 30 blog pages and nothing else.&lt;/p&gt;

&lt;p&gt;Setting names are exact. A guessed key such as &lt;code&gt;includePaths&lt;/code&gt; is refused with its name, so the assistant corrects itself and does not go on believing a project is configured when it is not. The full list is on the &lt;a href="https://mesharc.dev/docs/configuration?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=web-scraping-mcp-claude-cursor" rel="noopener noreferrer"&gt;configuration page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Reading what is stored is free. &lt;code&gt;list_projects&lt;/code&gt;, &lt;code&gt;list_runs&lt;/code&gt;, &lt;code&gt;list_pages&lt;/code&gt;, &lt;code&gt;get_changes&lt;/code&gt; and &lt;code&gt;get_job&lt;/code&gt; cost 0 credits, so "what changed on the docs since Monday?" costs nothing to ask as often as you like. If the pages are feeding a retrieval index, &lt;a href="https://mesharc.dev/blog/keep-rag-knowledge-base-fresh?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=web-scraping-mcp-claude-cursor" rel="noopener noreferrer"&gt;how to keep a RAG knowledge base fresh&lt;/a&gt; covers the other half, and the &lt;a href="https://mesharc.dev/use-cases/rag-pipeline?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=web-scraping-mcp-claude-cursor" rel="noopener noreferrer"&gt;RAG pipeline use case&lt;/a&gt; shows the whole route from crawl to vector store.&lt;/p&gt;

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

&lt;p&gt;There is no charge for the MCP server itself. You pay for the work, at the same rates as the API (pricing page, checked 11 November 2026):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Work&lt;/th&gt;
&lt;th&gt;Credits&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A page read by plain fetch&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A page that needs a real browser&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A sitemap file read by &lt;code&gt;map_site&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A page the site refused, a 404 or a 410&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Listing projects, runs, pages and changes&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On the Growth plan ($99 a month, 500,000 credits) a plain page works out at $0.20 per 1,000. The free plan's 1,000 credits cover a lot of chat-sized questions: the run above used 2. Every response states what it cost. Full rates are on &lt;a href="https://mesharc.dev/pricing?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=web-scraping-mcp-claude-cursor" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run it locally instead
&lt;/h2&gt;

&lt;p&gt;Some teams do not connect hosted apps, or want the server to hold a narrowly scoped key. The server ships in the Python package (Python 3.10 or newer) and speaks stdio:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install &lt;span class="s2"&gt;"mesharc[mcp]"&lt;/span&gt;
claude mcp add mesharc -e &lt;span class="nv"&gt;MESHARC_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;mesharc_... -- mesharc-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For Claude Desktop or Cursor, the same thing as a config entry:&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;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"mesharc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"mesharc-mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"MESHARC_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"mesharc_..."&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make the key under &lt;strong&gt;Settings → API keys&lt;/strong&gt;. A &lt;code&gt;read&lt;/code&gt; key lets the assistant look at what is stored; &lt;code&gt;write&lt;/code&gt; lets it fetch and run projects. A key can also be limited to named projects, and given an expiry. One difference from hosted: deleting a project needs an admin key, which a connected app never holds, so &lt;code&gt;delete_project&lt;/code&gt; only works locally.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it will not do
&lt;/h2&gt;

&lt;p&gt;Better to know before the assistant finds out mid-conversation.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Limit&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Pages behind a sign-in&lt;/td&gt;
&lt;td&gt;The crawler reads what a visitor can see. A login wall comes back as blocked, at 0 credits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Checking a page every minute&lt;/td&gt;
&lt;td&gt;Schedules are hourly at the finest. &lt;code&gt;start_run&lt;/code&gt; with the pages listed is the on-demand check&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A 5,000-page crawl inside one chat turn&lt;/td&gt;
&lt;td&gt;Hosted, a tool that would hold the connection open hands back a job after 45 seconds; &lt;code&gt;get_job&lt;/code&gt; picks it up. Start a big site as a project and read it back with &lt;code&gt;list_pages&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A very long page in full&lt;/td&gt;
&lt;td&gt;One page asked for on its own is capped at 12,000 characters in the tool's answer. The API returns the whole page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A read-only connection that fetches&lt;/td&gt;
&lt;td&gt;Refused with &lt;code&gt;read_only&lt;/code&gt; until you reconnect with changes allowed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;More than the plan allows&lt;/td&gt;
&lt;td&gt;The same credits and limits as a script, and the same 402 when they run out&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If all you need is one page fetched on demand and never revisited, a single-purpose fetch tool is less to set up, and your assistant may already have one built in. This server earns its place when the assistant should remember a site and tell you what moved.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Add &lt;code&gt;https://mcp.mesharc.dev/mcp&lt;/code&gt; as a connector in Claude, with &lt;code&gt;claude mcp add --transport http&lt;/code&gt; in Claude Code, or in &lt;code&gt;mcp.json&lt;/code&gt; in Cursor.&lt;/li&gt;
&lt;li&gt;Sign in and approve. Hosted server: no key to copy. Tick &lt;strong&gt;Also allow changes&lt;/strong&gt; if the assistant should fetch pages.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;map_site&lt;/code&gt; sizes a site for 1 credit per sitemap file; &lt;code&gt;scrape_urls&lt;/code&gt; reads a page for 1 credit by plain fetch or 4 with a browser.&lt;/li&gt;
&lt;li&gt;Projects, runs and &lt;code&gt;get_changes&lt;/code&gt; turn "read this page" into "tell me what changed".&lt;/li&gt;
&lt;li&gt;Refused pages, 404s and reads of stored data cost nothing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try a URL in the &lt;a href="https://mesharc.dev/playground?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=web-scraping-mcp-claude-cursor" rel="noopener noreferrer"&gt;playground&lt;/a&gt; to see what the assistant will get back from it, or &lt;a href="https://mesharc.dev/signup?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=web-scraping-mcp-claude-cursor" rel="noopener noreferrer"&gt;start free&lt;/a&gt; with 1,000 credits and no card, then paste the server URL into your assistant.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://mesharc.dev/blog/web-scraping-mcp-claude-cursor?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=web-scraping-mcp-claude-cursor" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>webscraping</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Best web scraping APIs in 2026, priced per 1,000 successful pages</title>
      <dc:creator>Sid Mishra</dc:creator>
      <pubDate>Mon, 16 Nov 2026 06:54:35 +0000</pubDate>
      <link>https://dev.to/sid_mishra/best-web-scraping-apis-in-2026-priced-per-1000-successful-pages-2a36</link>
      <guid>https://dev.to/sid_mishra/best-web-scraping-apis-in-2026-priced-per-1000-successful-pages-2a36</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Updated 26 November 2026:&lt;/strong&gt; prices have been re-checked and several changed (Crawl4AI Cloud is now the cheapest plain page). The current table is on &lt;a href="https://mesharc.dev/blog/best-web-scraping-apis-2026?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=best-web-scraping-apis-2026-update" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I build MeshArc, a scraping API, and the question I get most from other developers is "which one is cheapest?" The trouble is that every scraping API prices in credits, and no two vendors' credits mean the same thing: one credit buys a plain HTTP fetch at one vendor, a rendered page at another, and a 404 at a third. So "100,000 credits for $99" tells you almost nothing until you know what a page costs at each rung, and which responses you pay for that you can't use.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update, 16 November 2026:&lt;/strong&gt; the table below was checked on 4 November. Since then Crawl4AI Cloud prices a plain page at 0.1 credit and a real browser page at 0.5 on its $99 Builder plan (125,000 credits), which is about &lt;strong&gt;$0.08 per 1,000 plain pages&lt;/strong&gt; and $0.40 per 1,000 browser pages (checked on its pricing page on 16 November 2026). That makes Crawl4AI Cloud the cheapest plain page of the vendors here, ahead of ScrapingBee and Scrapfly at $0.10. Crawl4AI Cloud also says failed calls are free. The rest of the table is as checked on 4 November.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This post does the arithmetic for eight APIs at the plan closest to $100 a month. The unit is the one that matters to a developer: &lt;strong&gt;dollars per 1,000 pages you can actually use&lt;/strong&gt;. Every competitor figure was read off the vendor's own pricing page or docs on 4 November 2026. MeshArc is our product; where another API is cheaper or better, the table says so.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the numbers are worked out
&lt;/h2&gt;

&lt;p&gt;The formula is the same for every row:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cost per 1,000 pages = plan price ÷ included credits × 1,000 × credits per page
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three choices keep it fair:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Monthly billing, not annual.&lt;/strong&gt; Annual prices are lower (often two months free) but they are a different commitment. Where a vendor quotes annual-only figures, the monthly price is used here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The plan nearest $100.&lt;/strong&gt; Per-credit prices fall on bigger plans for everyone, MeshArc included.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rungs, not marketing tiers.&lt;/strong&gt; "Plain" is an HTTP fetch, "rendered" is a real browser running JavaScript, and "residential" is a rendered page through a residential or premium proxy, which is what a protected site usually needs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The table
&lt;/h2&gt;

&lt;p&gt;Checked on 4 November 2026. Dollars per 1,000 pages, monthly billing. (Crawl4AI Cloud's rates have changed since; see the update at the top.)&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;API · plan&lt;/th&gt;
&lt;th&gt;Plan price / credits&lt;/th&gt;
&lt;th&gt;Plain&lt;/th&gt;
&lt;th&gt;Rendered&lt;/th&gt;
&lt;th&gt;Rendered + residential&lt;/th&gt;
&lt;th&gt;404s billed?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MeshArc · Growth&lt;/td&gt;
&lt;td&gt;$99 / 500k&lt;/td&gt;
&lt;td&gt;$0.20&lt;/td&gt;
&lt;td&gt;$0.79&lt;/td&gt;
&lt;td&gt;$3.17&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Firecrawl · Standard&lt;/td&gt;
&lt;td&gt;$99 / 100k&lt;/td&gt;
&lt;td&gt;$0.99&lt;/td&gt;
&lt;td&gt;$0.99&lt;/td&gt;
&lt;td&gt;Not on pricing page&lt;/td&gt;
&lt;td&gt;Yes (and 403s)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ScrapingBee · Startup&lt;/td&gt;
&lt;td&gt;$99 / 1M&lt;/td&gt;
&lt;td&gt;$0.10&lt;/td&gt;
&lt;td&gt;$0.50&lt;/td&gt;
&lt;td&gt;$2.48&lt;/td&gt;
&lt;td&gt;Yes (and 410s)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZenRows · Launch&lt;/td&gt;
&lt;td&gt;$99 / 500k&lt;/td&gt;
&lt;td&gt;$0.20&lt;/td&gt;
&lt;td&gt;$0.99&lt;/td&gt;
&lt;td&gt;$4.95&lt;/td&gt;
&lt;td&gt;Yes (and 410s)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scrapfly · Pro&lt;/td&gt;
&lt;td&gt;$100 / 1M&lt;/td&gt;
&lt;td&gt;$0.10&lt;/td&gt;
&lt;td&gt;$0.50&lt;/td&gt;
&lt;td&gt;$2.50 residential; stack not stated&lt;/td&gt;
&lt;td&gt;Yes (and 410s)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ScraperAPI · Startup&lt;/td&gt;
&lt;td&gt;$149 / 1M&lt;/td&gt;
&lt;td&gt;$0.15&lt;/td&gt;
&lt;td&gt;$1.49&lt;/td&gt;
&lt;td&gt;$3.73&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Crawl4AI Cloud · Builder&lt;/td&gt;
&lt;td&gt;$99 / 125k&lt;/td&gt;
&lt;td&gt;$0.40&lt;/td&gt;
&lt;td&gt;$0.79&lt;/td&gt;
&lt;td&gt;Not listed ("hard site" $1.58)&lt;/td&gt;
&lt;td&gt;Not stated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bright Data · Unlocker PAYG&lt;/td&gt;
&lt;td&gt;$1.50 per 1k requests&lt;/td&gt;
&lt;td&gt;$1.50&lt;/td&gt;
&lt;td&gt;$1.50&lt;/td&gt;
&lt;td&gt;$1.50&lt;/td&gt;
&lt;td&gt;Success only; 404s not stated&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Where the rates come from:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MeshArc:&lt;/strong&gt; 1 credit plain fetch, 4 rendered, 16 rendered on a residential IP (including 1 MB; 4 more per started MB). Refused pages, 404s, 410s, robots-blocked URLs and, with incremental crawls on, pages the sitemap marks unchanged are free (&lt;a href="https://mesharc.dev/pricing?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=best-web-scraping-apis-2026" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Firecrawl:&lt;/strong&gt; 1 credit per scrape; JSON, question and highlight formats add 4 credits, so a structured page is $4.95. Its pricing page says a page that returns 403 or 404 "is still returned to you and costs 1 credit", and Standard credits do not roll over. A walkthrough is in &lt;a href="https://mesharc.dev/blog/firecrawl-pricing-explained?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=best-web-scraping-apis-2026" rel="noopener noreferrer"&gt;Firecrawl pricing explained&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ScrapingBee:&lt;/strong&gt; 1 credit plain, 5 with JavaScript, 10 premium proxy, 25 premium with JavaScript. Its FAQ: "We only charge for successful requests, i.e returning with a 200, 404 or 410 status code." Credits are valid for one month.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ZenRows:&lt;/strong&gt; 1, 5, 10 and 25 credits for basic, JS, premium and JS + premium. Failed requests are free, but 404 and 410 count as successful and are billed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scrapfly:&lt;/strong&gt; 1 credit base, 5 for browser rendering, 25 for residential. The page says adding features "increases the multiplier" but does not state the stacked total; its own code sample shows 30 credits for an unblocker request, which is $3.00 if that is the stack. Other failed scrapes are free, but its billing docs bill a 404 or 410 as a regular scrape (checked 30 November 2026).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ScraperAPI:&lt;/strong&gt; 1 credit standard, 10 rendered, 25 rendered with premium proxies, 75 with ultra premium. Bot-protected sites (Cloudflare, DataDome, PerimeterX) add 10 credits when bypassed. Its docs charge for 200 and 404.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Crawl4AI Cloud:&lt;/strong&gt; 0.5 credits for a normal page, 1 for a real browser, 2 for a "hard site". The pricing page does not mention residential proxies or failed requests. (As of 16 November: 0.1 plain, 0.5 browser, 2 hard site, and failed calls are free.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bright Data Web Unlocker:&lt;/strong&gt; a flat $1.50 per 1,000 requests pay-as-you-go ($1.30 on the $499 Scale plan), rendering and captcha handling included, "pay only for success".&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What the table says, plainly
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;On price per plain page, MeshArc is not the cheapest.&lt;/strong&gt; ScrapingBee and Scrapfly are half the price at $0.10, and ScraperAPI is cheaper too; since 16 November, Crawl4AI Cloud is cheaper still at about $0.08. If you read pages once, from easy sites, those are the better buy and we would rather you knew.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;On rendered pages,&lt;/strong&gt; ScrapingBee and Scrapfly lead again at $0.50; MeshArc and Crawl4AI Cloud are at $0.79.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;On residential + render,&lt;/strong&gt; ScrapingBee ($2.48) and Scrapfly (from $2.50) are below MeshArc ($3.17); ZenRows ($4.95) and ScraperAPI ($3.73) are above it. Bright Data's flat $1.50 beats everyone here, and it is the reverse on plain pages, where you pay $1.50 for what costs $0.10 elsewhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Successful" changes the ranking: 404s and refusals
&lt;/h2&gt;

&lt;p&gt;The headline rate assumes every page you pay for is one you wanted. Real URL lists are not like that. An old sitemap, a product feed with delisted items or a link crawl all produce dead URLs.&lt;/p&gt;

&lt;p&gt;Take 1,000 URLs from a sitemap where 80 are now 404s, all plain pages:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;API&lt;/th&gt;
&lt;th&gt;Billed pages&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;th&gt;Per 1,000 usable pages&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MeshArc Growth&lt;/td&gt;
&lt;td&gt;920&lt;/td&gt;
&lt;td&gt;$0.18&lt;/td&gt;
&lt;td&gt;$0.20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ScrapingBee Startup&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;$0.10&lt;/td&gt;
&lt;td&gt;$0.11&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZenRows Launch&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;$0.20&lt;/td&gt;
&lt;td&gt;$0.22&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Firecrawl Standard&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;$0.99&lt;/td&gt;
&lt;td&gt;$1.08&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scrapfly Pro&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;$0.10&lt;/td&gt;
&lt;td&gt;$0.11&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The 80 dead URLs are an illustration, not a measurement; use your own ratio. The lesson holds either way: a vendor that bills 404s gets dearer exactly as your URL list ages, and the effect is largest on the vendors with the highest per-page rate.&lt;/p&gt;

&lt;p&gt;The second leak is refusals. Most vendors here say they do not bill a failed request (Crawl4AI's pricing page did not say either way on 4 November; on 16 November it says failed calls are free), so this is close to parity, not an advantage. The difference is what happens &lt;em&gt;before&lt;/em&gt; the refusal: a cheapest-first API (MeshArc, ScrapingBee and ZenRows all escalate) may try several rungs on a page that never loads. MeshArc does not bill a refused page "whatever the ladder spent finding out", and a page that would need a rung above your &lt;code&gt;maxCredits&lt;/code&gt; returns &lt;code&gt;TIER_LIMIT&lt;/code&gt; at zero cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  Walled sites: where per-page rates mislead most
&lt;/h2&gt;

&lt;p&gt;A Cloudflare-protected site usually needs a real browser or a premium proxy on every request. Most APIs charge that rate for every page of the site:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ScrapingBee premium + JS: $2.48 per 1,000.&lt;/li&gt;
&lt;li&gt;ZenRows JS + premium: $4.95.&lt;/li&gt;
&lt;li&gt;ScraperAPI standard plus the bot-protection surcharge (11 credits): $1.64.&lt;/li&gt;
&lt;li&gt;Crawl4AI "hard site": $1.58. Bright Data: $1.50.&lt;/li&gt;
&lt;li&gt;Scrapfly lists its Unblocker at the 5-credit browser rate ($0.50), though its own code sample shows 30 credits; test before you budget.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MeshArc renders once to earn the session cookies, then reads the rest of the site over plain HTTP with that session at 2 credits a page: $0.40 per 1,000 on Growth. On a real run, a 100-page Cloudflare site cost 202 credits. The mechanism, and where it does not work, is in &lt;a href="https://mesharc.dev/blog/cloudflare-scraping-session-rung?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=best-web-scraping-apis-2026" rel="noopener noreferrer"&gt;the session rung explained&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure it on your own URLs
&lt;/h2&gt;

&lt;p&gt;Published rates are a starting point. The number that matters is credits spent divided by pages you could use, on your sites. With MeshArc that is a few lines, because every page in the response carries its verdict and its cost:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install mesharc
&lt;span class="c"&gt;# or: npm install mesharc&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;mesharc&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;

&lt;span class="n"&gt;arc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# reads MESHARC_API_KEY&lt;/span&gt;

&lt;span class="n"&gt;urls&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;u&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="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="k"&gt;in&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;"urls.txt"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;u&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="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;batch&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scrape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"concurrency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;pages&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;batch&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pages"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;usable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;pages&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"verdict"&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="n"&gt;credits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"credits"&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;p&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;usd&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;credits&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;99&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;500_000&lt;/span&gt;          &lt;span class="c1"&gt;# Growth: $99 for 500,000 credits&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(usable)}/{len(pages)} usable, {credits} credits"&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;"${usd / max(len(usable), 1) * 1000:.2f} per 1,000 usable pages"&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;p&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"verdict"&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;p&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="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"httpStatus"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"verdict"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"credits"&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;Do the same with any other vendor's response headers or dashboard, and compare like with like. On one 20-minute run across 15 real sites, MeshArc returned 102 usable pages out of 112.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which API for which job
&lt;/h2&gt;

&lt;p&gt;Price per page is one axis. Pick on the job:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One-off reads of easy sites at volume:&lt;/strong&gt; Crawl4AI Cloud, ScrapingBee or Scrapfly. Cheapest plain pages in the table (Crawl4AI Cloud since 16 November), and ScrapingBee and Scrapfly the cheapest rendered ones on 4 November.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard sites at a flat, predictable price, plus ready-made datasets:&lt;/strong&gt; Bright Data. $1.50 regardless of rung, and a large catalogue of pre-built scrapers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Per-site parsers for Amazon, Google and LinkedIn:&lt;/strong&gt; ScraperAPI prices these as named endpoints (5, 25 and 30 credits).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-hosting:&lt;/strong&gt; Crawl4AI and Firecrawl are both open source; you pay in servers and proxies instead of credits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent tooling and data providers:&lt;/strong&gt; Firecrawl has the largest ecosystem, and its &lt;code&gt;/monitor&lt;/code&gt; endpoint covers pages or whole sites. Our &lt;a href="https://mesharc.dev/blog/firecrawl-monitor-vs-mesharc-change-detection?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=best-web-scraping-apis-2026" rel="noopener noreferrer"&gt;honest comparison&lt;/a&gt; goes into the detail.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sites you read more than once:&lt;/strong&gt; this is MeshArc's job. The rung that worked is remembered per site, so the second crawl starts cheaper; every re-crawl is diffed page by page and field by field; unchanged pages carried forward from the sitemap cost nothing; and results land in warehouses, databases, vector stores, object stores and streams (S3, BigQuery, Snowflake, Postgres, Pinecone, Qdrant, Kafka and more), included on every plan. None of the ~$100 scraping APIs above writes to a warehouse or vector store. Examples: &lt;a href="https://mesharc.dev/blog/website-change-monitoring-api?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=best-web-scraping-apis-2026" rel="noopener noreferrer"&gt;website change monitoring to Slack and Postgres&lt;/a&gt; and &lt;a href="https://mesharc.dev/blog/crawl-website-to-bigquery-snowflake?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=best-web-scraping-apis-2026" rel="noopener noreferrer"&gt;a scheduled crawl into BigQuery or Snowflake&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Things MeshArc does not do, so you can rule it out quickly: it does not solve hCaptcha, it offers no hosted interactive browser sessions, and it has no SOC 2, ISO 27001 or SSO.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Compare dollars per 1,000 usable pages, not credits.&lt;/li&gt;
&lt;li&gt;Cheapest plain page at ~$100: Crawl4AI Cloud (about $0.08, checked 16 November), then ScrapingBee and Scrapfly ($0.10). Cheapest rendered page on 4 November: ScrapingBee and Scrapfly ($0.50).&lt;/li&gt;
&lt;li&gt;Firecrawl, ScrapingBee, ZenRows, Scrapfly and ScraperAPI bill 404s; MeshArc does not.&lt;/li&gt;
&lt;li&gt;On walled sites, the price per page you will really pay is the protected rate on every page, unless the API reuses a session: MeshArc reads them at $0.40 per 1,000 after one render.&lt;/li&gt;
&lt;li&gt;For sites you read more than once, memory, diffs and destinations matter more than a tenth of a cent.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full plan-by-plan figures are on &lt;a href="https://mesharc.dev/pricing?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=best-web-scraping-apis-2026" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;, and the use cases are on &lt;a href="https://mesharc.dev/use-cases?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=best-web-scraping-apis-2026" rel="noopener noreferrer"&gt;use cases&lt;/a&gt;. Paste one of your own URLs into the &lt;a href="https://mesharc.dev/playground?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=best-web-scraping-apis-2026" rel="noopener noreferrer"&gt;playground&lt;/a&gt; to see its verdict, rung and cost, or &lt;a href="https://mesharc.dev/signup?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=best-web-scraping-apis-2026" rel="noopener noreferrer"&gt;start free&lt;/a&gt; with 1,000 credits and no card.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://mesharc.dev/blog/best-web-scraping-apis-2026?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w47-ladder&amp;amp;utm_content=best-web-scraping-apis-2026" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webscraping</category>
      <category>api</category>
      <category>python</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Scrape a Cloudflare-protected site for $0.40 per 1,000 pages: the session rung</title>
      <dc:creator>Sid Mishra</dc:creator>
      <pubDate>Mon, 09 Nov 2026 19:30:00 +0000</pubDate>
      <link>https://dev.to/sid_mishra/scrape-a-cloudflare-protected-site-for-040-per-1000-pages-the-session-rung-887</link>
      <guid>https://dev.to/sid_mishra/scrape-a-cloudflare-protected-site-for-040-per-1000-pages-the-session-rung-887</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Updated 26 November 2026:&lt;/strong&gt; this guide now covers how Cloudflare detects scrapers, its 1xxx error codes and why DIY tools break, with prices re-checked. The current version is on &lt;a href="https://mesharc.dev/blog/cloudflare-scraping-session-rung?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=cloudflare-scraping-session-rung-update" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I kept watching scraping bills grow faster than page counts, and the culprit was almost always the same: a Cloudflare "Just a moment…" page, answered by sending every single page through a real browser, often from a residential IP, at the premium rate. So when I built MeshArc, I wanted a Cloudflare-walled site to cost a browser render once, not ten thousand times. Here's how that works, what it costs, and where it doesn't help.&lt;/p&gt;

&lt;p&gt;The short answer: one real browser waits out the challenge once, earns the site's session, and every page after it is read with plain HTTP carrying those cookies. That is the second rung of the ladder, "fetch with session", and it costs 2 credits a page. On the Growth plan that is $0.40 per 1,000 pages.&lt;/p&gt;

&lt;p&gt;This post explains how the rung works, what it costs at each plan, where it stops working, and how it compares with the alternatives, with every competitor figure checked on 26 October 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  The wall: what a Cloudflare managed challenge actually asks for
&lt;/h2&gt;

&lt;p&gt;A managed challenge is not a captcha you have to solve. It is an interstitial that runs JavaScript in the visitor's browser, decides the visitor looks like a browser, and sets a clearance cookie. Plain HTTP clients fail it because they never run the script. A headless browser usually passes it, because it does.&lt;/p&gt;

&lt;p&gt;That gives you two expensive options and one cheap one:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Render every page.&lt;/strong&gt; Correct, slow, and priced at the render rate on every page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Render every page from a residential IP.&lt;/strong&gt; Also correct, slower, and priced at the residential rate on every page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Render once, then reuse the clearance.&lt;/strong&gt; The browser does the one thing only a browser can do, and HTTP does the rest.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;MeshArc does the third automatically. You do not configure a session, store cookies or write retry logic.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the session rung works
&lt;/h2&gt;

&lt;p&gt;Every page starts at the cheapest method and climbs one rung per refusal, never two. On a Cloudflare-protected site the first page goes like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Fetch (1 credit)&lt;/strong&gt; — plain HTTP. Cloudflare answers with a challenge. The page is refused, so this attempt is free.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Render (4 credits)&lt;/strong&gt; — a real Chrome loads the page and waits the challenge out. No solver is involved. On MeshArc's recorded run this took about 6 seconds, and 10 out of 10 Cloudflare managed challenges were passed, direct and via a residential exit.&lt;/li&gt;
&lt;li&gt;The browser now holds the site's session. From the next page onward the request is &lt;strong&gt;fetch with session (2 credits)&lt;/strong&gt;: the same HTTP request, carrying the cookies the browser earned.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The rung that worked is remembered for the site across runs, so next week's crawl starts at the session rung rather than climbing from the bottom again.&lt;/p&gt;

&lt;p&gt;The arithmetic for a 100-page Cloudflare site, from the &lt;a href="https://mesharc.dev/docs/billing" rel="noopener noreferrer"&gt;billing docs&lt;/a&gt;: one render plus 99 session reads, &lt;strong&gt;4 + 198 = 202 credits&lt;/strong&gt;. A render-every-page approach costs 400 credits for the same 100 pages on MeshArc's own ladder, so the session rung roughly halves it. Against residential rendering (16 credits a page, 1,600 for the site) it is about an eighth.&lt;/p&gt;

&lt;h2&gt;
  
  
  What 1,000 pages cost, plan by plan
&lt;/h2&gt;

&lt;p&gt;For a 1,000-page Cloudflare site read with one render and 999 session reads, the bill is 4 + 1,998 = &lt;strong&gt;2,002 credits&lt;/strong&gt;. Converted at each plan's included-credit rate from &lt;a href="https://mesharc.dev/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;:&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;Price&lt;/th&gt;
&lt;th&gt;Credits&lt;/th&gt;
&lt;th&gt;Cost of 2,002 credits&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;1,000 once&lt;/td&gt;
&lt;td&gt;Covers about 499 pages of such a site&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Starter&lt;/td&gt;
&lt;td&gt;$29/mo&lt;/td&gt;
&lt;td&gt;100,000&lt;/td&gt;
&lt;td&gt;$0.58&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Growth&lt;/td&gt;
&lt;td&gt;$99/mo&lt;/td&gt;
&lt;td&gt;500,000&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0.40&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scale&lt;/td&gt;
&lt;td&gt;$349/mo&lt;/td&gt;
&lt;td&gt;2,500,000&lt;/td&gt;
&lt;td&gt;$0.28&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two details matter here. First, fetch with session is on every plan and render is on Free and up, so a site that only needs a managed challenge waited out is readable on the free plan. Residential rendering (16 credits) needs Growth or higher. Second, refused pages are free "whatever the ladder spent finding out", which is why the failed plain fetch on page one does not appear in the sum.&lt;/p&gt;

&lt;h2&gt;
  
  
  How this compares (checked on 26 October 2026)
&lt;/h2&gt;

&lt;p&gt;Per 1,000 pages of a walled site, at roughly the $99 price point, using each vendor's live pricing page and docs:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Vendor and plan&lt;/th&gt;
&lt;th&gt;How a walled page is read&lt;/th&gt;
&lt;th&gt;Per 1,000 pages&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MeshArc Growth, $99 / 500k credits&lt;/td&gt;
&lt;td&gt;One render, then session at 2 credits&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0.40&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Firecrawl Standard, $83/mo annual or $99 monthly / 100k credits&lt;/td&gt;
&lt;td&gt;1 credit a page, enhanced proxy included&lt;/td&gt;
&lt;td&gt;$0.83 annual, $0.99 monthly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZenRows Launch, $99 / 500k credits&lt;/td&gt;
&lt;td&gt;JS rendering 5 credits; JS + premium proxy 25&lt;/td&gt;
&lt;td&gt;$0.99 rendered; $4.95 rendered + premium&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ScrapingBee Startup, $99 / 1M credits&lt;/td&gt;
&lt;td&gt;Premium proxy + JS 25 credits; stealth proxy 75&lt;/td&gt;
&lt;td&gt;$2.48 premium; $7.43 stealth&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Where the others are better, said plainly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Firecrawl's price is flat and simple.&lt;/strong&gt; One credit a page, and its docs say enhanced proxy and auto-escalated retries carry no surcharge. If a site needs heavy treatment on every page, a flat $0.83 can beat a ladder that has to climb. The trade-off is that Firecrawl bills a page that comes back 403 or 404 at 1 credit; MeshArc bills neither. We worked through that in &lt;a href="https://mesharc.dev/blog/firecrawl-pricing-explained" rel="noopener noreferrer"&gt;Firecrawl pricing explained&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ScrapingBee and ZenRows are cheaper for plain pages.&lt;/strong&gt; ScrapingBee's Startup plan works out at about $0.10 per 1,000 one-credit requests, against MeshArc's $0.20. If the site is not walled, the session rung is irrelevant and their base rate wins.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ScrapingBee's Auto-Mode&lt;/strong&gt; also escalates cheapest-first and, per its docs, costs 0 credits when every configuration fails. MeshArc is not alone in escalating. What it adds is replaying the earned session at a lower price instead of paying the premium rate on every page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full side-by-side, with the dated snapshot, is on &lt;a href="https://mesharc.dev/compare" rel="noopener noreferrer"&gt;compare&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running it: a crawl that stays on the cheap rung
&lt;/h2&gt;

&lt;p&gt;Install the client:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install mesharc
&lt;span class="c"&gt;# or: npm install mesharc&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then crawl, cap what any one page may cost, and count which engine read each page:&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;collections&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Counter&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;mesharc&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;

&lt;span class="n"&gt;arc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# reads MESHARC_API_KEY&lt;/span&gt;

&lt;span class="n"&gt;job&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;crawl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://www.example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;            &lt;span class="c1"&gt;# a Cloudflare-protected site&lt;/span&gt;
    &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                            &lt;span class="c1"&gt;# page budget&lt;/span&gt;
    &lt;span class="n"&gt;crawlMode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"sitemap_first"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;             &lt;span class="c1"&gt;# declared pages first, then links&lt;/span&gt;
    &lt;span class="n"&gt;maxTier&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"browser"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                     &lt;span class="c1"&gt;# never climb to residential&lt;/span&gt;
    &lt;span class="n"&gt;scrapeOptions&lt;/span&gt;&lt;span class="o"&gt;=&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;"markdown"&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;config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"max_credits_per_page"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;         &lt;span class="c1"&gt;# anything dearer is TIER_LIMIT, at 0&lt;/span&gt;
        &lt;span class="s2"&gt;"crawl_delay_ms"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;            &lt;span class="c1"&gt;# the default; be a polite visitor&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;engines&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Counter&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;page&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;job&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pages&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;engines&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="s2"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"errorCode"&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;page&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="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"verdict"&lt;/span&gt;&lt;span class="p"&gt;]&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="s2"&gt;"errorCode"&lt;/span&gt;&lt;span class="p"&gt;]&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="s2"&gt;"credits"&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;engines&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                       &lt;span class="c1"&gt;# expect one "browser", the rest "minted"&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;job&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;envelope&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"creditsUsed"&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;&lt;code&gt;method&lt;/code&gt; is the engine that read the page: &lt;code&gt;browser&lt;/code&gt; for the render, &lt;code&gt;minted&lt;/code&gt; for the session rung (the docs also call it &lt;code&gt;http-jar&lt;/code&gt;). &lt;code&gt;credits&lt;/code&gt; is what that page cost, and &lt;code&gt;creditsUsed&lt;/code&gt; on the job envelope is the running total, so you can check the 4 + 2n arithmetic against your own run rather than taking ours on trust.&lt;/p&gt;

&lt;p&gt;Two settings do the guarding. &lt;code&gt;maxTier="browser"&lt;/code&gt; stops a refused page climbing to the residential, solver or unlocked rungs. &lt;code&gt;max_credits_per_page&lt;/code&gt; is the finer cap: engines dearer than it are never tried, and a page only they could read is recorded as &lt;code&gt;TIER_LIMIT&lt;/code&gt; and costs nothing. You find out that a page needed more, without paying for it.&lt;/p&gt;

&lt;p&gt;If the site turns out to be worth watching, keep the crawl as a project and every later run is diffed against this one:&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="n"&gt;project&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;job&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;keep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Walled site"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"weekly"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Where the session rung does not help
&lt;/h2&gt;

&lt;p&gt;Be clear about the limits before you plan a budget around $0.40:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sites that challenge every request.&lt;/strong&gt; Cloudflare, not MeshArc, decides how long a clearance lasts and whether it is accepted from HTTP. If the session is refused, that page climbs again to a render at 4 credits, so the worst case is the render price, not a failure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sites that refuse datacenter IPs outright.&lt;/strong&gt; Those need the residential rung at 16 credits a page (1 MB included, 4 credits per extra MB), which is on Growth and Scale only. The session rung cannot fix an IP reputation problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interactive captchas.&lt;/strong&gt; Turnstile or reCAPTCHA widgets on forms are a separate, opt-in feature (&lt;code&gt;solve_captcha&lt;/code&gt;, 22 credits when a token is bought). hCaptcha is detected and refused: MeshArc does not sell a solver it cannot run reliably.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logged-in content.&lt;/strong&gt; A session earned from a challenge is not a login. Pages behind a sign-in need a saved login (&lt;code&gt;login_id&lt;/code&gt;); without one they are judged a &lt;code&gt;login_wall&lt;/code&gt;, not read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hosted interactive browsers.&lt;/strong&gt; If you need to click through a flow in a live browser you control, a browser-session product is the better tool.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And a note on manners: a site behind Cloudflare has usually chosen to be careful about automated traffic. Respect robots.txt (MeshArc does, and robots-blocked URLs are free because they are never fetched), keep the crawl delay sensible, and read only what you are entitled to read.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A Cloudflare managed challenge needs a browser once, not on every page.&lt;/li&gt;
&lt;li&gt;MeshArc renders once at 4 credits, then reads the rest at 2 credits with the earned session: 202 credits for 100 pages, 2,002 for 1,000.&lt;/li&gt;
&lt;li&gt;That is $0.40 per 1,000 pages on Growth, $0.28 on Scale and $0.58 on Starter, and refused pages and 404s cost nothing.&lt;/li&gt;
&lt;li&gt;Flat-rate APIs are simpler and plain-page APIs are cheaper on unwalled sites. The session rung wins where a site walls you once and then lets you in.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try it on the site that keeps walling you: paste the URL into the &lt;a href="https://mesharc.dev/playground" rel="noopener noreferrer"&gt;playground&lt;/a&gt; and see which rung read it and what it cost, or &lt;a href="https://mesharc.dev/signup" rel="noopener noreferrer"&gt;start free&lt;/a&gt; with 1,000 credits and no card, which is enough for about 499 pages of a Cloudflare site.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://mesharc.dev/blog/cloudflare-scraping-session-rung" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webscraping</category>
      <category>python</category>
      <category>api</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to keep a RAG knowledge base fresh without re-embedding everything</title>
      <dc:creator>Sid Mishra</dc:creator>
      <pubDate>Wed, 28 Oct 2026 05:50:59 +0000</pubDate>
      <link>https://dev.to/sid_mishra/how-to-keep-a-rag-knowledge-base-fresh-without-re-embedding-everything-18fa</link>
      <guid>https://dev.to/sid_mishra/how-to-keep-a-rag-knowledge-base-fresh-without-re-embedding-everything-18fa</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Updated 26 November 2026:&lt;/strong&gt; this guide now covers deleting only on a confirmed 404 or 410, holding unusually large changes for review, LlamaIndex, and upsert/delete code for Pinecone, Qdrant and pgvector. The current version is on &lt;a href="https://mesharc.dev/blog/keep-rag-knowledge-base-fresh?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=keep-rag-knowledge-base-fresh-update" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Most RAG pipelines I look at are refreshed by brute force: re-crawl the docs site every night, re-chunk everything, re-embed everything, overwrite the index. It works, eventually, but it's wasteful and it hides three bugs a nightly rebuild never fixes.&lt;/p&gt;

&lt;p&gt;Below is what actually goes stale, what a full rebuild really costs (less than you'd think in embeddings, more elsewhere), a do-it-yourself content-hash pattern you can drop into any scraper, and how we handle it in MeshArc, the crawler I'm building. The first half needs no sign-up for anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  What goes wrong when a knowledge base ages
&lt;/h2&gt;

&lt;p&gt;A stale chunk does not announce itself. It still sits close to the query in vector space, so retrieval still ranks it highly and the model still quotes it with confidence. Three failure modes are worth separating:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Stale chunks.&lt;/strong&gt; The page changed; the index holds the old wording. The assistant recommends a deprecated flag or an old price.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zombie chunks.&lt;/strong&gt; The page was deleted, but its vectors were not. Nightly &lt;em&gt;upserts&lt;/em&gt; never remove anything, so deleted pages live on indefinitely unless something deletes them on purpose.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flicker re-embeds.&lt;/strong&gt; A cookie banner, a "last updated 3 minutes ago" line or a rotating testimonial makes every page look modified on every run, so a "changed pages only" pipeline quietly turns back into a full rebuild.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There is a fourth, nastier one: &lt;strong&gt;the blocked crawl that deletes your index.&lt;/strong&gt; If the site rate-limits you halfway through a run and your pipeline treats "not seen this run" as "removed", you wipe half the knowledge base. Any deletion logic needs a guard against partial runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a full nightly rebuild costs
&lt;/h2&gt;

&lt;p&gt;Here is the arithmetic for a mid-sized documentation site. The assumptions are ours and stated so you can swap in your own:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;2,000 pages, averaging 1,200 words each.&lt;/li&gt;
&lt;li&gt;Chunks of about 350 words with a 40-word overlap, which gives roughly 4 chunks per page and 8,000 chunks in all.&lt;/li&gt;
&lt;li&gt;About 1.3 tokens per English word.&lt;/li&gt;
&lt;li&gt;OpenAI &lt;code&gt;text-embedding-3-small&lt;/code&gt; at &lt;strong&gt;$0.02 per million input tokens&lt;/strong&gt; (OpenAI's model page, checked on 23 October 2026).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is roughly 2.8 million embedded words, or 3.7 million tokens, per full rebuild: &lt;strong&gt;about $0.07&lt;/strong&gt;. Thirty nights is about &lt;strong&gt;$2.20 a month&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;So, to be fair to the brute-force approach: with a small embedding model, the embedding bill is not what hurts. A larger model, a bigger corpus or a hosted embedding service with per-request pricing changes that, but the real costs of rebuilding everything are usually elsewhere:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fetching.&lt;/strong&gt; 2,000 pages × 30 nights is 60,000 page reads a month, every one of which can be blocked, rate-limited or billed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Index writes.&lt;/strong&gt; 8,000 chunk upserts a night, most of them writing identical vectors over identical vectors. Managed vector databases tend to price writes, and self-hosted ones still pay for them in compaction and I/O.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Correctness.&lt;/strong&gt; A rebuild that overwrites by ID still leaves zombies behind, and a rebuild that drops and recreates the index has a window in which the assistant answers from nothing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The fix for all of these is the same: find out what changed, and touch only that.&lt;/p&gt;

&lt;h2&gt;
  
  
  The do-it-yourself version: hash, compare, delete deliberately
&lt;/h2&gt;

&lt;p&gt;You do not need any particular vendor for this. The pattern is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Normalise each page's text (strip boilerplate, collapse whitespace) and hash it.&lt;/li&gt;
&lt;li&gt;Compare against the hash you stored last time.&lt;/li&gt;
&lt;li&gt;Re-chunk and re-embed only pages whose hash moved; give every chunk an ID that starts with the page URL.&lt;/li&gt;
&lt;li&gt;Before adding a changed page's new chunks, delete &lt;em&gt;all&lt;/em&gt; of its old ones. The chunk count can shrink, so overwriting by ID is not enough.&lt;/li&gt;
&lt;li&gt;Delete pages that have disappeared, but only if the run reached most of the site.
&lt;/li&gt;
&lt;/ol&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;hashlib&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;

&lt;span class="no"&gt;STATE&lt;/span&gt; &lt;span class="o"&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;"hashes.json"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;normalise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;text&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;"Last updated[^\n]*"&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;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# add your own volatile lines&lt;/span&gt;
    &lt;span class="k"&gt;return&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;"\s+"&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;text&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="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;plan_refresh&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expected_urls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""pages: {url: markdown} from this run. Returns what to embed and delete."""&lt;/span&gt;
    &lt;span class="n"&gt;old&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;STATE&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_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="k"&gt;if&lt;/span&gt; &lt;span class="no"&gt;STATE&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exists&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;hashlib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;normalise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&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;hexdigest&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;u&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;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;changed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;old&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;u&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;removed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

    &lt;span class="c1"&gt;# Guard: a run that saw under 90% of the site must not delete anything.&lt;/span&gt;
    &lt;span class="k"&gt;if&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;pages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.9&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;expected_urls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;removed&lt;/span&gt; &lt;span class="o"&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;new&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;old&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;new&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;          &lt;span class="c1"&gt;# keep unseen pages' hashes for next time&lt;/span&gt;

    &lt;span class="no"&gt;STATE&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;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;new&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;changed&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;removed&lt;/span&gt;

&lt;span class="c1"&gt;# changed -&amp;gt; delete chunks with IDs starting f"{url}#", then embed and add new chunks&lt;/span&gt;
&lt;span class="c1"&gt;# removed -&amp;gt; delete chunks with IDs starting f"{url}#"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two honest caveats. First, this still fetches every page every night to compute the hashes; it saves embedding and index writes, not crawling. Second, the &lt;code&gt;normalise&lt;/code&gt; function is where the work lives. Every site has its own flicker, and you will be adding regexes for months.&lt;/p&gt;

&lt;p&gt;If you are already on LangChain, its indexing API (a record manager plus &lt;code&gt;index()&lt;/code&gt; with incremental cleanup) does the hash-and-skip part for documents you hand it. It does not fetch pages or know whether a crawl was partial, so the first and last steps above remain yours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Skipping the fetch as well: sitemap &lt;code&gt;lastmod&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Many sites publish a &lt;code&gt;lastmod&lt;/code&gt; date per URL in their sitemap. If it is trustworthy, you can skip fetching pages that have not changed at all. "If" is doing real work there: plenty of sitemaps stamp every URL with today's date, and some never update it. A sensible incremental crawler checks how many entries carry &lt;code&gt;lastmod&lt;/code&gt;, falls back to a full crawl when coverage is poor, and runs a full pass periodically anyway to catch pages whose dates lie.&lt;/p&gt;

&lt;h2&gt;
  
  
  How MeshArc does it
&lt;/h2&gt;

&lt;p&gt;This is the part where we describe our own product, so weigh it accordingly. Everything below is from &lt;a href="https://mesharc.dev/docs/configuration" rel="noopener noreferrer"&gt;our docs&lt;/a&gt; and &lt;a href="https://mesharc.dev/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;project&lt;/strong&gt; is a site plus its settings, run on a schedule (&lt;code&gt;hourly&lt;/code&gt;, &lt;code&gt;daily&lt;/code&gt;, &lt;code&gt;weekly&lt;/code&gt; or &lt;code&gt;manual&lt;/code&gt;). Every run is diffed against the previous one, page by page: added, modified, removed, same, withheld. Boilerplate such as cookie banners, newsletter prompts and share bars is stripped by default, and a modified page with fewer than &lt;code&gt;notify_min_words&lt;/code&gt; changed words (default 5) does not count as changed.&lt;/p&gt;

&lt;p&gt;With &lt;code&gt;sitemap_incremental&lt;/code&gt; on, a scheduled run fetches only pages the sitemap shows as new or with a newer &lt;code&gt;lastmod&lt;/code&gt;, and carries the rest forward from the last full run. A full run is forced every &lt;code&gt;sitemap_full_every&lt;/code&gt; runs (default 10), whenever fewer than 90% of entries carry &lt;code&gt;lastmod&lt;/code&gt;, or when a carried page is over 30 days old. &lt;strong&gt;Carried-forward pages cost 0 credits.&lt;/strong&gt; So do refused pages, 404s and 410s.&lt;/p&gt;

&lt;p&gt;Removals are only reported when a run reached at least 90% of the site. Below that, missing pages are &lt;em&gt;withheld&lt;/em&gt;, not removed, so a blocked crawl cannot empty your index.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install mesharc langchain-mesharc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;mesharc&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;

&lt;span class="n"&gt;arc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# reads MESHARC_API_KEY&lt;/span&gt;

&lt;span class="n"&gt;project&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://docs.example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Docs KB"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"daily"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"include_paths"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/docs/*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"sitemap_incremental"&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="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;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;runs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wait&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="c1"&gt;# first run is the baseline&lt;/span&gt;
&lt;span class="n"&gt;record&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;changes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&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;record&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"change"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"counts"&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;Then, after each scheduled run (from the &lt;code&gt;run.finished&lt;/code&gt; webhook or a cron of your own), load only what changed and apply it to any LangChain vector store:&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;langchain_mesharc&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MeshArcLoader&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;refresh&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;store&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;project_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;docs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MeshArcLoader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"changes"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;project_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;project_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                         &lt;span class="n"&gt;include_removed&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="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;gone&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;metadata&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="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;docs&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"change"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"removed"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;fresh&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;docs&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"change"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s2"&gt;"removed"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;gone&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;store&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ids&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;gone&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;fresh&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;store&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add_documents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fresh&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ids&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;metadata&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="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;fresh&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 keys one document per URL. If you split pages into chunks before embedding, use chunk IDs that start with the URL and delete a page's old chunks first, exactly as in the DIY version. The &lt;a href="https://mesharc.dev/docs/langchain" rel="noopener noreferrer"&gt;LangChain integration docs&lt;/a&gt; have the details.&lt;/p&gt;

&lt;p&gt;If you would rather not run that code at all, MeshArc can write straight into &lt;strong&gt;Pinecone, Qdrant, Weaviate or pgvector&lt;/strong&gt; as a &lt;a href="https://mesharc.dev/docs/connectors-destinations" rel="noopener noreferrer"&gt;destination&lt;/a&gt;. It splits Markdown into paragraph-aligned chunks of about 350 words with a 40-word overlap, embeds them with your own OpenAI-compatible endpoint and key (we add no markup on embeddings), and by default writes only pages classed as added, modified or removed. Destinations are included on every plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same docs site, priced
&lt;/h2&gt;

&lt;p&gt;Back to the 2,000-page site, read daily on our Growth plan ($99 for 500,000 credits, so about $0.20 per 1,000 plain fetches). Assume the pages fetch plainly at 1 credit each, and that around 2% change on a typical day — your site's real churn will differ, which is the point of measuring it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Page reads a month&lt;/th&gt;
&lt;th&gt;Credits&lt;/th&gt;
&lt;th&gt;Cost on Growth&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Full re-crawl every night&lt;/td&gt;
&lt;td&gt;60,000&lt;/td&gt;
&lt;td&gt;60,000&lt;/td&gt;
&lt;td&gt;~$11.88&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;sitemap_incremental&lt;/code&gt;, ~40 changed pages a night, plus 3 forced full runs&lt;/td&gt;
&lt;td&gt;~1,080 + 6,000&lt;/td&gt;
&lt;td&gt;~7,080 (plus sitemap reads at 1 credit per file)&lt;/td&gt;
&lt;td&gt;~$1.40&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Embeddings follow the same shape: only the ~40 changed pages a day are re-embedded, instead of all 2,000. Pages that need a real browser cost 4 credits rather than 1, so multiply accordingly; our &lt;a href="https://mesharc.dev/blog/firecrawl-pricing-explained" rel="noopener noreferrer"&gt;Firecrawl pricing breakdown&lt;/a&gt; works through the per-rung maths in more detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this does not fit
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One-off corpora.&lt;/strong&gt; If you index a site once for a demo, none of this matters. Any scraper will do.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sites without a usable sitemap.&lt;/strong&gt; Incremental fetching needs &lt;code&gt;lastmod&lt;/code&gt;. Without it, MeshArc still diffs and still writes only changed pages to your store, but it has to fetch every page to know.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logged-in content.&lt;/strong&gt; Pages behind your own SSO are better pulled from the source system (Confluence, Notion, a CMS export) than scraped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-hosting.&lt;/strong&gt; MeshArc is not open source. If you need the crawler on your own hardware, the DIY approach above with an open-source crawler is the honest answer; our &lt;a href="https://mesharc.dev/compare" rel="noopener noreferrer"&gt;comparison page&lt;/a&gt; lists the trade-offs by vendor.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it on your own docs
&lt;/h2&gt;

&lt;p&gt;The quickest test is to point a project at a site you already index, let it run twice, and look at the change counts: that number, not the page count, is what your pipeline should be embedding each night. The &lt;a href="https://mesharc.dev/use-cases/rag-pipeline" rel="noopener noreferrer"&gt;RAG pipeline use case&lt;/a&gt; has the overview; if your assistant reads whole sites at once, the &lt;a href="https://mesharc.dev/tools/llms-txt-generator" rel="noopener noreferrer"&gt;llms.txt generator&lt;/a&gt; is a free alternative to embeddings altogether.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://mesharc.dev/playground" rel="noopener noreferrer"&gt;Try a page in the playground&lt;/a&gt;&lt;/strong&gt; · &lt;strong&gt;&lt;a href="https://mesharc.dev/signup" rel="noopener noreferrer"&gt;Start free — 1,000 credits, no card&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I drafted this post with AI assistance and reviewed and edited it myself; the code and numbers come from our own docs and pricing.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://mesharc.dev/blog/keep-rag-knowledge-base-fresh" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>rag</category>
      <category>ai</category>
      <category>python</category>
      <category>webscraping</category>
    </item>
    <item>
      <title>Firecrawl Pricing Explained: What 1,000 Pages Really Cost</title>
      <dc:creator>Sid Mishra</dc:creator>
      <pubDate>Tue, 27 Oct 2026 07:48:58 +0000</pubDate>
      <link>https://dev.to/sid_mishra/firecrawl-pricing-explained-what-1000-pages-really-cost-2am8</link>
      <guid>https://dev.to/sid_mishra/firecrawl-pricing-explained-what-1000-pages-really-cost-2am8</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Updated 27 November 2026:&lt;/strong&gt; prices have been re-checked (Firecrawl's are unchanged since 4 September), and the guide now covers Firecrawl's new Monitor engine and +4 options, both services' top-ups, and more cases where Firecrawl is cheaper. The current version is on &lt;a href="https://mesharc.dev/blog/firecrawl-pricing-explained?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026w48-changed&amp;amp;utm_content=firecrawl-pricing-explained-update" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I keep getting asked what Firecrawl actually costs per 1,000 pages, and the honest answer is "it depends" — on your plan, your billing cycle, the output formats you request and how many of your URLs turn out to be 404s. So I went through Firecrawl's pricing page and billing docs line by line and worked it all out in dollars, with a small Python estimator at the end you can point at your own workload.&lt;/p&gt;

&lt;p&gt;Every Firecrawl figure below comes from &lt;a href="https://www.firecrawl.dev/pricing" rel="noopener noreferrer"&gt;firecrawl.dev/pricing&lt;/a&gt; and the &lt;a href="https://docs.firecrawl.dev/billing" rel="noopener noreferrer"&gt;Firecrawl billing docs&lt;/a&gt;, &lt;strong&gt;checked on 21 October 2026&lt;/strong&gt;. Prices change; if you are reading this much later, check them again.&lt;/p&gt;

&lt;p&gt;Disclosure: I build MeshArc, which competes with Firecrawl. I have tried to be fair, and I say plainly where Firecrawl is the cheaper choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  The plans, converted to dollars per 1,000 credits
&lt;/h2&gt;

&lt;p&gt;Firecrawl sells monthly credit allowances. Converting each plan to a cost per 1,000 credits is the first step, because a credit is a page only in the simplest case.&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;Monthly billing&lt;/th&gt;
&lt;th&gt;Annual billing (per month)&lt;/th&gt;
&lt;th&gt;Credits/month&lt;/th&gt;
&lt;th&gt;$ per 1,000 credits (monthly / annual)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hobby&lt;/td&gt;
&lt;td&gt;$19&lt;/td&gt;
&lt;td&gt;$16&lt;/td&gt;
&lt;td&gt;5,000&lt;/td&gt;
&lt;td&gt;$3.80 / $3.20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Standard&lt;/td&gt;
&lt;td&gt;$99&lt;/td&gt;
&lt;td&gt;$83&lt;/td&gt;
&lt;td&gt;100,000&lt;/td&gt;
&lt;td&gt;$0.99 / $0.83&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Growth&lt;/td&gt;
&lt;td&gt;$399&lt;/td&gt;
&lt;td&gt;$333&lt;/td&gt;
&lt;td&gt;500,000&lt;/td&gt;
&lt;td&gt;$0.80 / $0.67&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scale&lt;/td&gt;
&lt;td&gt;$749&lt;/td&gt;
&lt;td&gt;$599&lt;/td&gt;
&lt;td&gt;1,000,000&lt;/td&gt;
&lt;td&gt;$0.75 / $0.60&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two things stand out. First, Hobby is nearly four times dearer per credit than Standard, so anyone doing real volume ends up on Standard or above. Second, the annual discount is worth about 16% and is how many comparisons arrive at "$0.83 per 1,000 pages". Ours on &lt;a href="https://mesharc.dev/compare" rel="noopener noreferrer"&gt;/compare&lt;/a&gt; uses the monthly $0.99.&lt;/p&gt;

&lt;p&gt;Firecrawl's concurrency also scales with plan: 2 on Free, 5 on Hobby, 25 on Standard, 50 on Growth, 100 on Scale. If you need throughput rather than volume, that can push you up a tier before credits do.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a credit buys
&lt;/h2&gt;

&lt;p&gt;From the billing docs, the per-page costs that matter for most scraping jobs:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Operation&lt;/th&gt;
&lt;th&gt;Credits&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Scrape or crawl, Markdown/HTML&lt;/td&gt;
&lt;td&gt;1 per page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enhanced proxy (including &lt;code&gt;auto&lt;/code&gt; escalation)&lt;/td&gt;
&lt;td&gt;+0 — billed at the base 1 credit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JSON format (LLM extraction)&lt;/td&gt;
&lt;td&gt;+4 per page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PDF parsing&lt;/td&gt;
&lt;td&gt;+1 per PDF page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Zero Data Retention&lt;/td&gt;
&lt;td&gt;+1 per page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Map&lt;/td&gt;
&lt;td&gt;1 per call&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Search&lt;/td&gt;
&lt;td&gt;2 per 10 results, plus scrape costs for each scraped result&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Monitor&lt;/td&gt;
&lt;td&gt;1 per page per check&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The enhanced-proxy line deserves credit. Firecrawl does not charge extra when a page needs a better proxy, and escalated retries are not billed separately. For a site that needs residential-grade routing on every page, that flat 1 credit is very hard to beat — more on that below.&lt;/p&gt;

&lt;p&gt;The JSON line is the one that changes bills. A page with &lt;code&gt;formats: ["json"]&lt;/code&gt; costs 5 credits, not 1. Modifiers stack, so JSON plus Zero Data Retention is 6.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 404 question
&lt;/h2&gt;

&lt;p&gt;This is the line most people miss. From Firecrawl's billing docs: if a document is returned — including a 403 or a 404 — the page costs 1 credit plus any option costs. Only when no document comes back at all (the site never responded) is it free.&lt;/p&gt;

&lt;p&gt;The docs suggest checking &lt;code&gt;metadata.statusCode&lt;/code&gt; to spot blocked URLs. That is good advice, but by then you have paid. On a crawl driven by an old sitemap, or a list of product URLs scraped six months ago, 404s are not rare. And if you asked for JSON, each 404 costs 5 credits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked examples in dollars
&lt;/h2&gt;

&lt;p&gt;All Firecrawl prices below use Standard at $0.99 per 1,000 credits (monthly) with the annual $0.83 in brackets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. 1,000 plain pages, Markdown.&lt;/strong&gt;&lt;br&gt;
1,000 credits → &lt;strong&gt;$0.99&lt;/strong&gt; ($0.83).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. 1,000 product pages, extracted to JSON.&lt;/strong&gt;&lt;br&gt;
1,000 × 5 = 5,000 credits → &lt;strong&gt;$4.95&lt;/strong&gt; ($4.15). The model cost is included, which is convenient.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. The same 1,000 JSON pages, where 80 URLs are now 404s.&lt;/strong&gt;&lt;br&gt;
Still 5,000 credits → &lt;strong&gt;$4.95&lt;/strong&gt; ($4.15). The 80 dead URLs cost 400 credits between them and returned nothing useful.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. A 50-page PDF manual.&lt;/strong&gt;&lt;br&gt;
50 credits for parsing on top of the scrape → about &lt;strong&gt;$0.05&lt;/strong&gt;. Cheap; PDFs are not where Firecrawl bills hurt.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Re-checking 2,000 pages weekly with Monitor.&lt;/strong&gt;&lt;br&gt;
2,000 × 4 checks = 8,000 credits a month → &lt;strong&gt;$7.92&lt;/strong&gt; ($6.64), whether or not anything changed.&lt;/p&gt;
&lt;h2&gt;
  
  
  Expiry, rollover and top-ups
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Plan credits reset monthly and &lt;strong&gt;do not roll over&lt;/strong&gt; on Free, Hobby, Standard or Growth. Annual Scale rolls unused credits over one month; annual Enterprise, two.&lt;/li&gt;
&lt;li&gt;Pay-as-you-go top-ups come in $5 increments: 1,000 credits on Hobby, 2,000 on Standard, 2,500 on Growth, 5,000 on Scale. On Standard that is &lt;strong&gt;$2.50 per 1,000 credits&lt;/strong&gt; — 2.5× the plan rate. Top-ups stay on the account until used, but expire if you cancel the subscription.&lt;/li&gt;
&lt;li&gt;Pay-as-you-go needs a paid plan; on Free, requests return HTTP 402 when credits run out.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The practical effect: size your plan to your typical month, not your peak, and treat top-ups as expensive insurance.&lt;/p&gt;
&lt;h2&gt;
  
  
  The same jobs on MeshArc
&lt;/h2&gt;

&lt;p&gt;MeshArc bills by the rung a page actually needed, and does not bill pages that did not deliver. From &lt;a href="https://mesharc.dev/pricing" rel="noopener noreferrer"&gt;mesharc.dev/pricing&lt;/a&gt;, on Growth ($99 for 500,000 credits, so $0.198 per 1,000 credits):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rung&lt;/th&gt;
&lt;th&gt;Credits/page&lt;/th&gt;
&lt;th&gt;$ per 1,000 pages&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fetch&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;$0.20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fetch with session (walled sites, after one render)&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;$0.40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Render (real Chrome)&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;$0.79&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Render, residential (incl. 1 MB)&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;$3.17&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Refused pages, 404s and 410s, pages served from cache, URLs blocked by robots.txt and pages carried forward unchanged on an incremental run cost nothing. Structured extraction is 1 credit per 1,000 tokens, with the model bill paid to your own provider.&lt;/p&gt;

&lt;p&gt;Running the examples again:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;1,000 plain pages:&lt;/strong&gt; $0.20 if they fetch plainly, $0.79 if every one needs a browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1,000 JSON pages, 80 of them 404s:&lt;/strong&gt; the 80 cost 0. The other 920, at about 3,000 tokens each (the example on our pricing page), are 3 credits each for extraction plus the read — but you also pay your model provider. If that model bill matters to you, Firecrawl's all-in 5 credits may well be simpler.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A 100-page Cloudflare-walled site:&lt;/strong&gt; one render earns a session, then 99 pages read with it: 202 credits, about &lt;strong&gt;$0.04&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2,000 pages, 4 runs a month, 20% needing a browser, 2% residential:&lt;/strong&gt; our pricing page puts that at about 15,200 credits, or roughly &lt;strong&gt;$3.01&lt;/strong&gt;. Firecrawl Monitor on the same pages is $7.92 monthly — though Monitor gives you diffs, and so does MeshArc, so compare like with like.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Where Firecrawl is cheaper
&lt;/h2&gt;

&lt;p&gt;Be honest about the residential case. A page that needs a residential IP costs MeshArc 16 credits ($3.17 per 1,000 on Growth). Firecrawl charges 1 credit with enhanced proxy, so $0.83–$0.99 per 1,000. If your whole job is hard sites that need residential routing on every page and cannot be read with a session, Firecrawl is three to four times cheaper per page. Our &lt;a href="https://mesharc.dev/firecrawl-alternative" rel="noopener noreferrer"&gt;Firecrawl alternative page&lt;/a&gt; also says Firecrawl is the better pick if you want to self-host an open-source crawler; MeshArc is not open source.&lt;/p&gt;

&lt;p&gt;Firecrawl's JSON format also includes the model. If you do not want a model key of your own, that is a real convenience.&lt;/p&gt;

&lt;p&gt;Where the maths goes the other way is plain pages (about 4× cheaper on MeshArc), walled sites that a session can read (about 2×), anything with a meaningful 404 rate, and repeat crawls where most pages have not changed.&lt;/p&gt;
&lt;h2&gt;
  
  
  Estimate your own bill
&lt;/h2&gt;

&lt;p&gt;Here is a small, dependency-free calculator for Firecrawl's side, using the rates above. Change the inputs to your workload.&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="c1"&gt;# Firecrawl monthly cost estimate (rates checked 21 Oct 2026)&lt;/span&gt;
&lt;span class="no"&gt;PLAN_USD_PER_1K&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"standard_monthly"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.99&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"standard_annual"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.83&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                   &lt;span class="s2"&gt;"growth_monthly"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"growth_annual"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.67&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;firecrawl_cost&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json_share&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pdf_pages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;zdr&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="n"&gt;plan&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"standard_monthly"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;per_page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;zdr&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;credits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pages&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;per_page&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;pages&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;json_share&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;pdf_pages&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;credits&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;credits&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;PLAN_USD_PER_1K&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# 10,000 pages, 30% as JSON, 200 PDF pages&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;firecrawl_cost&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json_share&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pdf_pages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# (22200.0, 21.98)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note that 404s are not discounted in that formula — because Firecrawl does not discount them.&lt;/p&gt;

&lt;p&gt;To see what the same URLs cost on MeshArc, run them through the SDK and add up the per-page &lt;code&gt;credits&lt;/code&gt; field. Every row tells you the HTTP status, the verdict and what it cost.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install mesharc        &lt;span class="c"&gt;# or: npm install mesharc&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;mesharc&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;

&lt;span class="n"&gt;arc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MeshArc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# reads MESHARC_API_KEY&lt;/span&gt;

&lt;span class="n"&gt;urls&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;line&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="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="k"&gt;in&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;"urls.txt"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;line&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="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;batch&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scrape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"concurrency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&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;batch&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pages"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&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;"credits"&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;row&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="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"httpStatus"&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;"verdict"&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;"credits"&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(urls)} URLs, {total} credits, ~${total / 1000 * 0.198:.2f} on Growth"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A 404 or a refused page shows up in that list with &lt;code&gt;credits&lt;/code&gt; of 0.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Firecrawl Standard is &lt;strong&gt;$0.99 per 1,000 pages&lt;/strong&gt; billed monthly, &lt;strong&gt;$0.83&lt;/strong&gt; billed annually.&lt;/li&gt;
&lt;li&gt;JSON extraction makes it &lt;strong&gt;$4.95 / $4.15&lt;/strong&gt; per 1,000, model included.&lt;/li&gt;
&lt;li&gt;403s and 404s are billed. Plan credits do not roll over below Scale. Top-ups cost 2.5× the plan rate on Standard.&lt;/li&gt;
&lt;li&gt;Enhanced proxy is free on top, which makes Firecrawl the cheaper choice for hard, residential-only sites.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to compare on your own URLs rather than mine, paste a few into the &lt;a href="https://mesharc.dev/playground" rel="noopener noreferrer"&gt;MeshArc playground&lt;/a&gt; and look at the credits column, or see the full vendor table on &lt;a href="https://mesharc.dev/compare" rel="noopener noreferrer"&gt;/compare&lt;/a&gt;. Re-crawling the same sites every week? The &lt;a href="https://mesharc.dev/use-cases/website-change-monitoring" rel="noopener noreferrer"&gt;website change monitoring use case&lt;/a&gt; shows how, with sitemap_incremental set to true, pages the sitemap marks unchanged are skipped at no cost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://mesharc.dev/playground" rel="noopener noreferrer"&gt;Try it in the playground&lt;/a&gt;&lt;/strong&gt; · &lt;strong&gt;&lt;a href="https://mesharc.dev/signup" rel="noopener noreferrer"&gt;Start free — 1,000 credits, no card&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://mesharc.dev/blog/firecrawl-pricing-explained" rel="noopener noreferrer"&gt;mesharc.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webscraping</category>
      <category>api</category>
      <category>python</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
