# Get proxy gateway configuration

Read current gateway hosts, ports and account proxy credentials.

- **Endpoint** `https://www.arcvenza.com/api/ProxyLogic/GetProxyConfig`
- **Authentication** `Bearer account API key`
- **Protocol** `HTTPS · application/json`

## Workflow

1. **Select the product**

   Send mealType=basic for residential or mobile for mobile proxies.

2. **Read the connection details**

   Use proxyPort and the gateway array for your region. Copy userName and proxyPwd as sensitive credentials.

## Parameters

| Name | Location | Type | Use | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | `HEADER` | `string` | Required | Bearer `<YOUR_API_KEY>`. |
| `mealType` | `QUERY` | `enum` | Required | basic for residential; mobile for mobile proxies. |
| `pool` | `QUERY` | `integer` | Optional | Proxy pool number; defaults to 1. |
| `State` | `QUERY` | `string` | Optional | Select credentials for the state or province. |
| `City` | `QUERY` | `string` | Optional | Select credentials for the city. |
| `Asn` | `QUERY` | `integer` | Residential only | Select credentials for a numeric ASN. |

## Examples

### cURL

```bash
curl -X GET 'https://www.arcvenza.com/api/ProxyLogic/GetProxyConfig?mealType=basic&pool=1' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer <YOUR_API_KEY>'
```

### JavaScript

```javascript
const response = await fetch("https://www.arcvenza.com/api/ProxyLogic/GetProxyConfig?mealType=basic&pool=1", {
  headers: {
    Accept: "application/json",
    Authorization: `Bearer ${process.env.ARCVENZA_API_KEY}`,
  },
});

console.log(await response.json());
```

### Python

```python
import os
import requests

response = requests.get(
    "https://www.arcvenza.com/api/ProxyLogic/GetProxyConfig?mealType=basic&pool=1",
    headers={
        "Accept": "application/json",
        "Authorization": f"Bearer {os.environ['ARCVENZA_API_KEY']}",
    },
    timeout=30,
)
print(response.json())
```

## Success response

`200 · application/json`

```json
{
  "code": 200,
  "message": "Success",
  "body": {
    "userName": "<PROXY_USERNAME>",
    "proxyPwd": "<PROXY_PASSWORD>",
    "proxyPort": [10000],
    "smartProxyUrl": ["proxy.arcvenza.com"],
    "directProxyUrl": ["direct.arcvenza.com"],
    "directProxyPort": 8001,
    "usProxyUrl": ["proxy-us.arcvenza.com"],
    "euProxyUrl": ["proxy-eu.arcvenza.com"],
    "asProxyUrl": ["proxy-as.arcvenza.com"],
    "mobileProxyUrl": ["mobile.arcvenza.com"],
    "mobileUsProxyUrl": ["mobile-us.arcvenza.com"],
    "mobileEuProxyUrl": ["mobile-eu.arcvenza.com"],
    "mobileAsProxyUrl": ["mobile-as.arcvenza.com"]
  }
}
```

## Error response

HTTP 401 means the account API key is missing, invalid, or reset. For HTTP 403, check that the key type and the requested operation are supported. Check the HTTP status before parsing the body.

```http
HTTP/1.1 401 Unauthorized
```

For JSON responses, check that `code` is `200` before using `body`. For a business error, read `message` and correct the request before retrying.

## Troubleshooting and notes

- The response contains credentials. Treat it as a secret; use the returned gateway values if configuration changes.

## Related resources

- [API reference](/docs/api)
- [Authentication](/docs/authentication#account-api-key)

## AI integration prompt

```text
Read the Arcvenza Markdown at https://www.arcvenza.com/docs/markdown/api/proxy-config.md and use https://www.arcvenza.com/llms.txt to find related guides. Cite https://www.arcvenza.com/docs/api/proxy-config 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?endpoint=proxy-config#send-request)

[llms.txt](/llms.txt)

