<?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: CloudTier</title>
    <description>The latest articles on DEV Community by CloudTier (@cloudtier).</description>
    <link>https://dev.to/cloudtier</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%2F4270717%2Fc7ca8f22-6ec1-468e-92ee-bd0dfc77b5ea.png</url>
      <title>DEV Community: CloudTier</title>
      <link>https://dev.to/cloudtier</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cloudtier"/>
    <language>en</language>
    <item>
      <title>Comparing cloud server prices is harder than scraping them: lessons from tracking 277 providers</title>
      <dc:creator>CloudTier</dc:creator>
      <pubDate>Sat, 28 Nov 2026 12:27:52 +0000</pubDate>
      <link>https://dev.to/cloudtier/comparing-cloud-server-prices-is-harder-than-scraping-them-lessons-from-tracking-277-providers-4kko</link>
      <guid>https://dev.to/cloudtier/comparing-cloud-server-prices-is-harder-than-scraping-them-lessons-from-tracking-277-providers-4kko</guid>
      <description>&lt;p&gt;We run &lt;a href="https://cloudtier.io/" rel="noopener noreferrer"&gt;CloudTier&lt;/a&gt;, a free catalog that compares VPS, dedicated, GPU, storage, managed database and domain prices across 277 providers. Every price is checked daily.&lt;/p&gt;

&lt;p&gt;Writing the scrapers was the easy part. Making the numbers &lt;em&gt;mean the same thing&lt;/em&gt; took most of the work. Here are the problems we hit, how we solved them, and how you can use the data from your own code.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. "Per month" means different things
&lt;/h2&gt;

&lt;p&gt;One provider bills per hour, another per month, a third only per year. To compare them you need one figure, so every plan gets a &lt;strong&gt;monthly USD price before tax&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The first trap: an hourly price × 730 is not "the" monthly price. Providers cap hourly billing at different numbers of hours a month (730, 720, 672 or 744), so we store the cap &lt;strong&gt;per provider&lt;/strong&gt; and convert with it. Otherwise hourly clouds look a few percent more expensive than they really are.&lt;/p&gt;

&lt;p&gt;The second trap: prepaid terms. A plan sold only as "12 months for $48" is shown as $4/month, but marked with its term so it never looks like a no-commitment price. In the API this is &lt;code&gt;term_months&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"monthly_usd"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;3.28&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"term_months"&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="nl"&gt;"hourly_usd"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Exchange rates create fake price changes
&lt;/h2&gt;

&lt;p&gt;Our providers bill in 13 currencies. The obvious design (convert everything to USD, store it, diff it daily) gives you a "price change" every time the euro moves.&lt;/p&gt;

&lt;p&gt;So we keep each price &lt;strong&gt;in the provider's own currency&lt;/strong&gt; and compare in that currency. USD values are derived from it and only repriced when the rate drifts noticeably. A price change is reported only when the provider actually changed the price. That is what the &lt;a href="https://cloudtier.io/price-changes/" rel="noopener noreferrer"&gt;price changes page&lt;/a&gt; shows.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. VAT, and providers that only show it included
&lt;/h2&gt;

&lt;p&gt;Most providers list prices before tax, some only with VAT included. Scandinavian registrars, for example, show prices with 25% VAT. The scraper takes the VAT out again and checks that the result lands on a whole cent (øre). If it doesn't, the row is skipped instead of stored as a slightly wrong price. A missing price is better than a wrong one.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Promotions are not list prices
&lt;/h2&gt;

&lt;p&gt;"$1 for the first month" renews at the real price. Promotional offers are flagged and are never what a list sorts by.&lt;/p&gt;

&lt;p&gt;Domains are the worst case. A $0.99 first year often renews at $20, so every registrar row also gets a &lt;strong&gt;three-year cost&lt;/strong&gt; (registration + two renewals), and that is the default sort on pages like &lt;a href="https://cloudtier.io/domains/tld/com/" rel="noopener noreferrer"&gt;.com prices across registrars&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The same plan costs different amounts in different places
&lt;/h2&gt;

