pool_build_proxy_url
Build a ready-to-use Pool Gateway proxy URL (gw.proxies.sx, HTTP 7000 or SOCKS5 7001). Local, no network. Take proxyUsername and password from pool_get_my_credentials (a reseller passes a customer pak_ key as password). pool: "peer" is the main network (residential and mobile, most countries), "mbl" is carrier modems in US, GB, FR, NL, PL and GE (Georgia) only, "any" or "best" let the gateway choose. Rotation: sticky and hard both hold one device, auto5/auto10/auto20/auto60 move to another device on that interval, ondemand picks again on each new connection; sticky, hard and auto* only persist across connections with a sid. Sticky holds the device, not the IP: a mobile carrier can still change the exit IP. The result contains the password.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asn | No | Only use one network, by AS number | |
| isp | No | ISP name to match, for example comcast | |
| sid | No | Session id: 1-64 characters, lowercase letters, digits and _. Other characters are removed. | |
| ttl | No | Session lifetime in seconds (gateway default: 3600) | |
| city | No | City from pool_get_facets (preferred, not guaranteed) | |
| pool | No | Pool (default: any) | |
| state | No | State or region code from pool_get_facets, for example ny (preferred, not guaranteed) | |
| ipType | No | Only use one IP class: mobile (cellular carriers), residential (home broadband) or isp (static addresses on ISP-registered networks, hosted on servers). The isp class is served only when named here. "datacenter" is accepted as another name for isp. | |
| pakKey | No | Alias of password (a pak_ key) | |
| strict | No | With sticky or hard: prefer the devices whose exit IP holds longest | |
| carrier | No | Carrier from pool_get_facets: the part of a carrier id before the |, for example tmobile | |
| country | No | 2-letter ISO country code, or "any" (default: any) | |
| failover | No | What may replace a device that goes offline (gateway default: samecountry) | |
| password | No | Proxy password, or a pak_ key | |
| protocol | No | http (default) or socks5 | |
| rotation | No | Rotation mode (gateway default: auto10) | |
| proxyUsername | Yes | Bare proxy username, for example psx_abc123 |