Proxies for Web Scraping: Which Type Fits Which Job

Bart Proxies Team
9 Min Read

The right proxy for web scraping depends on the job. Use rotating residential proxies for wide crawls of public pages, where each request can leave from a different IP address. Use static ISP proxies for crawls that must keep one IP address for a whole session, such as a logged-in crawl on an account you own.

Quick answer

  • Rotating residential proxies fit many independent requests for public pages, across one or many locations. They are usually billed per gigabyte.

  • Static ISP proxies fit session-bound crawls: logged-in accounts you own, multi-step flows and all-day monitors. They are usually billed per IP per month.

  • Pool size is a division: the request rate you plan to send to one site, divided by the rate you want any single IP to send.

  • A 429 response means slow down. Wait for the Retry-After time if the server sends one, then continue at a lower rate.

  • A proxy does not fix a request rate that is too high, missing headers, or a path the site excludes for crawlers.

Which proxy type fits which scraping job?

The proxy type follows from two things: whether each request stands alone, and whether the site must see the same IP address from one request to the next.

Web scraping is collecting data from web pages with a program instead of by hand. A proxy is a server that forwards your requests, so the website sees the proxy's address, called the exit IP, instead of yours.

Scraping jobProxy typeRotationUsual billing unit
Many public pages on one or many sites: prices, listings, search resultsRotating residentialNew IP per requestPer GB
The same pages as served in many countries or citiesRotating residential with location targetingPer request, inside the chosen locationPer GB
Multi-step flow that depends on cookies, such as paging through a searchRotating residential with a sticky session, or static ISPOne IP per sessionPer GB, or per IP
Logged-in crawl on an account you ownStatic ISPNone: one fixed IP per accountPer IP, per month
All-day monitoring of a fixed set of heavy pagesStatic ISPRound-robin over your own fixed listPer IP, per month
A documented public API with a keyOften noneNot neededNone

When are rotating residential proxies the right choice?

Rotating residential proxies are the right choice when the job is a large number of independent requests for public pages, often from more than one country or city.

A rotating residential proxy routes your requests through a pool of IP addresses that internet providers assigned to home connections. You connect to one gateway address, and the provider picks the exit IP for each request or each short session.

Two things make this type fit wide crawls:

  • Load is spread. Each request leaves from a different address, so no single IP carries the whole job. The site's limits still apply to your total traffic.

  • Location coverage is wide. With country, state or city targeting, you fetch the page as a visitor in that place receives it, which matters for local prices and local search results.

The trade-offs are speed and data cost: the extra hop through a home connection usually makes responses slower. Per-GB billing also makes page weight matter: request the HTML document only, and skip images, fonts and video unless you need them.

A sticky session keeps the same exit IP for a limited time. Use one when a few requests belong together, such as a search and its result pages.

When are static ISP proxies the right choice?

Static ISP proxies are the right choice when the site must see the same IP address for the whole session, or when a small set of IPs moves a lot of data.

A static ISP proxy is an IP address registered to an internet service provider and hosted on a server in a data center. It does not rotate. It is usually sold per IP per month, often with unmetered traffic.

Typical jobs:

  • Logged-in crawls on accounts you own, with one fixed IP per account. An address that changes in the middle of a session can trigger extra login checks.

  • Heavy pages, where a per-GB bill would grow faster than a flat per-IP bill.

The trade-off is coverage. You get only the IPs and locations you rent, and each IP carries more requests, so the pace per IP matters more.

When is a proxy not the problem?

A proxy is not the problem when the site is reacting to what you send or how fast you send it, not to where the request comes from. Check three causes before you change proxy type.

Request rate

Many sites count requests per IP address, and many also count per account, session cookie or API key. A new IP does not reset a limit tied to your account or key. Lower the rate first.

Headers and cookies

HTTP libraries and command-line tools send their own default User-Agent header, such as python-requests/x.y from Python requests or curl/x.y from the curl command. Some sites answer those requests with a different page or a refusal. Set a User-Agent that describes your client, send Accept and Accept-Language, and keep cookies between the requests of one session.

Robots rules and terms

robots.txt is a file at /robots.txt in which a site tells crawlers which paths they may fetch. Its format is standardized in RFC 9309. The RFC notes that the rules "are not a form of access authorization", and the site's terms of service are a separate document. Read both before a crawl.

Some files also carry a Crawl-delay line. It is not part of RFC 9309, but it states the pace the site asks for. If a path is disallowed or the terms rule out automated access, a different IP address does not change that. Look for an official API, or ask the site for permission.

How many IPs does a scraping job need?

Divide the request rate you plan to send to one site by the rate you want any single IP to send. The result is the number of IPs that must work at the same time.

ips_in_use = REQUESTS_PER_MINUTE_TO_SITE / REQUESTS_PER_MINUTE_PER_IP
  1. Set the target rate. Divide the pages per run by the minutes you have. For example, 36,000 pages in 60 minutes is 600 requests per minute. If the site's terms, API quota or Crawl-delay line allow less, give the run more time instead of adding IPs.

  2. Set the per-IP rate. Choose how many requests one address sends, and start low. A published limit, such as an API quota or a Crawl-delay line, applies to your whole crawler, not to each IP.

  3. Divide. At 10 requests per minute per IP, 600 / 10 = 60 IPs in use at once.

  4. For static IPs, buy that number plus a few spares. For a rotating pool, run that number of parallel workers, each sending at the per-IP rate.

