How much bandwidth do I need for web scraping proxies?
Size a scraping proxy allowance from bytes per usable result, counting retries, listing pages and TLS overhead. Worked example and formula.
Estimate your allowance from a representative run: divide the total bytes the run transferred by the usable results it produced, then multiply by the results you plan to collect in the billing period. The transfer total includes everything that crossed the proxy, not only the pages you kept: failed attempts, retries, listing pages, headers and TLS handshakes.
transfer per usable result = total measured transfer / usable results
planned transfer = planned usable results × transfer per usable result
average throughput = transfer per run / run windowA worked estimate (hypothetical numbers)
The figures below are example inputs chosen to show the arithmetic, not measurements of any real target. All units are decimal: 1 KB is 1,000 bytes, 1 MB is 1,000 KB, 1 GB is 1,000 MB.
Suppose a sample run produces 1,000 usable records and transfers this:
| Traffic in the sample run | Attempts | Average transfer | Total |
|---|---|---|---|
| Record pages that passed validation | 1,000 | 350 KB | 350 MB |
| Record pages the validator rejected (challenge or login page) | 100 | 50 KB | 5 MB |
| Timed-out or failed attempts that were retried | 200 | 50 KB | 10 MB |
| Listing and pagination pages | 200 | 100 KB | 20 MB |
| Headers and TLS handshakes, assumed per attempt | 1,500 | 10 KB | 15 MB |
| Whole run | 1,500 | 400 MB |
The 10 KB overhead row is an assumption for a new tunnel per attempt; connection reuse lowers it, and your own measurement replaces it.
- Transfer per usable result: 400 MB / 1,000 = 0.4 MB.
- Monthly transfer for 100,000 records: 100,000 × 0.4 MB = 40,000 MB = 40 GB. In binary units that is 40,000,000,000 / 1,073,741,824 ≈ 37.25 GiB.
- What the shortcut misses: sizing from validated pages alone gives 100,000 × 350 KB = 35 GB. The rejected pages, retries, listings and overhead are 50 MB of the 400 MB sample, one-eighth of the real total, so the shortcut comes up 5 GB short.
- Throughput: if the 100,000 records are collected in 20 runs of 5,000, each run moves 5,000 × 0.4 MB = 2 GB. Finishing a run inside one hour needs 2,000,000,000 bytes × 8 = 16,000,000,000 bits over 3,600 seconds ≈ 4.4 Mbps on average, before allowing for idle time or uneven responses.
These numbers come from the client. A local counter such as curl's size_download, or a script summing response sizes, is not the figure you are billed on. The provider's meter sits at its own boundary and may count headers, the CONNECT exchange and TLS bytes differently. Compare the two over an isolated window (described below) before buying against the local total.
Turning the estimate into a plan. The proxy calculator does the same arithmetic from requests per run, a failure allowance, average transfer per request and runs per month, then names the smallest listed plan size that covers it. It counts every failed attempt at full size, so treat its figure as an upper estimate next to a measured one. At 40 GB a month, the smallest Rotating Datacenter size that covers the example is $23.50/month for 50 GB ($0.47/GB); if the target refuses datacenter exits, the same 40 GB lands on residential at $34.99/month for 50 GB ($0.69/GB). Whether the 10 GB left over is enough margin depends on how much your measured runs vary, so size the margin from repeated runs rather than a fixed percentage. Plans of the same type stack if a projection outgrows a listed size. All products are on the pricing page.
Keep GB, GiB and Mbps separate
A decimal gigabyte, or GB, is 1,000,000,000 bytes. A gibibyte, or GiB, is 1,073,741,824 bytes. Use the unit in the provider's metering documentation rather than treating the labels as interchangeable; the example above differs by almost 3 units between them.
Throughput uses bits, not bytes. Multiply bytes per second by 8 to get bits per second, and remember that 1 Mbps is 1,000,000 bits per second.
Keep raw byte counts in your logs and convert only when reporting or comparing against an allowance. Rounding each request before summing the job adds error you cannot remove later.
Measure a proxied request before scaling the job
Replace the example inputs with a measurement from your own scraper configuration: the same targets, authentication, pagination, compression and browser behavior you run in production. The curl authenticated proxy requests workflow covers the request setup.
Use curl to inspect transfer for a request you are authorized to make. Set PROXY_URL to your authenticated proxy endpoint and TARGET_URL to the permitted target. Keep credentials out of shared logs and shell history.
This command appends curl's reported download bytes, upload bytes and received header bytes to a CSV file when curl exits successfully:
if measurement=$(curl \
--silent --show-error \
--location \
--compressed \
--proxy "$PROXY_URL" \
--output /dev/null \
--write-out '%{size_download},%{size_upload},%{size_header}' \
"$TARGET_URL"); then
printf '%s\n' "$measurement" >> transfer.csv
fiThe fields describe curl's transfer measurements. They are not the provider's billing counter. Header treatment, protocol overhead, redirects and accounting boundaries need separate verification against the provider's documentation and usage records.
The command does not use --fail, so an HTTP error response still produces a logged measurement. That matters because an error page consumes transfer while contributing nothing to your dataset. However, a transport failure makes the conditional skip logging, even if some bytes moved before the failure.
Treat this command as an inspection tool, not a production accounting system. Production telemetry must record partial transfers, errors, attempts and output validation. Curl's exit status alone does not establish scraping success.
Count usable results after parsing, validation and deduplication, not after receiving a 200: a successful response can carry a login page, a challenge or incomplete data. Keep the validator version beside the transfer baseline, because a stricter validator accepts fewer records and changes the denominator even when the traffic stays the same. If a run produces no usable results, the ratio is undefined; fix access or parsing before using that run to size anything.
Sum the measurements without confusing them with billed usage
This Python script totals the CSV fields separately. It converts downloaded body bytes to decimal GB but deliberately does not label the total as billed bandwidth.
import csv
from decimal import Decimal
fields = ('download_bytes', 'upload_bytes', 'received_header_bytes')
totals = dict.fromkeys(fields, 0)
with open('transfer.csv', newline='') as source:
for row in csv.reader(source):
values = dict(zip(fields, map(int, row), strict=True))
for field, value in values.items():
totals[field] += value
for field, value in totals.items():
print(f'{field}={value}')
print(f"download_GB={Decimal(totals['download_bytes']) / Decimal('1000000000')}")Run the script with a Python version that supports zip(..., strict=True) (3.10 or later). Keep the CSV limited to the rows the command generates, without a header row.
Then compare your local totals with the provider's usage over an isolated measurement window. On Node4 the Dashboard shows consumption against your allowance and Analytics keeps per-proxy transfer history. Stop unrelated jobs during the window so their traffic does not contaminate the comparison, and repeat the check after changing the client, compression settings or request path.
The provider's documented meter determines billed usage; local telemetry explains where the traffic went. Use both rather than assuming they measure the same boundary.
Count the entire browser session
For browser scraping, the navigation document is only part of the workload. Scripts, stylesheets, images, fonts, API calls and embedded frames create additional requests, and a metric that counts only the main response misses them.
Measure the browser context used for the actual job, including navigation, pagination and any interaction needed to expose the data. If the browser keeps sending background requests after extraction, close the page or context when the task is complete.
Resource blocking helps when the blocked resources are unnecessary for the authorized collection task. Blocking scripts or dependent requests can also change rendering, prevent data loading or break navigation, so validate extracted records after changing resource rules.
Cache state belongs in the measurement plan too. A fresh browser context and a reused one do not make the same network requests. Measure the lifecycle your production workers use rather than treating every page as a cold load, and record the browser version, resource rules and context lifecycle with the measurements so a later change in usage can be explained. The Puppeteer and Playwright workflow covers the browser setup itself.
Why the number drifts after you buy
Transfer per result changes when the workload changes. When usage rises, find which of these moved before raising the allowance; that separates a real increase in scope from a regression in the scraper.
- Response content: markup, JSON and downloaded files differ widely. Measure each target class rather than applying one response size everywhere.
- Failed attempts and retries: block pages, server errors and interrupted transfers add traffic with no output. Set a retry limit and classify errors before retrying; repeating an authorization failure or a broken parser burns bytes without fixing anything.
- Pagination and discovery: listing pages are supporting traffic. A site redesign that adds a pagination step raises transfer per result with no change in output.
- Compression and caching: content encoding changes what crosses the network. Keep measurement settings identical to production, because comparing compressed transfers with decompressed body lengths produces a mismatch before billing enters the picture. Check the provider's accounting rules before assuming a compression saving shows up on the bill.
- Refresh scope: recollecting unchanged records adds transfer. Define which records need refreshing and whether the target supports conditional requests.
A smaller saved dataset does not reduce proxy bandwidth if the scraper downloads the same responses; deleting fields after download changes storage, not transfer. Cut traffic at the request boundary instead: request only the fields a supported API offers, skip unnecessary resources and skip records that do not need recollection. Validate that each change preserves the output you need.
Match capacity to the collection window
The monthly total and the run window are separate checks. In the example, 40 GB a month says nothing about whether a 2 GB run finishes inside its hour.
Concurrent connections describe simultaneous activity, not a data allowance or a promised transfer rate. Raising concurrency does not change the dataset, but it changes how fast requests are issued and can change how many fail. Increase it while tracking completed results, transfer and errors together, and stop when extra connections add traffic without adding usable output. The aiohttp high-concurrency guide shows how to bound concurrency in code.
Node4's Rotating Unmetered suits teams that would rather size by concurrent connections than gigabytes, starting at $29.00/month for 250 connections ($0.116 per connection). Its connection-based model does not tell you the throughput your workload will achieve, so test completed output under your target conditions. An unmetered plan also leaves the engineering constraints intact: connection management, bounded retries, local network capacity and a schedule. Keep transfer telemetry even when data volume is not what you buy.