# Get dynamic traffic

Return residential and mobile traffic totals and usage for the API key owner.

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

## Workflow

1. **Authenticate**

   Use your account API key from dashboard Settings.

2. **Read both traffic products**

   The response separates residential and mobile totals and used bandwidth.

## Parameters

| Name | Location | Type | Use | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | `HEADER` | `string` | Required | Bearer `<YOUR_API_KEY>`. |

## Examples

### cURL

```bash
curl -X GET 'https://www.arcvenza.com/api/ProxyLogic/BandwidthAnalysis' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer <YOUR_API_KEY>'
```

### JavaScript

```javascript
const response = await fetch("https://www.arcvenza.com/api/ProxyLogic/BandwidthAnalysis", {
  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/BandwidthAnalysis",
    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": {
    "basicTotalBandWidth": 60,
    "basicUsedBandwidth": 14.75,
    "premiumTotalBandWidth": 40,
    "premiumUsedBandwidth": 10,
    "betaTotalBandWidth": 0,
    "betaUsedBandwidth": 0,
    "totalBandWidth": 100,
    "usedBandwidth": 24.75,
    "mobileTotalBandWidth": 20,
    "mobileUsedBandwidth": 3.2
  }
}
```

## 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

- Traffic totals and usage are expressed in decimal GB for the authenticated account.

## 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/bandwidth-analysis.md and use https://www.arcvenza.com/llms.txt to find related guides. Cite https://www.arcvenza.com/docs/api/bandwidth-analysis 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=bandwidth-analysis#send-request)

[llms.txt](/llms.txt)

