🔗 Proxy Format
X2Proxy uses a structured proxy URL format where targeting and session parameters are embedded directly in the username field. This allows full control over geography, session type, and TTL without changing the host or port.
Base Format
PROTOCOL://pool_TYPE;LOGIN;PARAMETERS:PASSWORD@pr.x2proxy.com:2222| Component | Description |
|---|---|
PROTOCOL | http or socks5 |
pool_TYPE | Pool identifier (e.g., res1) — shown in your dashboard |
LOGIN | Your account username |
PARAMETERS | Optional targeting and session parameters, separated by ; |
PASSWORD | Your account password |
pr.x2proxy.com | Proxy gateway hostname |
2222 | Unified port for all protocols |
Available Parameters
Parameters are appended to the username after ; separators:
| Parameter | Format | Example |
|---|---|---|
| Country / Region | region_XX | region_US |
| State | state_STATE | state_california |
| City | city_CITY | city_losangeles |
| ASN / Provider | asn_ASN | asn_as7018 |
| Sticky Session ID | session_ID | session_abc123 |
| Session TTL | ttl_Xh | ttl_24h, ttl_120h |
Country codes follow the ISO 3166-1 alpha-2 standard (e.g.,
US,DE,GB,FR,JP). TTL is specified in hours. Maximum sticky session duration is 120 hours (5 days).
Format Examples
Rotating proxy — random global IP
http://pool_category;john:pass123@pr.x2proxy.com:2222Rotating proxy — US only
http://pool_category;john;region_US:pass123@pr.x2proxy.com:2222Sticky session — US, 24 hours
http://pool_category;john;region_US;session_mysession01;ttl_24h:pass123@pr.x2proxy.com:2222Sticky session — Germany, 5 days (120 hours)
http://pool_category;john;region_DE;session_berlin42;ttl_120h:pass123@pr.x2proxy.com:2222SOCKS5 — UK targeting, rotating
socks5://pool_category;john;region_GB:pass123@pr.x2proxy.com:2222SOCKS5 — sticky session, France
socks5://pool_category;john;region_FR;session_paris01;ttl_48h:pass123@pr.x2proxy.com:2222Using the Proxy Generator
All of the above formats are generated automatically in Dashboard → Proxy Generator. Select your pool, protocol, targeting options, and session type visually — the generator outputs the complete proxy string ready to copy. Bulk proxy list generation is also available.
Next: Authentication