DEV Community

leo
leo

Posted on Originally published at iplight.net

The $10 Bill Nobody Puts in the Scraping Budget

Traffic costs almost nothing. Everything that happens after the request fails is where the money actually goes.


Ask a data team what their scraping infrastructure costs and you will usually get a number in the low hundreds of dollars a month. Proxies, a couple of servers, maybe a solver subscription. Then ask how many engineer-hours went into it last quarter, and the conversation changes.

I want to do that arithmetic in public, because the gap between those two numbers is where most build-versus-buy decisions get made badly.

Start with the number everyone quotes

Take a job of 100,000 pages. With images and media blocked, an average page is roughly 90 KB. Through dynamic residential at $1.20/GB:

100,000 pages × 90 KB  = 9,000,000 KB
                       = 9,000 MB
                       = 9 GB
9 GB × $1.20/GB        = $10.80
Enter fullscreen mode Exit fullscreen mode

Ten dollars and eighty cents. That is the entire traffic bill for a hundred thousand pages.

Which means something uncomfortable: at this scale, the per-gigabyte price is not a meaningful business variable. You could negotiate a 30% discount and save three dollars. You could switch to a cheaper provider and save four. Meanwhile, one engineer spending four hours a month on retry logic costs more than the traffic for the entire year.

This is why arguing about proxy pricing at the 10 GB tier is a category error. You are not buying bandwidth. You are buying the avoidance of engineering.

Now the line items that never appear

Here is what a working DIY stack actually contains, in the order teams usually discover them:

Per-site retry policy. A 403 means different things in different targets. One site is telling you the IP is bad; another is telling you the session is missing; a third is telling you the endpoint moved. You end up with a policy per target, and a policy per target needs a test per target, and tests need fixtures, and fixtures rot.

A challenge path per anti-bot vendor. Cloudflare, Akamai, DataDome, PerimeterX — each behaves differently, each updates on its own schedule, and the update does not come with a changelog. This is the item people underestimate most, because it is not a build cost, it is a permanent maintenance line.

Fingerprint management. TLS library, HTTP/2 settings, header order, canvas noise, WebGL noise. Get the IP rotation right while the fingerprint stays constant, and your pool "mysteriously stops working" — which is the single most common diagnosis I see in support tickets, and it is never the pool.

A success metric you actually trust. Without one you cannot distinguish "blocked" from "genuinely empty page". A 200 response with a challenge in the body is the most expensive kind of bug: the pipeline stays green while the dataset fills with garbage.

Queueing, backoff, and per-site concurrency limits. So one hard target cannot starve the other nineteen.

Backfill. The one nobody budgets. When a target fails 3% of the time and nobody notices for a week, the cost is not the failed requests. It is the person who eventually notices, the investigation, and the re-run.

What that list costs

I am not going to invent a salary number, because it varies wildly. Do it with your own:

engineer-hours per month on scraping infra   ×  your loaded hourly rate
+ solver subscription (if used)
+ failed-attempt traffic (often 1.3–2.0× successful traffic on hard targets)
+ backfill and incident time
= the real monthly cost
Enter fullscreen mode Exit fullscreen mode

For most small teams the first line alone dominates everything else by an order of magnitude. The traffic bill is a rounding error next to it.

The asymmetry that decides it

There are two very different business situations that look identical in a spreadsheet:

Situation A — the scraper is the product. Your competitive advantage is the data pipeline. Every hour you spend on anti-bot is an hour of R&D, and you should absolutely build it, because the capability is the moat.

Situation B — the scraper feeds the product. The data is an input to something else: a pricing model, a monitoring dashboard, a research report. Here every hour on anti-bot is an hour not spent on the thing customers pay for.

The build-versus-buy question is not about traffic volume. It is about which situation you are in, and teams in Situation B routinely build as if they were in Situation A — because building is more interesting than buying.

The honest case for building

To be fair to the DIY side, there are real situations where owning the stack wins:

  • A handful of stable targets. One retry policy, no solver, no vendor churn. The maintenance line stays near zero.
  • You need a real browser. Clicking, scrolling, filling forms, screenshots. An unlock API returns HTML; it does not drive a page. If the payload only appears after interaction, no API will save you.
  • Very high volume with high success already. At scale, per-request pricing has to beat per-GB pricing plus near-zero failure. Sometimes it doesn't.
  • Regulatory or contractual constraints on where the egress happens. Then the question is closed before it starts.

