Proxy Levels
Control where the proxy is applied using thelevel parameter.
| Level | Description | Pros | Cons |
|---|---|---|---|
system | Applied at the system level — the instance reboots with the new IP | No IP leakage | Slower cold start |
chrome | Applied directly to Chrome | Faster cold start | Can leak IP on some edge cases (e.g., WebRTC) |
level is omitted, the proxy is routed to the best available connection that matches the country.
When using the
system level, expect additional cold-start latency as the instance reboots with the new IP. The chrome level avoids this reboot but may expose the original IP in edge cases such as WebRTC connections.Proxy Modes
WebRun-Managed Proxies
Specify a country and WebRun assigns a proxy from its residential pool. Charged at $2 per GB of data transfer. Setcountry to any ISO 3166-1 alpha-2 country code, or "random" to let WebRun pick a location.
country to "random":
Custom Proxies
Bring your own proxy server. No additional charge from WebRun — you pay your proxy provider directly. Theusername and password fields are optional for proxies that don’t require authentication.
HTTP proxy:
Disabling Proxy
To explicitly run without a proxy (the default), setproxy to null or omit it:
Full Examples
Single-task session with WebRun proxy
Persistent session with custom proxy
The
proxy field is a top-level session parameter, alongside environmentId and initialTask. It is not nested inside initialTask.Pricing
| Proxy Mode | Cost |
|---|---|
| WebRun-managed | $2 per GB of data transfer |
| Custom (bring your own) | No additional WebRun charge |
Best Practices
- Choose the closest country to your target website’s servers to minimize latency.
- Use
"random"sparingly — a specific country gives more predictable results for locale-sensitive sites. - Use custom proxies for high-bandwidth tasks (large file downloads, video scraping) to avoid per-GB charges.
- Combine with environments — pair a proxy with an environment to maintain consistent cookies and browser state across proxied sessions.
- Account for cold-start — the 2-3 second proxy setup time is a one-time cost per session, not per task.
Sessions
Session configuration and lifecycle
API Parameters
Full proxy parameter reference
Pricing
Proxy and compute pricing details
Secrets
Provide credentials for authenticated sites