Proxy ServersProxy Tools
Engineering7 min read

How to Budget Proxy Bandwidth Before a Project Starts

Bandwidth is the part of a proxy project that is easiest to underestimate. Teams size a plan around the number of URLs they want to check, then discover that each page pulls scripts, images, and fonts, that retries add traffic on top, and that the monthly allowance runs out before the work does.

Proxy router connected to a bandwidth meter for project planning

The fix is to estimate transfer the way you would estimate storage or compute: measure a representative sample, apply the multipliers that are easy to forget, and keep a monitor that reports actual spend while the job runs. The numbers below are illustrative, so replace them with measurements from your own targets.

Measure bytes per successful page, not per request

A request count says nothing about transfer. One JSON endpoint might return forty kilobytes; one product page might pull two megabytes of images, fonts, and scripts that the browser loads after the HTML arrives. Compressed transfer is also different from the decoded size you see in a text editor, and metered proxies usually bill the bytes that crossed the network.

Pick twenty to fifty URLs that represent the job and record the total transfer for each one, not just the document. A browser network panel shows the full picture. For scripted checks, curl can report the downloaded byte count, and most HTTP clients expose response size after decompression, so confirm which number your client is printing.

Keep the sample split by page type. Search results, listing pages, product pages, and API endpoints can differ by an order of magnitude, and an average across all of them hides the expensive case that will dominate the monthly bill.

  • Record compressed transfer and decoded size separately; billing usually follows the former.
  • Sample each page type you plan to collect, not just the home page.
  • Store p50 and p90 bytes per page; one heavy template can outweigh many light ones.
  • Note whether the target serves a different layout to mobile or non-browser clients.

Add the traffic that produces no data

The pages that return useful content are only part of the total. Retries after timeouts, redirects, empty challenge pages, pagination probes that find nothing, pre-flight location checks, and periodic polling all consume bandwidth without producing a row in the dataset.

Measure the multiplier from logs instead of assuming one. In a small test, count attempts and successful pages separately. If the job sends 140 attempts for every 100 pages, the real cost is 1.4 times the per-page estimate before any re-checks are added.

As an arithmetic example, 100,000 pages at an average of 220 kilobytes is roughly 22 gigabytes. With a 1.4 attempts multiplier and a ten percent re-check pass, the same job needs about 34 gigabytes. The point is not the specific figure; it is that the multipliers move the budget by more than most teams expect.

Cut weight before buying more capacity

The cheapest gigabyte is the one you never transfer. If the target offers JSON or a documented endpoint, prefer it: structured responses are usually a fraction of the size of a rendered page and easier to parse. When the page is the only source, strip what the job does not need.

In a headless browser, block images, media, and fonts unless the task genuinely depends on rendering them. This reduces transfer and also cuts rendering time, which lowers the number of workers you need. Verify with a content assertion that the page still contains the elements you parse; some layouts change when assets fail to load.

  • Cache responses you already have and revalidate with conditional requests where the site supports them.
  • Disable tracking scripts in automation contexts; they add bytes and change page behaviour.
  • Fetch assets only when the parsing step actually reads them.
  • Avoid re-downloading unchanged listing pages on every run.
Blocking heavy resources in Playwrightjavascript
const browser = await chromium.launch();
const context = await browser.newContext({
  proxy: { server: process.env.GRAVIIX_PROXY },
});
await context.route("**/*", (route) => {
  const type = route.request().resourceType();
  if (["image", "media", "font"].includes(type)) {
    return route.abort();
  }
  return route.continue();
});
const page = await context.newPage();
await page.goto("https://example.com/catalogue");

Turn the estimate into a plan and a monitor

A simple formula is enough for planning: total gigabytes equals successful pages times average bytes per page times the attempts multiplier, divided by one billion. Add the re-check pass, then add headroom for the work you will inevitably repeat near a deadline.

A reserve of twenty to thirty percent is a reasonable starting point. It covers failed batches, reruns after a parser fix, and the extra checks that appear when a dataset is reviewed. Raise it for jobs that depend on mobile proxies, where page weight and per-gigabyte cost are both higher.

Then watch the first week closely. Log bytes per target per day and compare them with the estimate. If actual usage is running well above the model, fix the weight or the retry policy before the allowance is gone, because discovering the gap at month end leaves no room to react.

Where bandwidth estimates usually go wrong

The most common error is counting only the HTML document. Scripts and images dominate many pages, and a pipeline that models transfer from document size alone can underestimate by a large factor. The second is measuring decoded size while the plan bills compressed transfer, or the reverse.

