# Proxy access (/proxy-access)

Proxy access gives you a proxy endpoint that works with any HTTP, HTTPS or SOCKS5 client. You choose the network class, the location and whether the exit IP rotates or stays. Traffic is paid with the tokens of your account, by the gigabyte or from a package.

## Connect [#connect]

Open the **Proxies** page of the dashboard. It shows the host and the port, and builds the connection strings for you. The same port speaks all protocols:

| Protocol | Example |
| --- | --- |
| HTTP | `http://LOGIN:PASSWORD@HOST:PORT` |
| HTTPS (TLS to the proxy) | `https://LOGIN:PASSWORD@HOST:PORT` |
| SOCKS5, with UDP ASSOCIATE | `socks5://LOGIN:PASSWORD@HOST:PORT` |
| Plain list line | `HOST:PORT:LOGIN:PASSWORD` |

TLS only protects the stretch between your client and the proxy. It is optional, and it does not change how a target site is reached.

## Proxy users [#proxy-users]

An account has up to **20 proxy users**, each with its own login and password. The first one, `main`, exists from your first visit and cannot be deleted. A proxy user can have:

- a traffic limit counted over its whole life, not per month. Raise it, or reset the counter, when you need more;
- the **packages only** flag: its traffic is taken from packages and never from the token balance;
- a new password at any time. A new password, a ban or a deletion ends open connections of that user within about 30 seconds.

A deleted proxy user stops working at once. Its statistics stay.

## The username [#the-username]

The login is followed by modifiers, each once and in any order:

```text
LOGIN[-type-CLASS][-country-CC][-state-CODE][-city-SLUG][-asn-N][-session-ID][-ttl-MINUTES][-node-NODEID]
```

| Modifier | Meaning |
| --- | --- |
| `type` | `datacenter`, `residential`, `premium` (mobile) or `own` (your own nodes and proxies). Residential when absent. |
| `country` | Two-letter country code, for example `us`. |
| `state`, `city` | A state code and a city slug, for example `state-ca-city-los_angeles`. They need a country. |
| `asn` | An autonomous system number. |
| `session` | 1 to 64 letters, digits or underscores. With a session the exit IP stays the same. |
| `ttl` | How long a session stays, 1 to 120 minutes, 10 when absent. It needs a session. |
| `node` | Route through one of your own nodes: its id without dashes (32 hexadecimal digits). It needs `type-own`. Without it a node is picked from all your usable nodes. |

Find the id of a node in the node list of the dashboard or in the API (`GET /nodes`); the connection builder and the proxy lists fill the modifier in for you. If the chosen node is offline, deleted or not yours, the connection is refused with `503 node_unavailable`; another node is never used instead. Two nodes with the same `session` keep two separate sessions.

Without `session`, connections may rotate. A modifier that is unknown, repeated or has a wrong value is refused with `400 invalid_username`, so a typo can never send traffic through the wrong class or country. State, city and country values come from the reference in the dashboard and in the API (see the [FAQ](/proxy-access/faq) for its attribution).

The dashboard also generates lists: pick a count and a format and get that many sticky sessions at once.

## IP whitelist [#ip-whitelist]

Instead of a password you can allow up to **5 IP addresses** and create up to **50 whitelist ports**. A whitelist port has a fixed proxy user, class, location and sticky setting, and for the `own` class it can also be pinned to one of your nodes. A client from an allowed IP connects to that port with no login. A client from any other address is disconnected without an answer. Changes apply within a minute.

## Pricing and packages [#pricing-and-packages]

The price of a gigabyte of a class is the rate of that class on your plan plus the add-on RunHarvester sets for proxy access. A class that has no price or no usable route is shown as unavailable. A gigabyte is 1,000,000,000 bytes, and the price of the whole total is rounded up to a whole token once, never block by block.

A package is a prepaid amount of traffic of one class with a validity time. Traffic of a class is taken from the active packages of that class first, the package that expires first leading, and then from tokens. Unused traffic of an expired package does not come back.

Traffic is paid in advance in blocks of 10 MB. What a connection did not use is returned to where it came from when the connection group goes idle or the proxy restarts, so you pay for the traffic that was used.

## API and automation [#api-and-automation]

Everything the dashboard does is available through the [API reference](/api-reference) with an API key. Reading needs the `proxy:read` scope. Buying a package, creating or changing users and ports, and anything that shows a password need `proxy:write`.

## Related [#related]

- [Frequently asked questions](/proxy-access/faq)
- [Errors](/proxy-access/errors)