Guide 5 min read Updated

Rotating proxies and how they rotate

How IP rotation actually happens, the difference between gateway and list rotation, and how to pick a rotating setup that fits your budget.

Rotating proxies change the IP address your traffic comes from, so a long series of requests doesn't all arrive from one place. Rotation can happen on every request, at the end of a session or on a timer. It can be done by the provider's gateway or by your own code cycling through a list. The right setup depends on what you're fetching and how you'd rather pay for it.

Why rotate at all

Websites protect themselves by counting requests per IP. One address that asks for thousands of pages an hour stands out, gets slowed down and may be refused. Rotation spreads the same work across many addresses, so each one carries a modest load. It helps in other ways too:

  • Failures stay small. If one IP gets rate limited, the next request simply goes out through another.
  • You can sample locations. With country targeting, each request can come from the market you're checking.
  • You don't manage individual addresses, renew them or replace the bad ones.

Rotation isn't a way around a site's rules. If a site forbids automated access, more IPs don't change that. Keep request rates reasonable, and respect robots.txt and the terms of the sites you visit.

Two ways to run rotating proxies

Gateway rotation List rotation
How it works You connect to one endpoint and it picks the exit IP Your code picks the next proxy from a list
Typical products Residential and mobile pools Fixed IPs: datacenter, ISP, static residential
Number of IPs Whatever the pool offers in your target country As many as you rent
Billing Per GB of traffic Per IP, per period
Effort Lowest, a single proxy string You handle the cycling and health checks

Gateway rotation

With a rotating gateway, sometimes called a backconnect proxy, you use a single host and port. The provider's system assigns a different exit IP to each new connection, or keeps one for a sticky session when you ask. Your code doesn't change when the IP does. With us, the dashboard's proxy generator creates the connection string for the options you choose, and the proxy formats doc explains each part of it.

Rotating a list in your own code

If you rent several fixed IPs, you can rotate through them yourself. Put one proxy URL per line in a file, then cycle through the list:

import itertools
import requests

# proxies.txt holds one line per IP, for example http://USERNAME:PASSWORD@HOST:PORT
with open("proxies.txt") as f:
    proxy_list = [line.strip() for line in f if line.strip()]

rotation = itertools.cycle(proxy_list)

for url in ["https://example.com/a", "https://example.com/b"]:
    proxy = next(rotation)
    r = requests.get(url, proxies={"http": proxy, "https": proxy}, timeout=30)
    print(url, r.status_code)

List rotation gives you full control, and fixed datacenter proxies are a low-cost way to do it on sites that accept data center traffic. The catch is that you're working with a small set of addresses, so per-IP limits arrive sooner than with a large pool. Add a simple health check, too: skip a proxy for a few minutes after it fails instead of sending it straight back into the cycle.

Per request, per session or on a timer

Rotation timing matters as much as the size of the pool:

  • Per request: every new connection may get a new IP. Best for independent fetches such as product pages or search results.
  • Sticky session: the same IP for a run of requests, so cookies, carts and logins stay consistent.
  • Timed rotation: some providers change the IP after a set number of minutes, whether or not you're done. If you use that model, plan for the switch in your code.

One rule of thumb covers most cases: rotate between tasks, not in the middle of them. A checkout flow or a paginated search that switches IP halfway can look broken to the site, and you may get errors or a fresh login page. The guide to rotating and sticky sessions shows how to set each mode.

Keep in mind that HTTP clients often reuse connections. If your library keeps a connection open with keep-alive, several requests can travel over it and leave from the same exit. When you need a new IP per request, open a new connection for each one, or check how your library pools connections.

Signs your rotation isn't working

Rotation problems rarely announce themselves. Watch for these patterns in your logs:

  • The same exit IP keeps coming back. Your client is probably reusing one connection, or you're in a sticky session you forgot to release.
  • Errors climb after a steady start. You're sending too many requests per minute for that site, whatever the number of IPs. Slow down before you add more addresses.
  • Multi-step flows fail halfway. The IP changed between steps that belong together. Move those steps into a sticky session.
  • Pages arrive in the wrong language or currency. The exit country is right but your headers aren't. Set the language header to match the market.
  • One site fails while others work. The problem is that site's limits, not the proxy. Lower the pace there instead of retrying harder.

Logging the exit IP, status code and response time for each request makes every one of these easy to spot.

Which of our products rotate

Product How the IP behaves Billed per
Residential proxies Rotates per request or holds a sticky session, with country targeting GB
Mobile proxies Rotating or sticky, on 4G and 5G carrier IPs GB
Static residential proxies Fixed for 30 days, rotate a list yourself IP
ISP proxies Fixed for 30 days, rotate a list yourself IP
Datacenter proxies Fixed for 30 days, rotate a list yourself IP

Budgeting for rotation

Per-GB pools and per-IP lists suit different traffic shapes. If you make many small requests across many sites, per-GB billing usually comes out cheaper: residential traffic starts at $1.00/GB and mobile at $2.50/GB on the largest packages. If you run steady, long-lived work through a handful of addresses all month, a list of fixed IPs can cost less, with datacenter IPs from $0.50/IP per 30 days.

Estimate before you buy. For per-GB plans, multiply the pages you'll fetch by their average size. For per-IP plans, work out how many addresses you need to keep each one's request rate reasonable. Then compare both on the pricing page. Everything is pay-as-you-go with no subscription, and larger packages lower the price per unit, so you can start small, measure and scale up.

Questions, answered

What is a rotating proxy?
A rotating proxy changes the IP address your requests come from, either on every request or when a session ends. You usually connect to one gateway address, and the rotation happens behind it.
Which proxy types can rotate?
Residential and mobile proxies rotate through a pool and are billed per GB. Static residential, ISP and datacenter proxies are fixed IPs, but you can rotate through a list of them in your own code.
Is rotating on every request always better?
No. Anything that relies on cookies or a login should stay on one IP for the whole flow, so use a sticky session for those steps and per-request rotation for independent fetches.
How much do rotating proxies cost?
Rotating residential traffic starts at $1.00/GB and mobile traffic at $2.50/GB on the largest packages. Smaller packages cost more per GB.

Real IPs, fresh and clean.

Residential, mobile, ISP and datacenter proxies on one crypto balance. Start with one GB or one IP. No KYC.

  • Real IPs
  • Fresh, clean
  • No KYC
  • Crypto