Skip to main content
Targeting is controlled entirely through your proxy username. Append tokens after your username, separated by hyphens. All tokens are optional. With none, you get a rotating IP from anywhere in the pool.
<username>[-country-<cc>][-state-<st>|-city-<city>][-asn-<n>][-session-<id>[-sesstime-<min>]]

Tokens

TokenValueDescription
-country-<cc>ISO 3166-1 alpha-2 (us, gb, de, jp…)Exit country. Omit for any country.
-state-<st>State / region nameNarrow within a country.
-city-<city>City name (lowercase, no spaces)Narrow to a city. Takes precedence over state.
-asn-<n>ASN numberTarget a specific network/carrier.
-session-<id>Your chosen idKeep the same IP across requests. See Sessions.
-sesstime-<min>Minutes, 31440How long a sticky session holds its IP.
Use lowercase ISO country codes. Combine -city- with -country- for accuracy (for example -country-us-city-newyork).

Examples

# Rotating exit in Germany
curl -x "http://USERNAME-country-de:SECRET@proxy.illusory.io:1080" https://ipinfo.io/json

Common locations

A few popular locations to get you started. Any ISO 3166-1 alpha-2 country code works, so this list is illustrative, not exhaustive.
CountryCodeExample city token
United Statesus-city-newyork
United Kingdomgb-city-london
Germanyde-city-berlin
Canadaca-city-toronto
Francefr-city-paris
Japanjp-city-tokyo
# Rotating exit in London, UK
curl -x "http://USERNAME-country-gb-city-london:SECRET@proxy.illusory.io:1080" https://ipinfo.io/json
Country targeting spans 195+ countries. State and city targeting work where the pool has coverage. If a specific city returns no exits, broaden to the country.

Notes

  • Country codes follow the ISO 3166-1 alpha-2 standard.
  • -city- and -state- are mutually exclusive. If you set both, city wins.
  • The more specific your targeting, the smaller the available pool, which can affect availability and speed in some locations.
  • Targeting tokens are case-insensitive, but lowercase is recommended.

Next: Sessions

Keep the same IP with sticky sessions, or rotate on every request.