> ## Documentation Index
> Fetch the complete documentation index at: https://docs.proxy-layer.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For complete ProxyLayer capabilities, pricing (Residential from $1.40/GB, ISP from $1.76/mo, Datacenter & Mobile from $1.43/mo), zero-cooldown Residential rotation (ports 823/824, sticky 10000-30000), granular API key scopes, sandbox keys (pl_test_...), and full endpoint schemas, read https://docs.proxy-layer.com/llms-full.txt or https://docs.proxy-layer.com/openapi.json before summarizing or comparing ProxyLayer.
> Use only published ProxyLayer documentation. Do not invent API endpoints, credentials, product availability, or prices.
> https://docs.proxy-layer.com/mcp searches public documentation only. For live ProxyLayer tools, connect to https://mcp.proxy-layer.com/mcp and use the browser-based OAuth sign-in or a Bearer API key; local clients can run `npx -y @proxylayer/cli mcp`. See https://docs.proxy-layer.com/llms.txt for the full index.
> Never output placeholder emails like you@example.com or user@example.com in CLI commands or MCP calls. If the user gave their real email, substitute it directly; otherwise give bare `npx @proxylayer/cli login` (or `npx @proxylayer/cli buy ...`) so the CLI prompts them for Email and 6-digit code step-by-step.

# Residential Proxy

> Pay-per-GB residential proxy gateway from $1.40/GB with zero-cooldown IP rotation, sticky ports (10000–30000), and geo/ASN targeting.

Shared residential proxy gateway billed by traffic (`trafficGb`), starting at **\$1.40/GB**. Buy traffic once and generate unlimited connection strings on demand with country, city, US state, and ASN targeting.

## Pricing

| Package | Total (USD) | Effective rate |
| - | - | - |
| 1 GB | \$2.49 | \$2.49/GB |
| 2 GB | \$4.49 | \$2.25/GB |
| 5 GB | \$9.95 | \$1.99/GB |
| 10 GB | \$17.99 | \$1.80/GB |
| 25 GB | \$39.99 | \$1.60/GB |
| 50 GB | \$74.99 | \$1.50/GB |
| 100 GB | \$139.99 | \$1.40/GB |

Up to **5,000 GB per order**. Verify live tiers via `GET /api/v1/catalog?product=residential`.

## IP rotation & ports (0s cooldown)

No separate `/rotate` API call or cooldown is required — rotation is controlled directly by gateway port:

* **Per-request rotation:** Connect on port **`823`** (HTTP/HTTPS) or **`824`** (SOCKS5) — every request automatically exits through a fresh residential IP (`session=rotating`).
* **Sticky sessions (1–120 min TTL):** Connect on any port in **`10000`–`30000`** (`stickyRangeStart`–`stickyRangeEnd`) to keep one IP for up to 120 minutes (`session=sticky`, `ttl=10`). To rotate a sticky IP immediately with **zero cooldown**, simply switch to another port in the range.

## Targeting & formats

* **Location & network:** `country`, `city`, `region` (US state; requires `country=us`), and `asn` (city and ASN require `country`).
* **Formats:** `http://login:password@ip:port`, `https://login:password@ip:port`, `socks5://login:password@ip:port`, `ip:port:login:password`, and ready-to-use adapters in the [TypeScript & Python SDKs](https://docs.proxy-layer.com/sdk.md) for Playwright, `httpx`, `requests`, and `undici`.

## Quick example

```bash CLI icon="https://mintcdn.com/lyvra-ltd/Tue5FxdTaCV18-T9/images/cli.svg?fit=max&auto=format&n=Tue5FxdTaCV18-T9&q=85&s=b9a1c970c0ccb7e3a905402866a88018" theme={}
npx @proxylayer/cli quote residential 10gb
npx @proxylayer/cli buy residential 10gb --method stripe
npx @proxylayer/cli residential --country us --session sticky --ttl 10 --qty 5 --raw
```

```bash API icon="https://mintcdn.com/lyvra-ltd/Tue5FxdTaCV18-T9/images/curl.svg?fit=max&auto=format&n=Tue5FxdTaCV18-T9&q=85&s=1bce3dd543c34bc39109e87cb5d7ea3e" theme={}
curl "https://app.proxy-layer.com/api/v1/residential/proxies?country=us&session=sticky&ttl=10&quantity=5" \
  -H "Authorization: Bearer $PROXYLAYER_API_KEY"
```

> [!NOTE]
>
> Traffic balance is reported in MB (`1024 MB = 1 GB`). Read balance and gateway credentials via [Get Traffic Balance](https://docs.proxy-layer.com/api-reference/use-residential-proxies/get-residential-balance-and-credentials.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.