With a rotating pool you buy traffic, so estimate gigabytes as well: 36,000 pages at 100 KB each is 3.6 GB per run.

How should a scraper rotate IPs and pace requests?

Rotate per request for independent pages, hold one IP for each multi-step session, and pace each site separately.

  • Use per-request rotation for pages that do not depend on each other, such as product pages.

  • Keep one IP and one cookie jar together for a login or a multi-step flow. Do not switch IP in the middle of it.

  • Put a delay between requests to the same site and vary it a little, so requests do not arrive in bursts.

This Python sketch paces requests and backs off on a 429 or 503. Put your own list of pages in URLS.

import random
import time
import requests

PROXY = "http://USERNAME:PASSWORD@HOST:PORT"
session = requests.Session()
PROXIES = {"http": PROXY, "https": PROXY}
URLS = ["https://example.com/page-1", "https://example.com/page-2"]
session.headers["User-Agent"] = "example-crawler/1.0 (CONTACT_EMAIL)"

def fetch(url, max_tries=4):
    wait = 5
    for attempt in range(max_tries):
        try:
            r = session.get(url, proxies=PROXIES, timeout=30)
        except requests.exceptions.RequestException:
            time.sleep(wait)
            wait = wait * 2
            continue
        if r.status_code == 200:
            return r.text
        if r.status_code in (429, 503):
            retry_after = r.headers.get("Retry-After", "")
            time.sleep(int(retry_after) if retry_after.isdigit() else wait)
            wait = wait * 2
            continue
        return None  # 403, 404 and other codes: do not retry
    return None

for url in URLS:
    html = fetch(url)
    time.sleep(random.uniform(2, 5))  # example delay

Whether a rotating gateway changes the exit IP per request or per connection depends on the provider. The sketch reuses one requests.Session, which keeps its connection to a site open, and for an HTTPS page a proxy can only choose the exit IP when that connection is opened. If you need a new IP for every request, open a new connection each time: inside fetch, replace session.get(...) with requests.get(url, proxies=PROXIES, headers=session.headers, timeout=30). This does not keep cookies between requests. Compare the exit IP of two requests before a run. The Bart Proxies proxy tester shows the exit IP, country, city and ISP of each proxy in a list.

What should a scraper do with 403 and 429 responses?

Treat a 429 as an instruction to slow down and a 403 as a refusal to investigate.

StatusMeaningWhat to do
429 Too Many RequestsYou sent too many requests in a given time (RFC 6585)Wait for Retry-After if present, then lower the rate and the number of parallel connections
403 ForbiddenThe server understood the request and refuses it (RFC 9110)Do not retry in a loop. Check the terms, robots.txt, login requirements and headers. Some sites serve a region only to visitors in that region
503 Service UnavailableThe server cannot handle the request for nowWait, honor Retry-After, and retry later with a longer pause

The Retry-After header carries either a number of seconds or a date. When it is absent, use exponential backoff: double the pause after each failed try, and stop after a few tries.

A response with status 200 that shows a challenge page instead of content also counts as a refusal, so check the content and not only the status code.

Where Bart Proxies fits

Bart Proxies sells rotating residential proxies and static ISP proxies. Its rotating residential plan is a worldwide product billed per GB, and the plan page lists state and city selection and 150+ countries. U.S. static ISP proxies are sold per proxy. The FAQ states that they are dedicated to one customer and come with unlimited bandwidth, and the ISP plan cards on the home page list SOCKS5 and HTTP. Full /24 subnets are on the subnet plans page, which lists 255 proxies per subnet. The FAQ says both IP whitelisting and username/password authentication are supported. For current rates, see the pricing section on the home page.

Frequently Asked Questions

It depends on the job. Rotating residential proxies fit wide crawls of public pages across many locations. Static ISP proxies fit crawls that must keep one IP address for a whole session, such as a logged-in crawl on an account you own.

Not always. A small job that stays within a site's rate limits can run from one IP address. A proxy helps when you need a page as it is served in another country or city, or when you want to spread a large job over many addresses so that no single IP carries all of it. The site's limits still apply to your total traffic.

Divide the requests per minute you plan to send to one site by the requests per minute you want any single IP to send. For example, 600 requests per minute at 10 per IP needs 60 IPs working at the same time.

A rotating proxy gives each request or each short session a different exit IP from a shared pool and is usually billed per gigabyte. A static proxy keeps the same IP address for as long as you rent it and is usually billed per IP per month.

429 Too Many Requests means the server is rate limiting you. Wait for the time given in the Retry-After header if the server sends one, then continue at a lower request rate.

Bart Proxies Team
Tags
  • web scraping
  • rotating proxies
  • residential proxies
  • ISP proxies