&lt;p&gt;Many clouds charge more in São Paulo or Singapore than in Frankfurt. A single "plan price" hides that, so VPS and bare-metal plans store prices &lt;strong&gt;per datacenter&lt;/strong&gt;. When you filter by country (say, &lt;a href="https://cloudtier.io/vps/in/germany/" rel="noopener noreferrer"&gt;VPS plans with servers in Germany&lt;/a&gt;), the row shows the cheapest price &lt;em&gt;in that place&lt;/em&gt;, not the global minimum.&lt;/p&gt;

&lt;p&gt;The same data drives the &lt;a href="https://cloudtier.io/locations/" rel="noopener noreferrer"&gt;locations overview&lt;/a&gt;, which shows which providers have servers in each country and city.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Scrapers break quietly
&lt;/h2&gt;

&lt;p&gt;Provider pages change without notice. A broken parser rarely crashes. It returns plausible garbage: half the plans, or prices off by a factor of 10.&lt;/p&gt;

&lt;p&gt;Every run goes through sanity checks before anything is applied. If a run looks wrong (suspicious price jumps, plans vanishing), it is &lt;strong&gt;quarantined&lt;/strong&gt;: the parsed plan is saved for review and the live data stays as the last good run left it. Hard failures are retried, and repeated failures surface in our monitoring.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. The cache that lived for three minutes
&lt;/h2&gt;

&lt;p&gt;This one is fresh: we fixed it today.&lt;/p&gt;

&lt;p&gt;Cached pages were keyed by a &lt;em&gt;catalog version&lt;/em&gt;, which every applied scrape run incremented, so prices refresh the moment the data changes. That sounds right until you count: about 530 applied runs a day means a new version every ~3 minutes. Our "12-hour" page cache effectively lived three minutes, and search engine crawlers almost always got a page rendered from scratch. Some of our heaviest pages took 3–7 seconds that way.&lt;/p&gt;

&lt;p&gt;The fix:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;runs only &lt;strong&gt;mark&lt;/strong&gt; the catalog as changed;&lt;/li&gt;
&lt;li&gt;a beat task &lt;strong&gt;publishes&lt;/strong&gt; a new version at most every 15 minutes;&lt;/li&gt;
&lt;li&gt;right after publishing, the same task precomputes the expensive shared numbers (location and country stats), so no visitor waits for them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two smaller fixes went out with it. A region filter that joined products to datacenters and then ran &lt;code&gt;SELECT DISTINCT&lt;/code&gt; over every column (JSON included) became a single &lt;code&gt;EXISTS&lt;/code&gt; subquery: 5 s down to 0.3 s. And a helper that normalised city names was being called 106,000 times per computation for a few hundred distinct inputs; an &lt;code&gt;lru_cache&lt;/code&gt; fixed that.&lt;/p&gt;

&lt;p&gt;The lesson: "invalidate on every change" is correct and still wrong when changes arrive every few minutes. Decide how stale your data is allowed to be, and invalidate on that schedule.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use the data: a free JSON API
&lt;/h2&gt;

&lt;p&gt;Everything on the site is available through the &lt;a href="https://cloudtier.io/docs/api/" rel="noopener noreferrer"&gt;CloudTier API&lt;/a&gt;: read-only JSON with the same filters as the website, &lt;strong&gt;no key needed&lt;/strong&gt;, and an &lt;a href="https://cloudtier.io/api/v1/openapi.json" rel="noopener noreferrer"&gt;OpenAPI schema&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The cheapest VPS plans in Europe with at least 4 GB RAM:&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 &lt;span class="s2"&gt;"https://cloudtier.io/api/v1/vps/?ram_min=4&amp;amp;region=eu&amp;amp;sort=price_asc&amp;amp;limit=5"&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; jq -r &lt;span class="s1"&gt;'.results[] | "\(.price.monthly_usd) USD/mo  \(.specs.vcpus) vCPU  \(.specs.ram_gb) GB  \(.provider.name): \(.name)"'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same in Python, plus .com prices across registrars, sorted by three-year cost:&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;json&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;
&lt;span class="k"&gt;import&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;request&lt;/span&gt;

