Proxy integration guide and code examples
Everything you need to connect FastProxy proxies to code, browsers and tools: gateway hosts, ports, username options and copy-ready examples.
Gateways and ports
Residential, mobile and unlimited plans use one gateway each. Static ISP, datacenter and shared plans come as IP lists with their own ports.
Residential proxies
gw.fastproxy.fitHTTP and HTTPS 7700, SOCKS5 7701
Mobile proxies
4g.fastproxy.fitHTTP and HTTPS 7800, SOCKS5 7801
Unlimited residential proxies
unl.fastproxy.fitHTTP and HTTPS 7900, SOCKS5 7901
Username options
Add options to the username shown in Connection setup. They can be combined in this order.
-country-xxTwo letter country codeUSER-country-us-city-nameCity in that country, lowercase, no spacesUSER-country-de-city-frankfurt-session-nameKeeps the same IP for up to 60 minutesUSER-country-gb-session-a1b2Code examples
Replace USER and PASS with your login. Every tab is a complete example.
curl -x http://USER-country-us:PASS@gw.fastproxy.fit:7700 https://api.ipify.org
# SOCKS5, sticky for up to 60 minutes
curl -x socks5h://USER-country-de-session-a1:PASS@gw.fastproxy.fit:7701 https://api.ipify.orgimport requests
proxy = "http://USER-country-gb:PASS@gw.fastproxy.fit:7700"
r = requests.get("https://api.ipify.org?format=json",
proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.json())import { ProxyAgent, fetch } from "undici";
const agent = new ProxyAgent("http://USER-country-jp:PASS@gw.fastproxy.fit:7700");
const res = await fetch("https://api.ipify.org?format=json", { dispatcher: agent });
console.log(await res.json());from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch(proxy={
"server": "http://gw.fastproxy.fit:7700",
"username": "USER-country-fr-city-paris",
"password": "PASS",
})
page = browser.new_page()
page.goto("https://api.ipify.org")
print(page.content())# settings.py
DOWNLOADER_MIDDLEWARES = {
"scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware": 110,
}
# in your spider
yield scrapy.Request(url, meta={
"proxy": "http://USER-country-us:PASS@gw.fastproxy.fit:7700"
})Setup questions
Short answers for the first hour with a new plan, from finding your login to checking the exit IP.
Where do I find USER and PASS?
In Connection setup in your account after you buy a plan. Residential, mobile and unlimited plans have one login for their gateway; IP plans list one line per IP.
Which port should I use?
HTTP and HTTPS go to 7700 on the residential gateway, 7800 on mobile and 7900 on unlimited. SOCKS5 uses the next port up: 7701, 7801 and 7901.
Why use socks5h instead of socks5?
With socks5h the proxy resolves the domain name, so DNS lookups also leave from the country you picked and match the IP the site sees.
How do I rotate or keep the IP from code?
Leave out -session to get a fresh IP on every connection. Add -session-name to keep one IP for up to 60 minutes, and change the name when you want a new one.
Can I combine country, city and session?
Yes, in this order: USER-country-de-city-frankfurt-session-a1b2. Each option is optional, and the city must belong to the country.
How do I check that the proxy works?
Run the cURL example against api.ipify.org. The answer is the exit IP; it should change between requests unless you set a session.
Buy a plan and start building
Your login appears in Connection setup as soon as the plan is bought.