# Residential Proxies

Generate residential proxy credentials, choose an exit by location or ASN, and connect using a rotating or sticky session. Usage is measured in GB.

- **Endpoint** `proxy-us.arcvenza.com:10000`
- **Authentication** `Proxy username + password`
- **Protocol** `HTTP(S) / SOCKS5`

## Workflow

1. **Generate a proxy**

   Open the [Residential Proxies dashboard](/dashboard/residential-proxies) and choose a gateway, exit and session type. To automate this, call [GET /api/ProxyLogic/Generate](/docs/api/generate) with MealType=basic and an [account API key](/docs/authentication#account-api-key) in the Authorization: Bearer header. A successful request returns plain text with one proxy entry per line.

2. **Configure your client**

   Use the host, port, username and password returned for the same proxy entry. Select HTTP or SOCKS5 in the client. For an HTTPS destination over an HTTP proxy, keep the proxy URL scheme as http://.

## Parameters

| Name | Use | Description |
| --- | --- | --- |
| `Server` | Optional | Connection gateway. us (default) uses proxy-us.arcvenza.com:10000, eu uses proxy-eu.arcvenza.com:10000, as uses proxy-as.arcvenza.com:10000, and smart uses proxy.arcvenza.com:10000. Choose the exit separately with Country. |
| `Country / State / City` | Optional | Use the value fields returned by [POST /api/Location/Search](/docs/api/location-search) with mealType=basic. Send countryCode to list states, then countryCode and stateCode to list cities. With Country omitted, the exit country is unrestricted and State, City and Asn are ignored. |
| `Asn` | Optional | Look up the ASN with [GET /api/Location/GetAsnsByCountryCode](/docs/api/country-asns). Send Country and the returned numeric asn without an AS prefix. For ASN targeting, leave State and City empty, as the dashboard does. |
| `LifeTime` | Optional | 0 or omitted uses rotation. A value from 1 to 120 adds a sticky session to the generated username. Reuse the same credentials while you want to keep that session. |
| `Num` | Required | Number of proxy entries to generate, from 1 to 10,000. |
| `Format` | Optional | 0 (default) returns host:port:username:password. 1 returns username:password@host:port. 2 returns username:password:host:port. |

## Examples

### Country

```bash
curl -G 'https://www.arcvenza.com/api/ProxyLogic/Generate' \
  -H 'Authorization: Bearer <YOUR_API_KEY>' \
  --data-urlencode 'MealType=basic' --data-urlencode 'Num=1' \
  --data-urlencode 'Country=US' --data-urlencode 'Server=us' \
  --data-urlencode 'LifeTime=5' --data-urlencode 'Format=0'
```

### cURL

```bash
curl --proxy http://USERNAME:PASSWORD@proxy-us.arcvenza.com:10000 \
  https://ipinfo.io/json
```

### JavaScript

```javascript
import { ProxyAgent, fetch } from "undici";

const dispatcher = new ProxyAgent(
  "http://USERNAME:PASSWORD@proxy-us.arcvenza.com:10000"
);
const response = await fetch("https://ipinfo.io/json", { dispatcher });
console.log(await response.json());
```

### Python

```python
import requests

proxy = "http://USERNAME:PASSWORD@proxy-us.arcvenza.com:10000"
response = requests.get(
    "https://ipinfo.io/json",
    proxies={"http": proxy, "https": proxy},
    timeout=30,
)
print(response.json())
```

## Success response

`200 · text/plain`

```text
proxy-us.arcvenza.com:10000:<GENERATED_USERNAME>:<GENERATED_PASSWORD>
```

## Troubleshooting and notes

- Check residential traffic totals and usage in the dashboard or through [GET /api/ProxyLogic/BandwidthAnalysis](/docs/api/bandwidth-analysis). The API reports basicTotalBandWidth and basicUsedBandwidth in decimal GB.

## Verify the connection

Run a request through the proxy from the same client you'll use for your workflow. Compare the returned IP or region with your selected exit. If authentication fails or the connection times out, check the active plan, the host and port, the selected protocol, and the complete generated username and password.

## Related resources

- [View product](/products/residential-proxies)
- [Open dashboard](/dashboard/residential-proxies)

## AI integration prompt

```text
Read the Arcvenza Markdown at https://www.arcvenza.com/docs/markdown/guides/residential.md and use https://www.arcvenza.com/llms.txt to find related guides. Cite https://www.arcvenza.com/docs/guides/residential for this page. Ask what I want to integrate, then identify the correct product, endpoint and authentication method. Confirm the required access before sending a live request through API Playground, and show how to supply credentials through environment variables. Indicate any account, plan or usage requirements and flag anything the docs do not establish.
```

[Open API Playground](/docs/playground)

[llms.txt](/llms.txt)

