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

OptionValuesDefaultNotes
netres, mob, dc, ispresThe proxy user must be allowed on that network
ccISO 3166 country code, lowercaseany countryMust be on the list for that network (locations)
stUS state code, lowercase (ca, tx)noneOnly with cc.us, residential and mobile
citycity token from the listnoneNeeds cc; residential and mobile; spaces become hyphens
sid6 to 16 lowercase letters or digitsnoneKeeps one IP; leave out for a new IP per connection
ttl1 to 120 (minutes)10Only with sid

Examples

GoalUsername
Residential, any country, new IP each connectionUSERNAME
Residential in JapanUSERNAME_cc.jp
Mobile in TexasUSERNAME_net.mob_cc.us_st.tx
Residential in Paris, one IP for 45 minutesUSERNAME_cc.fr_city.paris_sid.p4r1s7k2_ttl.45
Datacenter in the NetherlandsUSERNAME_net.dc_cc.nl
ISP in the United Kingdom, sticky 10 minutesUSERNAME_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.