# Monitoring Competitor SaaS /pricing Pages Without a Browser (and Why Naive Diffs Break)

If you have ever set up a cron job to watch competitor `/pricing` pages by hashing the raw HTML, you already know how it ends. A marketing engineer tweaks a testimonial quote or changes a Tailwind hash, your Slack channel lights up at 3 AM, and a week later everyone mutes the channel.

When we built a browserless Go enrichment tool and pointed it at 100 DevTools and AI SaaS domains, **94 out of 100** served a public `/pricing` page. Across those 94 pages, **75** offered a free tier (`Free`, `Hobby`, or `$0/mo`) and **51** mentioned usage-based or metered pricing (`per token`, `per 1m`, `pay as you go`, `consumption`).

Pulling structured pricing signals cleanly without spinning up Playwright is totally doable for most SSR sites, as long as you normalize what you extract before diffing it.

## Why raw regexes on `$` figures get messy fast

A pricing page is full of dollar figures that are not plan prices: customer revenue stats (`$2.4B processed`), enterprise savings claims (`Save $12,000/yr`), and metered unit rates (`$0.00325`, `$0.106`). Running a loose `\$[0-9]+` regex dumps all of them into one pile and drops the billing cadence right after the number.

In our Go extractor, we scan cleaned page text in a single linear pass rather than backtracking regexes, capturing the currency symbol (`$`, `€`, `£`), the formatted number, and any normalized billing cadence immediately after it:

```go
func matchBillingSuffix(rest string) string {
    trimmed := strings.TrimLeft(rest, " ")
    lower := strings.ToLower(trimmed)
    suffixes := []struct {
        prefix string
        norm   string
    }{
        {"/month", "/mo"},
        {"/mo", "/mo"},
        {"per month", "/mo"},
        {"/year", "/yr"},
        {"/yr", "/yr"},
        {"per year", "/yr"},
        {"/user/mo", "/user/mo"},
        {"/seat/mo", "/seat/mo"},
        {"/user", "/user"},
        {"/seat", "/seat"},
        {"/1k", "/1k"},
        {"/1m", "/1m"},
    }
    for _, s := range suffixes {
        if strings.HasPrefix(lower, s.prefix) {
            after := len(s.prefix)
            if after == len(lower) || !isAlphaNum(lower[after]) {
                return s.norm
            }
        }
    }
    return ""
}
```

That `!isAlphaNum(lower[after])` boundary check is a small detail that saved us from turning `$20/more` or `$5/model` into `$20/mo`.

On top of raw price strings, we extract a compact structural fingerprint for each domain:
- `tierNames`: normalized tier headings (`Free`, `Hobby`, `Starter`, `Pro`, `Team`, `Business`, `Scale`, `Enterprise`)
- `pricesFound`: deduplicated prices with normalized cadence (capped at 12 so giant usage-rate tables do not explode the payload)
- Five boolean flags: `hasFreeTier`, `hasFreeTrial`, `hasEnterpriseTier`, `hasUsageBased`, `hasSelfServeSignup`

Here is what that fingerprint looks like across real sites from our 100-domain scan:

| Domain | Free Tier | Usage-Based | Extracted Tiers & Figures |
| :--- | :--- | :--- | :--- |
| `vercel.com` | Yes | Yes | `Hobby, Core, Pro, Scale ($0/mo, $20/mo, $20, $0.50)` |
| `supabase.com` | Yes | Yes | `Free, Pro, Team, Scale, Enterprise ($0, $25, $10/mo, $0.00325)` |
| `cloudflare.com` | Yes | Yes | `Free, Pro, Business, Scale ($0, $20, $25/mo, $200)` |
| `anthropic.com` | Yes | No | `Free, Pro, Team, Enterprise ($0, $17, $200, $20)` |
| `figma.com` | Yes | Yes | `Free, Starter, Professional, Enterprise ($16/mo, $12/mo, $3/mo, $55/mo)` |
| `neon.tech` | Yes | Yes | `Free, Scale ($0, $15/mo, $0.106, $0.35)` |

## Diffing the fingerprint instead of the HTML

Once you have a structured object, alerting on real pricing changes in Python or an n8n cron workflow becomes dead simple. Hash only the sorted `tierNames`, `pricesFound`, and the five booleans:

```python
import hashlib, json

def pricing_fingerprint(item: dict) -> str:
    payload = {
        "tiers": sorted(item.get("tierNames") or []),
        "prices": sorted(item.get("pricesFound") or []),
        "free": bool(item.get("hasFreeTier")),
        "trial": bool(item.get("hasFreeTrial")),
        "usage": bool(item.get("hasUsageBased")),
        "enterprise": bool(item.get("hasEnterpriseTier")),
    }
    raw = json.dumps(payload, sort_keys=True).encode("utf-8")
    return hashlib.sha256(raw).hexdigest()[:16]
```

Now CSS deploys, A/B-tested hero copy, and rotating customer logos produce zero false alarms. Dropping a free tier, adding a `Scale` plan, or bumping `$20/mo` to `$25/mo` flips the hash immediately.

## Two real limitations of browserless pricing fetches

Be realistic about where plain HTTP stops working:

1. **Always send `Cache-Control: no-cache` on `/pricing`.** If your enrichment pipeline also fetches `/llms.txt` or docs pages with an ETag cache, isolate `/pricing` completely so you never compare against a stale cached response.
2. **Client-side JS calculators and monthly/annual toggles.** Plain HTTP sees only the default SSR billing state (often annual-billed monthly prices, like `$17` instead of `$20` on `anthropic.com`, or `$16/mo` on `figma.com`). And if a site renders its entire pricing grid client-side with zero SSR fallback (we saw empty static extraction on `linear.app`), you will need a browser fallback for that specific domain.

For ~90% of SaaS pricing pages, plain HTTP + structural fingerprinting gets you 95% of the signal at a fraction of the compute cost and zero noisy Slack alerts.

---

*Note: The 100-company pricing and `/llms.txt` dataset (MIT CSV/JSON) is public at [Top 100 Dev & AI Pricing Index](https://yun87457-web.github.io/website-contacts-pricing-mcp/). The Go extractor is also packaged as [SaaS Pricing Scraper](https://apify.com/spiky_closet/saas-pricing-scraper) and [website-contacts-pricing-mcp on GitHub](https://github.com/yun87457-web/website-contacts-pricing-mcp).*
