Proxy username options: network, country, city and session
Everything the gateway reads from the username: the options, their order, allowed values and complete examples.
How the username is built
The username starts with the login of a proxy user (ten lowercase letters and digits, made by the dashboard). Options follow, each joined with an underscore and written as key.value. Options can appear in any order, each at most once, and keys and values are lowercase.
<login>_net.<network>_cc.<country>_st.<state>_city.<city>_sid.<session>_ttl.<minutes>All options
| Option | Values | Default | Notes |
|---|---|---|---|
net | res, mob, dc, isp | res | The proxy user must be allowed on that network |
cc | ISO 3166 country code, lowercase | any country | Must be on the list for that network (locations) |
st | US state code, lowercase (ca, tx) | none | Only with cc.us, residential and mobile |
city | city token from the list | none | Needs cc; residential and mobile; spaces become hyphens |
sid | 6 to 16 lowercase letters or digits | none | Keeps one IP; leave out for a new IP per connection |
ttl | 1 to 120 (minutes) | 10 | Only with sid |
Examples
| Goal | Username |
|---|---|
| Residential, any country, new IP each connection | USERNAME |
| Residential in Japan | USERNAME_cc.jp |
| Mobile in Texas | USERNAME_net.mob_cc.us_st.tx |
| Residential in Paris, one IP for 45 minutes | USERNAME_cc.fr_city.paris_sid.p4r1s7k2_ttl.45 |
| Datacenter in the Netherlands | USERNAME_net.dc_cc.nl |
| ISP in the United Kingdom, sticky 10 minutes | USERNAME_net.isp_cc.gb_sid.uk2m8q4z |
Rules worth knowing
- City and state targeting work on residential and mobile. Datacenter and ISP take a country only.
- An unknown option, a country outside a network's list, or a city outside a country's list is refused with a 407 answer, so mistakes never fall back to a random location.
- Changing any part of the username, including the session id, starts a new session.
- The proxy URL builder checks every value against the same lists the gateway uses.