Another gap is assuming cached assets are free. The target may serve them from a CDN, but your proxy still carries the bytes to the client. Connection reuse and keep-alive reduce overhead per request, not the payload itself, so they do not change the main estimate.

Finally, test environments differ. A desktop headless profile may receive a heavier layout than a mobile client, and a logged-in session may return more data than an anonymous one. Estimate with the same client, viewport, and session type that production will use.

A five-step pre-flight checklist

Before committing to a plan, put the estimate somewhere the team can review it. The document does not need to be long; it needs to state the assumptions so a later variance can be explained rather than guessed.

  • Sample real URLs from each page type and record compressed transfer per page.
  • Measure the attempts multiplier from a short production-like run.
  • Choose the cheapest method that returns the data: API, HTTP client, or headless browser.
  • Add re-checks and headroom, then compare against plan tiers and their overage rules.
  • Instrument bytes per target and review actual usage in the first week.

Metered plans versus IP-based plans

The two common pricing models reward different behaviour. A metered residential or mobile plan charges by transfer, so every retry and every unnecessary asset has a visible cost. An IP-based datacenter plan charges for addresses, and the budget constraint becomes concurrency and pool size rather than gigabytes.

That difference should shape the project design, not just the purchase. Work that tolerates hosting ranges belongs on an IP-based pool, where heavy transfer is already paid for. Reserve metered residential capacity for the endpoints that genuinely reject hosting addresses, and route by endpoint rather than by project.

A mixed design is often the cheapest: discovery and bulk fetching on datacenter addresses, then a bounded residential fallback for specific URLs that fail for environmental reasons. The routing policy needs a cap so a broken target does not quietly move every request to the metered pool.

  • Metered plan: model bytes, retries, and re-checks; monitor daily during the first week.
  • IP-based plan: model concurrency and pool headroom; watch for sessions held too long.
  • Mixed plan: route by endpoint and cap the share of traffic allowed on the expensive pool.
  • Both models: cache and revalidate before fetching the same page again.

Instrumenting a job to report its own cost

An estimate is only useful if reality can be compared against it. Have workers record the transferred bytes for each request, the target host, the page type, and whether the response produced usable data. That small set of fields is enough to explain a budget variance without storing page bodies.

Compute a daily summary per target and per page type. The first table usually shows one or two expensive outliers: a template that loads a video, a pagination loop that walks empty pages, or an API that returns oversized JSON. Fixing those is cheaper than upgrading the plan.

Sample high-volume jobs instead of logging every request, and keep credentials, cookies, and content out of the records. Cost reporting should not create a second copy of the dataset or a new security surface.

Alert on deviation rather than on a fixed number. A job that suddenly transfers twice its usual daily volume has either changed behavior or hit a different page variant, and both are worth catching before the allowance is exhausted. The bandwidth section of the documentation lists the fields the gateway returns, which can be logged alongside the client-side count.

Estimating mobile bandwidth separately

Mobile traffic deserves its own line in the model. App and mobile-web endpoints often return media-heavy responses, and the plan cost per gigabyte is usually higher than residential. A single average across desktop and mobile will understate the part of the budget that is hardest to replace.

Measure mobile URLs with the device profile you will use in production, including the user agent and viewport. If the task reads text or structured data, block media early; if the task verifies creative, capture only the elements the evidence requires. The verification workflow described in the ad verification guide is a useful example of scoping capture to what the report actually needs.

Keep a larger reserve for mobile jobs. Re-checks are more expensive, fallbacks to another carrier can add attempts, and a failed case often needs to be repeated to be defensible. A budget that fits the happy path will not survive a week of real verification work.

Key takeaways

  • Budget from measured transfer per page type, not from request counts.
  • Retries, redirects, and re-checks can add thirty to a hundred percent on top.
  • Strip unnecessary assets and prefer structured endpoints before buying more bandwidth.

Frequently asked questions

Are failed requests billed as bandwidth?

Usually the bytes that crossed the network are counted even when the response was not useful, but plan terms differ. Check how your plan treats errors, redirects, and aborted downloads, and include them in the estimate.

Should I block images in headless scraping jobs?

If the data you need is in the document or a structured response, blocking images, fonts, and media is a safe way to cut transfer and speed up rendering. Verify with a content assertion, because some pages change layout or lazy-load content when assets are missing.

How much headroom should a first project include?

Start with twenty to thirty percent above the modelled total, then adjust after the first week of real usage. Jobs with mobile traffic or frequent parser changes usually need more.

Need proxies for this workflow?

Graviix provides residential, mobile, datacenter, and static ISP proxies with country and city targeting, rotating or sticky sessions, and a documented HTTP API.

Talk to the team

Continue reading