> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Targeting: country, city and network

> Pick the country, city or ISP of your IP by adding flags to the username.

Targeting goes in the username, after your login, in lowercase. Every country works with its two-letter code.

| You want | Add to the username | Example |
| - | - | - |
| A country | `-country-<code>` | `-country-us` |
| A city | `-city-<name>` with no spaces or accents, plus a country | `-country-br-city-saopaulo` |
| A network (ISP) | `-asn-<number>` after the country | `-country-us-asn-7922` |
| A sticky IP | `-session-<id>-lifetime-<minutes>` | `-session-abc123-lifetime-30` |

```bash theme={null}
curl -x http://USERNAME-country-de:PASSWORD@via.proxies.vision:9000 https://ipinfo.io/json
```

The dashboard generator under **Residential proxies** builds ready lines for you and lists the cities we checked. Other cities may work too.

## Network (ASN) targeting

`-asn-<number>` picks one ISP, for example `-country-ch-asn-3303` (Swisscom), `-country-us-asn-7922` (Comcast) or `-country-de-asn-3320` (Deutsche Telekom). It needs a country: without `-country-` the ASN is ignored. It works on rotating and sticky ports.

## "I asked for one country and got another"

**1. Check the flag**

Use the two-letter code in lowercase: `-country-us`, not `-country-usa` or `-country-US`. A three-letter code is refused with `403`.

**2. On a sticky port, use a new session ID**

A sticky session keeps its IP. If you change the country or ASN but keep the session ID, you keep the old IP. Change the ID too.

**3. Remove the city**

If no exit matches all filters right now you get `465`. Try the country alone.

See [Proxy errors](/docs/proxy-errors.md) for every status code.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.