Shifter Guides

How to Set Up Shifter Proxies: Endpoints, Targeting, Sessions and Code

A step-by-step Shifter setup: the residential and ISP endpoints, username parameters for country, city, sessions and TTL, working cURL, Python and Node.js examples, and fixes for common errors.

By Team of Monkeys Editorial Updated 3 min read Affiliate disclosure

This guide contains affiliate links to Shifter, Proxy Seller and Geonode. If you buy through them we may earn a commission, at no extra cost to you.

Shifter Setup Guide illustration showing Credentials connecting through p.shifter.io to Website, covering endpoints, curl, python 3jdej38j4

This guide gets Shifter proxies working in a few minutes. You need an account and an active plan; credentials are in the dashboard.

1. Know your endpoints

ProductHostPortProtocols
Residentialp.shifter.io443HTTP(S), SOCKS5
ISPisp.shifter.io443HTTP(S), SOCKS5

Residential requests use username and password authentication. ISP proxies use one username per IP with a shared password.

2. Build the username

Residential targeting and sessions go in the username:

  • customer-USERNAME on its own: any location, new IP every request.
  • customer-USERNAME-country-us: a US IP.
  • customer-USERNAME-country-us-sid-123ABC: a US IP held for the session 123ABC.
  • customer-USERNAME-ttl-60: a session with a set lifetime.

Use a new sid value whenever you want a fresh sticky IP.

When the proxy finally connects (animated GIF) 3jdej38j4
When the proxy finally connects. GIF via GIPHY

3. Test with cURL

bash
curl -x http://customer-USERNAME-country-us:PASSWORD@p.shifter.io:443 https://ipinfo.io/json

You should see a US residential IP. Run it twice: without a sid, the IP should change. Our cURL proxy guide covers more flags.

Shifter tip: Before you scale, run your real targets through Shifter for a few days and record success rate and GB per page. Our every Shifter guide and comparison shows where each product fits.

4. Python

python
import requests

user = "customer-USERNAME-country-gb-sid-session1"
proxy = f"http://{user}:PASSWORD@p.shifter.io:443"
r = requests.get("https://ipinfo.io/json", proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.json()["ip"], r.json()["country"])

See Python requests proxies for sessions and retries.

5. Node.js and browsers

In Node.js, pass the same URL to an agent such as https-proxy-agent. For headless browsers, start Puppeteer with --proxy-server=p.shifter.io:443 and call page.authenticate() with the username and password. Shifter also lists ready integrations for Playwright, Selenium, Scrapy, n8n, Zapier, Make and Apify.

How an HTTPS proxy tunnels encrypted traffic with the CONNECT method, explained step by step. Video: Proxy Netwerk on YouTube

6. Fix common errors

SymptomLikely causeFix
407 Proxy Authentication RequiredWrong username or passwordCopy credentials from the dashboard; check the username parameters
IP doesn't changeA sid is setDrop the sid, or change its value
Wrong countryTypo in the country codeUse two-letter codes such as us, gb, de
SOCKS5 failsClient expects port 1080Use port 443 with a socks5:// URL

More in what is error 407 and common proxy errors.

Before you buy, read our buy proxies guide for fair prices by type, check proxy coupons for current deals, and see the best proxies in 2026 for the wider market.

Coupon tip: Proxy Seller sells IPv4, IPv6, ISP, mobile and residential proxies with HTTP and SOCKS5 on every package. Use code MONKEYS for 15% off (10% on mobile). More in setting up Proxy Seller proxies.

  • Scrapy: set meta["proxy"] on each request to the full proxy URL, or use a downloader middleware that builds the username per request.
  • Playwright: pass proxy={"server": "http://p.shifter.io:443", "username": "customer-USERNAME", "password": "PASSWORD"} when you launch the browser or create a context. One context per sticky session keeps cookies and IPs together.
  • Selenium: use an extension or a local forwarding proxy for authentication, since Chrome's command-line flag can't carry a password. See Selenium proxies.
  • Antidetect browsers: choose HTTP or SOCKS5, host p.shifter.io or isp.shifter.io, port 443, and paste the username and password.

Keep credentials in environment variables rather than in code, and rotate the password from the dashboard if it ever leaks.

Proxy tip: If you're building a shortlist, add Geonode to it. It offers per-GB residential traffic that doesn't expire, unlimited residential plans, static ISP and rotating datacenter proxies, and scraping APIs. We look at where it fits in our complete Geonode guide.

Key takeaways

  • Residential: p.shifter.io:443; ISP: isp.shifter.io:443.
  • Targeting, sessions and TTL go in the username.
  • Test with cURL first, then move to code.

FAQ

Does Shifter support IP whitelisting?

Shifter documents username and password authentication for residential traffic. We couldn't find IP allowlisting in its documentation at the time of writing.

Which port does Shifter use?

Port 443, for both HTTP(S) and SOCKS5.

Sources and further reading

Independent references that back up the points above, from standards bodies, governments, universities and non-profits. They open in a new tab.

Affiliate disclosure: Team of Monkeys is an affiliate of Geonode, Webshare, Rayobyte, Proxy Seller and Shifter. Links and banners marked as sponsored, and links to these five providers in the text, use our referral links, and we may earn a commission if you buy through them, at no extra cost to you. Our explanations and comparisons are written to be useful whichever provider you choose.

Editorial note: Proxy providers change their pools, features and prices often, so treat any figures here as typical ranges at the time of writing and confirm current terms with the provider before you buy.