None of these are "proxies are cheaper". They are all statements about where the complexity budget should live.

A migration path that doesn't throw anything away

The useful thing about the unlock-endpoint model is that it authenticates exactly like a proxy — username and password against an HTTPS endpoint, target URL as the request target. In most codebases the migration is a string change:

import requests

# before: your own pool, your own retry chain
# proxy = "http://user:pass@residential-gateway:port"

# after: the unlock endpoint
proxy = "http://username:password@unlock-host:port"

r = requests.get("https://example.com/any-page",
                 proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.status_code)
print(r.text[:200])
Enter fullscreen mode Exit fullscreen mode

Keep the URL list, keep the parser, change the transport. Route the two or three targets where your own pool is genuinely better back to the pool. The two paths coexist on the same code line.

That is the actual decision: not "build or buy", but which targets deserve your own engineering.

Three questions for the next renewal

  1. What did we spend on the scraping stack last quarter, including engineering time?
  2. What percentage of that was traffic, and what percentage was failure handling?
  3. For our three hardest targets, does the page load in a real browser through the same exit?

If the answer to (3) is yes, you have a client problem, not a proxy problem — and no renewal will fix it. If the answer to (1) is dominated by anything other than traffic, you are already paying for an unlock API, you are just paying it in salaries.


IPLight runs residential, mobile and ISP proxies and is opening early access to a per-request Web Unlocker API. The full build-vs-buy breakdown, including the per-request arithmetic, is in Web Unlocker vs a DIY proxy pool.

Top comments (3)

Collapse
 
userxnom profile image
Abdullah Naseer •

The $10.80 arithmetic is the kind of number that quietly ends an argument. 100,000 pages at 90 KB is 9 GB, and at $1.20 a GB the whole traffic bill is $10.80 — and your point that a 30% discount on that saves three dollars makes the proxy-pricing debate look like the wrong meeting entirely.

The part that hit hardest for me was the backfill line: a target failing 3% of the time, unnoticed for a week, quietly turning into missing data rather than a visible error. That's the cost that never shows up on an invoice, and the 200-with-a-challenge-page problem you mention is the same trap — the scraper reports success while the data is empty.

Your Situation A versus Situation B split is the cleanest framing of build-versus-buy I have read in a while: if the scraper is the product, the anti-bot hours are R&D; if it only feeds the product, those hours are time not spent on what customers pay for.

Of your three renewal questions, which one do teams most often fail to answer — what they actually spent last quarter, or what percentage of it was failure handling rather than traffic?

Collapse
 
iplight profile image
leo •

The second one, by a wide margin.

Every team can answer the first question inside a day. The proxy invoice, the cloud bill and the solver subscription are owned line items; they are usually under-counted rather than unknown — re-run compute and the part-time maintainer rarely get allocated — but the number exists.

The second question fails for a structural reason, not a lazy one: failure handling has no invoice. It arrives as an interruption, is charged to general engineering capacity, and is never attributed to a target. No billing system records that Tuesday afternoon went into a 403 loop on a single domain.

The cheapest fix I know is to stop trying to measure it retroactively and start tagging it as it happens. Two tags, applied without exception:

  • one per target, on the retry and backfill path;
  • the same tag on every ticket or thread that opens with "the scrape for X looks off".

At month end, divide tagged hours by successful pages for that target. The output is a unit-economics number — engineering cost per thousand pages — that takes the build-versus-buy decision out of opinion. In my experience it usually contradicts the team's prior assumption, and it moves in both directions.

On backfill, your read is correct and worth stating more sharply: the damage is not the missing 3%, it is the detection lag. A gap found within a week is a re-run. A gap found after it has already fed a pricing model or a monthly report is a re-run, a correction, and a conversation with everyone who read the number in between. The cost scales with how long the pipeline lied, not with the volume it lied about.

That is also why "a success metric you actually trust" belongs in the line-item list. A pipeline that returns 200 with a challenge page does not merely produce bad data — it removes the signal that would have let you detect the gap at all. Same failure mode as the silent 3% backfill, minus the alarm.

Collapse
 
scraperfinder profile image
Scraper Finder •

The per-gigabyte argument also hides the price of bad fields: cheap traffic delivers expensive decisions when the data is wrong.