Minimal, working examples for using rotating residential proxies in Python with the requests library: per-request IP rotation, sticky sessions, and country/city geo-targeting.
A rotating gateway gives you a new residential IP on every request. A sticky port keeps the same IP for a whole session (login flows, carts, multi-step scraping).
import requests USER = "YOUR_USERNAME" # from your dashboard PASS = "YOUR_PASSWORD" # New IP on every request (rotating port 9000) rotating = f"http://{USER}:{PASS}@residentialboson.quantumproxies.io:9000" r = requests.get("https://ipinfo.io/json", proxies={"http": rotating, "https": rotating}, timeout=30) print(r.json()) # different IP each call
Append -country-XX to the username:
us_proxy = f"http://{USER}-country-us:{PASS}@residentialboson.quantumproxies.io:9000" de_proxy = f"http://{USER}-country-de:{PASS}@residentialboson.quantumproxies.io:9000"
Use the sticky port 10000 with a session id and a lifetime in minutes:
sticky = f"http://{USER}-country-us-session-ab12-lifetime-10:{PASS}@residentialboson.quantumproxies.io:10000" s = requests.Session() s.proxies = {"http": sticky, "https": sticky} print(s.get("https://ipinfo.io/json").json()["ip"]) print(s.get("https://ipinfo.io/json").json()["ip"]) # same IP for 10 minutes
la = f"http://{USER}-country-us-state-california-city-losangeles:{PASS}@residentialboson.quantumproxies.io:10000"
Run the full demo:
python rotate.py
Datacenter IP ranges are easy to fingerprint and block. Residential proxies route through real consumer connections, so requests look like normal user traffic — the difference matters on e-commerce, sneaker, travel and search targets.
These examples run on QuantumProxies rotating residential proxies — 195+ countries, city and ISP targeting, pay-as-you-go per GB with no monthly seat. Grab credentials in the dashboard and paste them into the snippets above.