&lt;span class="no"&gt;API&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://cloudtier.io/api/v1"&lt;/span&gt;

&lt;span class="k"&gt;def&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;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;req&lt;/span&gt; &lt;span class="o"&gt;=&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;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Request&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;API&lt;/span&gt; &lt;span class="o"&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;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"User-Agent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"my-script/1.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;with&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;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;urlopen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&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;r&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;json&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="n"&gt;r&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="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/vps/?ram_min=4&amp;amp;region=eu&amp;amp;sort=price_asc&amp;amp;limit=5"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"results"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&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;"specs"&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="s1"&gt;'{p["price"]["monthly_usd"]:&amp;gt;6.2f} USD/mo  {s["vcpus"]} vCPU  {s["ram_gb"]:g} GB  '&lt;/span&gt;
          &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s1"&gt;'{s["disk_gb"]} GB {s["disk_type"]}  {p["provider"]["name"]}'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# one request every 5 seconds per client&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/domains/tld/com/"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"results"&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;5&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;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"provider"&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="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"register_usd"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"renew_usd"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"3y:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"three_year_usd"&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;There are endpoints for &lt;a href="https://cloudtier.io/vps/" rel="noopener noreferrer"&gt;VPS&lt;/a&gt;, &lt;a href="https://cloudtier.io/baremetal/" rel="noopener noreferrer"&gt;bare-metal servers&lt;/a&gt;, &lt;a href="https://cloudtier.io/gpu/" rel="noopener noreferrer"&gt;GPU servers&lt;/a&gt;, &lt;a href="https://cloudtier.io/databases/" rel="noopener noreferrer"&gt;managed databases&lt;/a&gt; (PostgreSQL, MySQL, Redis/Valkey, MongoDB, OpenSearch), &lt;a href="https://cloudtier.io/storage/object/" rel="noopener noreferrer"&gt;object storage&lt;/a&gt; and other storage types, domain extensions and providers. Each plan comes with its specs, its price, the countries it runs in, a &lt;code&gt;value_score&lt;/code&gt; and &lt;code&gt;checked_at&lt;/code&gt;, the time of the last price check.&lt;/p&gt;

&lt;p&gt;The rules are short: one request every 5 seconds per client, at most 50 results a page, and a link back to CloudTier when you publish data from it.&lt;/p&gt;

&lt;h2&gt;
  
  
  For AI agents: Markdown pages and llms.txt
&lt;/h2&gt;

&lt;p&gt;Every list and plan page also has a Markdown version at the same address plus &lt;code&gt;index.md&lt;/code&gt;, for example &lt;a href="https://cloudtier.io/vps/index.md" rel="noopener noreferrer"&gt;&lt;code&gt;/vps/index.md&lt;/code&gt;&lt;/a&gt;. The site publishes an &lt;a href="https://cloudtier.io/llms.txt" rel="noopener noreferrer"&gt;&lt;code&gt;llms.txt&lt;/code&gt;&lt;/a&gt; that describes all of them. If you build an agent that answers "where should I host this?", it can read current prices instead of guessing from training data.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we'd like from you
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Is a provider missing, or does a price look wrong? Tell us in the comments and we'll check it.&lt;/li&gt;
&lt;li&gt;Building something on the API? We'd love to see it.&lt;/li&gt;
&lt;li&gt;Want to know when something gets cheaper? &lt;a href="https://cloudtier.io/alerts/" rel="noopener noreferrer"&gt;Price alerts&lt;/a&gt; send one email when a plan, a provider or a domain extension you watch drops past your limit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Or skip the twelve browser tabs next time and &lt;a href="https://cloudtier.io/" rel="noopener noreferrer"&gt;compare cloud and hosting prices on CloudTier&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>devops</category>
      <category>cloud</category>
      <category>selfhosting</category>
    </item>
  </channel>
</rss>
