Proxy traffic per page is the number of bytes that pass through the tunnel when you download a page through a proxy. On a per-GB proxy, the bill follows this byte total, not the number of requests. The same page can take a few kilobytes or half a megabyte, depending on how you request it. The gap comes from compression, the side resources a browser pulls and the TLS overhead. This post explains where these bytes come from, how to calculate the cost and how to measure your own page.
The bytes that set the bill
A proxy cannot see inside HTTPS traffic. The client first opens a tunnel with CONNECT, then the TLS connection is set up inside that tunnel. What the proxy can count is the encrypted bytes passing through the tunnel.
Those bytes hold four parts: the TLS handshake (including the server's certificate chain), request headers, response headers and the response body. With a browser, CSS, JavaScript, font and image requests come on top. These requests open new tunnels or share an existing connection. Either way, their bytes are counted too.
This math reaches the invoice directly only on products billed by traffic. At Proxynet, Residential Proxy and mobile proxies are billed per GB, ISP and datacenter proxies per IP. If you pay per GB, page size matters as much as the unit price.
HTML only vs. a full browser
curl or an HTTP library downloads only the address you ask for. A browser reads the HTML and requests every resource in it as well. The gap grows with the page's structure.
In our test, Wikipedia's "HTTP compression" article came to 48 KB through the proxy with a compressed curl request. Opened in Playwright with an empty cache, the same page made 35 requests and came to 498 KB. Part of those requests went to separate domains that serve images. On the RFC 9110 page the gap was smaller: 219 KB vs. 357 KB. There, most of the extra load was font files from separate domains.
The browser's own traffic goes through the proxy too. In our first attempt, a browser opening example.com opened four more connections outside the page. They went to the browser's own services, such as accounts and notifications. When you set the proxy at browser level, these connections land on the bill as well. We covered proxy setup in Playwright in What Is Playwright and How to Use It With a Proxy.
If the data is in the HTML, you do not need a browser. If the page loads the data later with JavaScript, you may need one, but then cutting unneeded resources is a must.
Compression and Accept-Encoding
A server compresses the response only when the client asks for it. The client lists the methods it supports in the Accept-Encoding header: gzip, br (Brotli), zstd and so on. Without the header, most servers send the page raw.
Compression makes a big difference on text pages. The RFC 9110 page body came down at 1,188 KB uncompressed and 213 KB with gzip. The Wikipedia article dropped from 171 KB to 33 KB. The proxy carries the compressed bytes. Decompression happens on your machine and is not counted as traffic.
Client defaults differ. We checked the header each one sends against a local echo server:
| Client | Default Accept-Encoding | Compression |
|---|---|---|
| curl 8.23 | not sent | ✗ (needs --compressed) |
curl 8.23 --compressed | deflate, gzip, br, zstd | ✓ |
Node.js 24 fetch | gzip, deflate | ✓ |
| Python requests 2.34 | gzip, deflate, br | ✓ |
| HTTPX 0.28 | gzip, deflate, br | ✓ |
In Python libraries, br joins the list only when a Brotli package is installed. Check the header once in your own environment. If your script runs on curl, add the --compressed flag.
TLS and header overhead
Every new HTTPS connection starts with a TLS handshake. During it, the server sends its certificate chain. On small pages this overhead is many times the body.
example.com's compressed body was 334 bytes. The same request came to 6.5 KB through the proxy. Most of the gap was the TLS handshake. Reusing the connection changed the picture: ten separate curl processes used 64.6 KB, ten requests over the same connection 14.3 KB.
Headers count as well. Wikipedia's response headers came to 9.5 KB. That is about a third of the article's compressed body. HTTP/1.1 does not compress headers. HTTP/2 compresses them with HPACK.
The lesson is simple: if you send many small requests, do not open a new process or a new connection for each one. requests.Session in Python, or several URLs in one curl command, shrinks this overhead.
Cost math and retries
Monthly traffic works out roughly like this: page count × proxy traffic per page × (1 + retry rate). Do not guess traffic per page; measure it on the target site.
Example: 100,000 pages similar to the Wikipedia article we measured come to about 4.8 GB with compressed curl. The same job with a full browser comes to about 50 GB. If one in ten requests is repeated, add 10% to both figures. On the residential side, the GB price starts at $3.30. Multiply by that unit price.
A failed request is traffic too. In one round of the test, Wikipedia returned 429 Too Many Requests on the tenth request. That response went through the tunnel with its 3.4 KB body and was counted. Error pages, redirects and partial responses cut off by a timeout all go on the bill.
The legitimate way to lower the retry rate is to respect the rate limit. If you see 429, the problem is not the proxy but your request rate: read the Retry-After header and wait. We covered the total cost, including servers, workers and maintenance, in Web Scraping Cost.
Blocking unneeded resources
The cheapest byte is the one never requested. If you use a browser, cut image, font and media requests before they reach the proxy. Playwright does this with page.route:
const { chromium } = require('playwright');
const BLOCK = new Set(['image', 'font', 'media']);
(async () => {
const browser = await chromium.launch({
proxy: { server: 'http://pr.proxynet.io:8000', username: 'user', password: 'pass' },
});
const page = await browser.newPage();
// Cut image, font and media requests without ever sending them to the proxy
await page.route('**/*', (route) =>
BLOCK.has(route.request().resourceType()) ? route.abort() : route.continue()
);
// Add up header + body size of every finished request
const measurements = [];
page.on('requestfinished', (req) => {
measurements.push(req.sizes().then((s) => s.responseHeadersSize + s.responseBodySize));
});
await page.goto('https://www.rfc-editor.org/rfc/rfc9110.html', { waitUntil: 'networkidle' });
const total = (await Promise.all(measurements)).reduce((a, b) => a + b, 0);
console.log(`${measurements.length} requests, ${total} bytes`);
await browser.close();
})();This blocking cut traffic from 357 KB to 249 KB on the RFC page and from 498 KB to 397 KB on the Wikipedia article. Most of what remained on Wikipedia was JavaScript and CSS. Keeping only the main document brought the article down to 59 KB.
The number the script prints is the response size the browser sees. It leaves out TLS overhead and outgoing requests, so it stays below the proxy counter. In our test the script printed 219 KB for the RFC page, while the proxy counter recorded 276 KB for the same single load (the 249 KB in the table is the median of three runs). The gap came from TLS overhead, outgoing requests and the browser's own connections.
Paths outside the browser cut traffic too:
- Official API or JSON endpoint. If the site serves the data through an API, use it instead of the HTML. It is smaller and in line with the site's terms.
- Conditional request. Request a page you already downloaded with
If-None-MatchorIf-Modified-Since. If the page has not changed, the server returns a bodyless304. - Skipping needless pages. Do not queue paths that robots.txt excludes, or filter and sort duplicates.
Measuring your own page
The first measurement is done with curl. size_download is the body bytes, headers excluded. With --compressed, it shows the compressed size. size_header is the size of the response headers:
# Uncompressed
curl -s -o /dev/null -x http://user:pass@pr.proxynet.io:8000 \
-w '%{size_download} %{size_header}\n' https://example.com/
# Compressed
curl -s -o /dev/null -x http://user:pass@pr.proxynet.io:8000 --compressed \
-w '%{size_download} %{size_header}\n' https://example.com/The difference between the two size_download values is the traffic compression saves you. For curl's proxy options, see cURL with Proxy.
For a full page, open the browser's developer tools and turn off the cache in the Network tab ("Disable cache"). When you reload the page, two sizes appear in the bottom bar. "transferred" is the bytes that crossed the network, "resources" is the unpacked (decompressed) size. For proxy cost, "transferred" is the one to watch. It also leaves out TLS overhead, so the real bill comes out a little higher.
The most accurate figure is the counter on the proxy side. Run a trial of a few hundred pages and divide the traffic increase in your dashboard by the page count.
How we tested
We took the measurements on December 1, 2026 on Windows 11. The tools were curl 8.23.0, Node.js 24.22.2, Playwright 1.63.0 and a locally installed headless browser, version 145. All traffic went through a local Node.js proxy that counts the bytes passing both ways through every CONNECT tunnel. The "through the proxy" values in the tables are the sum of both directions. 1 KB was taken as 1,000 bytes.
With curl, we measured the three pages uncompressed and with --compressed, twice each. Results stayed within a few bytes across repeats:
| Page | Body, uncompressed | Body, compressed | Through the proxy (compressed) |
|---|---|---|---|
| example.com | 577 B | 334 B (br) | 6.5 KB |
| RFC 9110 (rfc-editor.org) | 1,188 KB | 213 KB (gzip) | 219 KB |
| Wikipedia, "HTTP compression" | 171 KB | 33 KB (gzip) | 48 KB |
In the browser, each measurement opened in a new context with an empty cache and waited until the network went idle. The browser's background services were turned off with the --disable-background-networking flag. Each scenario ran three times; the table shows the median:
| Page | Main document only | Images, fonts, media blocked | Full load |
|---|---|---|---|
| example.com | 8.2 KB | 9.8 KB | 9.8 KB (2 requests) |
| RFC 9110 | 222 KB | 249 KB | 357 KB (11 requests) |
| Wikipedia, "HTTP compression" | 59 KB | 397 KB | 498 KB (35 requests) |
Despite the flag, the browser opened extra connections on the first load of the first round, and example.com came to 29.7 KB. The median leaves this outlier out. The figures belong to these three pages. Other sites will show different ratios.
The bottom line
Measure a few pages on the target site, open a browser only if the data arrives through JavaScript, and cut images and fonts. For HTML-heavy, high-volume jobs, Datacenter Proxy ties the bill to the number of IPs rather than traffic. Above all, turn on compression: a curl script running without --compressed wastes most of its traffic on text pages.
Sources
- curl man page, -w/--write-out and --compressed: curl.se
- RFC 9110 HTTP Semantics, 12.5.3 Accept-Encoding: rfc-editor.org
- Accept-Encoding header: developer.mozilla.org
- Playwright Network, Abort requests: playwright.dev
Frequently asked questions
How many MB does a web page use on a proxy?
It depends on the page and the method. In our measurement, the same Wikipedia article came to 48 KB with compressed curl and 498 KB with a full browser. example.com stayed under 10 KB. Instead of a general average, measure a few pages from your own target site. Only that measurement gives an accurate cost estimate. Measure with both curl and a browser, and put the two figures side by side.
Does curl --compressed reduce proxy traffic?
Yes, if the server supports compression. The --compressed flag sends the server an Accept-Encoding header, and the response arrives compressed. In our test, the RFC 9110 page body dropped from 1,188 KB to 213 KB. If the server does not compress, the flag does no harm; the response simply arrives raw. curl does the decompression itself and writes plain text to the file.
What is the difference between transferred and resources in developer tools?
"transferred" is the bytes that actually crossed the network, including compressed bodies and headers. "resources" is the total unpacked, that is decompressed, size of the resources. The one close to proxy cost is "transferred". Turn off the cache when measuring, or cached resources show near zero and the page looks cheaper than it is. Open developer tools before loading the page, because counting starts once the tools are open.
What does a proxy count in HTTPS traffic?
It counts the encrypted bytes passing through the tunnel. A proxy cannot see inside a tunnel opened with CONNECT. So the TLS handshake, request and response headers and the body are counted together. On small pages the handshake is bigger than the body. On example.com, a 334-byte body came to 6.5 KB through the proxy. Reusing the same connection spreads this overhead across requests.
Are failed requests billed too?
Yes, every response the target site returns is traffic. A 403 page, a 429 warning, a redirect and an interrupted download all pass through the tunnel. In our test, Wikipedia's 429 response was counted with its 3.4 KB body. Respecting the rate limit lowers the retry rate. Every skipped retry is one page's worth of traffic saved.
Does blocking images break the page?
Usually not on the data side. Text, prices and tables arrive in the HTML or JSON, and image files do not affect them. Problems appear on pages that depend on images loading to work. Try blocking on a few pages first and check that the fields you collect arrive complete. If a field is missing, narrow the block list, for example cut only images.




