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

# Get Started

> Connect to Illusory Residential Proxies and make your first request.

You connect to residential proxies with a single endpoint and your account credentials. Targeting (country, city, session) is set right in the username.

## Connection details

| Field | Value |
| - | - |
| Host (recommended) | `proxy.illusory.io` |
| IP (alternative) | `160.202.129.71` |
| Port | `1080` |
| Username | Your Illusory username |
| Password | Your proxy secret |
| Protocols | HTTP/HTTPS and SOCKS5 (auto-detected) |

> [!NOTE]
>
> Use the domain or the IP, whichever you prefer. We recommend the domain: it stays stable if our infrastructure changes, while the IP works identically today.

> [!NOTE]
>
> During the private beta, we provide your **username** and **proxy secret** directly. Keep your secret private. Anyone with it can use your balance.

> [!NOTE]
>
> There is no connection limit: the same endpoint handles unlimited parallel connections, each with its own IP. See [Sessions](https://www.illusory.io/docs/residential/sessions.md) for rotating vs sticky.

## Username format

Your username carries optional targeting tokens. With no tokens, you get a rotating IP from anywhere in the pool:

```
<username>[-country-<cc>][-state-<st>][-city-<city>][-asn-<n>][-session-<id>[-sesstime-<min>]]
```

For example, to request a rotating **US** exit:

```
<username>-country-us
```

See [Targeting](https://www.illusory.io/docs/residential/targeting.md) for every option and [Sessions](https://www.illusory.io/docs/residential/sessions.md) for sticky IPs.

## Your first request

Replace `USERNAME` and `SECRET` with your credentials:

```bash theme={null}
curl -x "http://USERNAME-country-us:SECRET@proxy.illusory.io:1080" https://api.ipify.org
```

This prints the residential exit IP your request came from. Run it a few times. With no `-session`, each request rotates to a new IP.

> [!TIP]
>
> If the returned IP is different from your own and changes between requests, you're connected and rotating correctly.

## Verify your location

Check that geo-targeting is working by inspecting the exit IP's location:

```bash theme={null}
curl -x "http://USERNAME-country-gb:SECRET@proxy.illusory.io:1080" https://ipinfo.io/json
```

The `country` field in the response should match the country you targeted (`gb` in this example).

## Troubleshooting

> [accordion] 407 Proxy Authentication Required
>
> Your username or secret is wrong, or the secret was rotated. Re-check your credentials.

> [accordion] Connection works but no data / it stalls
>
> Sticky sessions pin a single residential peer, whose quality can vary. Try a [rotating](https://www.illusory.io/docs/residential/sessions.md) request (omit `-session`), or start a new session id.

> [accordion] Requests fail after working fine
>
> You may have run out of balance. Reach out to top up your GB during the beta.


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