Which proxy is best for web scraping?
| Target site | Recommended proxy | Session mode |
|---|---|---|
| Public data, no bot protection | Datacenter | Rotating; fastest and cheapest per GB |
| E-commerce, travel, search results | Rotating residential | New IP per request |
| Multi-step flows (search, then paginate) | Rotating residential | Sticky, 5–30 minutes |
| Long runs on one address | ISP | Same IP for the whole job |
| Mobile-only sites | Mobile | Rotating or sticky |
Start with datacenter IPs. Move a target to residential only when it refuses datacenter traffic, because residential costs twice as much per GB. Rotating proxies explains how rotation and sticky sessions work across all three pools.
How much traffic and money does a scraping job need?
Per-GB proxies charge for what you download and upload, so the size of the pages matters more than the number of IPs.
| Job | Pages | Avg. page size | Traffic |
|---|---|---|---|
| Daily price check, mid-size catalogue | 10,000 | 200 KB | ~2 GB |
| Weekly crawl, large catalogue | 100,000 | 200 KB | ~20 GB |
| Headless browser, images blocked | 10,000 | 1 MB | ~10 GB |
| Headless browser, everything loaded | 10,000 | 3 MB | ~30 GB |
Multiply the traffic by the per-GB rate: rotating datacenter from $1.21 per GB, rotating residential from $2.42 per GB. A weekly 20 GB crawl through datacenter IPs therefore costs half what it costs through residential IPs.
The "from" rates apply to larger packages; smaller packages cost a little more per GB, as the pricing page shows. Page sizes vary widely, so measure ten pages from your target before you buy. Two habits cut traffic sharply: request the JSON endpoint a page loads from instead of the full page where the site permits it, and block images, fonts and video in headless browsers.
How to keep scraping reliable
- Rotate IPs for independent requests. With a rotating pool, every request can exit from a different IP, which spreads load instead of concentrating it on one address.
- Keep sessions consistent. If a site sets cookies on one page and checks them on the next, send both requests through the same sticky session.
- Limit concurrency per site. Hundreds of parallel requests to one domain can overload it, whatever the IP. A few requests per second per domain is a sensible ceiling to start from.
- Identify your client honestly. Send a normal
User-AgentandAccept-Language, and where appropriate include a contact URL so site owners can reach you. - Honour rate limits. Treat
429 Too Many Requestsas an instruction: wait for theRetry-Afterinterval, then continue more slowly. - Target the right country. Prices and content often change by region, so pick IPs in the market you are measuring. See locations.
Python example: rotating proxies that respect rate limits
import random
import time
import requests
PROXY = "http://USERNAME:PASSWORD@HOST:823" # rotating port: new IP per connection
proxies = {"http": PROXY, "https": PROXY}
headers = {
"User-Agent": "Mozilla/5.0 (compatible; PriceMonitor/1.0; +https://example.com/bot)",
"Accept-Language": "en-US,en;q=0.9",
}
def fetch(url: str, attempts: int = 4) -> str:
for attempt in range(attempts):
try:
response = requests.get(url, proxies=proxies, headers=headers, timeout=30)
if response.status_code == 200:
return response.text
if response.status_code == 429:
# the site asked us to slow down: wait as long as it says
time.sleep(int(response.headers.get("Retry-After", 2**attempt)))
continue
except requests.RequestException:
pass
# exponential backoff with jitter
time.sleep(2**attempt + random.random())
raise RuntimeError(f"Failed after {attempts} attempts: {url}")
print(fetch("https://api.ipify.org"))For sticky sessions, country targeting and the SOCKS5 port, see the sessions and location targeting docs.
Scraping responsibly
- Collect only public data you have a lawful basis to use. Leave out personal data unless you have one.
- Respect
robots.txt, the site's terms and its rate limits. - Do not use proxies to log in to accounts you do not own, or to get around logins, paywalls or other access controls.
- Store what you collect securely and keep it only as long as you need it.
FuseProxy's acceptable use policy lists what is not allowed on the network, and is web scraping legal? explains the legal questions in the US, EU and UK.