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

> ## Agent Instructions
> The Zenrows HTTP API serves Fetch and Extract (extract=auto) at https://api.zenrows.com/v1/, Crawl at https://api.zenrows.com/v1/crawls, and Batch at https://async.api.zenrows.com/v1. Fetch, Extract, Crawl and Batch are described in OpenAPI 3.1 at https://www.zenrows.com/openapi.json and listed in the RFC 9727 API catalog at https://www.zenrows.com/.well-known/api-catalog. Every endpoint also has its own page under /api-reference with its schema. Use the spec for exact parameter names and types. Crawl's endpoints, parameters and errors are also at https://docs.zenrows.com/crawl/endpoints.md. To call Zenrows from an agent, connect the MCP server at https://mcp.zenrows.com/mcp. To search these docs from an agent, connect the docs MCP server at https://docs.zenrows.com/mcp. Agent skills for Zenrows are published at https://github.com/ZenRows/cli and install with `npx skills add ZenRows/cli`.

# Premium Proxy (Residential IPs)

> Bypass anti-bot detection by routing scraping requests through 55 million residential IP addresses with Zenrows Premium Proxy for higher success.

Premium Proxy routes your requests through residential IP addresses instead of standard datacenter IPs. These residential IPs come from real Internet Service Provider (ISP) connections assigned to actual households, making them significantly harder for websites to detect and block.

When websites implement anti-scraping measures, they typically target datacenter IP ranges first. Premium Proxy addresses this challenge by utilizing IP addresses that appear as regular user traffic, thereby dramatically improving your scraping success rates on protected websites.

## How Premium Proxy works

Premium Proxy automatically selects residential IP addresses from Zenrows' global pool when the feature is enabled. Each request routes through a different residential connection, mimicking natural user behavior and avoiding the IP-based blocking that affects datacenter proxies.

The system handles IP rotation automatically, so you don't need to manage proxy lists or worry about IP exhaustion. Zenrows maintains thousands of residential IPs across multiple countries to ensure reliable access to your target websites.

## Basic usage

Enable Premium Proxy by adding the `premium_proxy=true` parameter to your Zenrows request:

```python Python theme={"theme":"css-variables"}
# pip install requests
import requests

url = 'https://httpbin.io/anything'
apikey = 'YOUR_ZENROWS_API_KEY'
params = {
    'url': url,
    'apikey': apikey,
    'premium_proxy': 'true',
}
response = requests.get('https://api.zenrows.com/v1/', params=params)
print(response.text)
```

```javascript Node.js theme={"theme":"css-variables"}
// npm install axios
const axios = require('axios');

const url = 'https://httpbin.io/anything';
const apikey = 'YOUR_ZENROWS_API_KEY';
axios({
    url: 'https://api.zenrows.com/v1/',
    method: 'GET',
    params: {
        'url': url,
        'apikey': apikey,
        'premium_proxy': 'true',
    },
})
    .then(response => console.log(response.data))
    .catch(error => console.log(error));
```

```java Java theme={"theme":"css-variables"}
import org.apache.hc.client5.http.fluent.Request;

public class APIRequest {
    public static void main(final String... args) throws Exception {
        String apiUrl = "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fhttpbin.io%2Fanything&premium_proxy=true";
        String response = Request.get(apiUrl)
                .execute().returnContent().asString();

        System.out.println(response);
    }
}
```

```php PHP theme={"theme":"css-variables"}
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fhttpbin.io%2Fanything&premium_proxy=true');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
echo $response . PHP_EOL;
curl_close($ch);
?>
```

```go Go theme={"theme":"css-variables"}
package main

import (
    "io"
    "log"
    "net/http"
)

func main() {
    client := &http.Client{}
    req, err := http.NewRequest("GET", "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fhttpbin.io%2Fanything&premium_proxy=true", nil)
    if err != nil {
        log.Fatalln(err)
    }
    resp, err := client.Do(req)
    if err != nil {
        log.Fatalln(err)
    }
    defer resp.Body.Close()

    body, err := io.ReadAll(resp.Body)
    if err != nil {
        log.Fatalln(err)
    }

    log.Println(string(body))
}
```

```ruby Ruby theme={"theme":"css-variables"}
# gem install faraday
require 'faraday'

url = URI.parse('https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fhttpbin.io%2Fanything&premium_proxy=true')
conn = Faraday.new()
conn.options.timeout = 180
res = conn.get(url, nil, nil)
print(res.body)
```

```bash cURL theme={"theme":"css-variables"}
curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fhttpbin.io%2Fanything&premium_proxy=true"
```

This example enables Premium Proxy for your request. Zenrows automatically selects an available residential IP and routes your request through it, improving your chances of successful data extraction.

## When to use Premium Proxy

Premium Proxy is essential in these scenarios:

* **High-security websites** - Sites protected by CloudFlare, Akamai, or similar anti-bot systems
* **E-commerce platforms** - Online stores that actively block datacenter IPs
* **Social media sites** - Platforms with sophisticated bot detection
* **Financial websites** - Banking and trading sites with strict access controls
* **Streaming services** - Video platforms that block automated access
* **Government websites** - Official sites with enhanced security measures

## Best practices

### Combine with other features

Premium Proxy works best when combined with other Zenrows features:

```python Python theme={"theme":"css-variables"}
params = {
    'url': target_url,
    'apikey': 'YOUR_ZENROWS_API_KEY',
    'premium_proxy': 'true',
    'js_render': 'true',  # For JavaScript-heavy sites
    'wait_for': '.content',  # Wait for specific elements
}
```

### Monitor success rates

Track your scraping success to optimize your approach:

```python Python theme={"theme":"css-variables"}
successful_requests = 0
total_requests = 0

for url in url_list:
    total_requests += 1
    response = requests.get('https://api.zenrows.com/v1/', params={
        'url': url,
        'apikey': 'YOUR_ZENROWS_API_KEY',
        'premium_proxy': 'true',
    })
    
    if response.status_code == 200:
        successful_requests += 1

success_rate = (successful_requests / total_requests) * 100
print(f"Success rate: {success_rate}%")
```

## Troubleshooting

### Common issues and solutions

| Issue | Cause | Solution |
| - | - | - |
| Still getting blocked | Website uses advanced fingerprinting | Add `js_render=true` and custom headers |
| Inconsistent results | Different residential IPs may see different content | Use session management or sticky sessions ([session\_id](https://docs.zenrows.com/fetch/features/other.md#session-id)), or test using [Geolocation](https://docs.zenrows.com/fetch/features/proxy-country.md) |
| Higher costs than expected | Premium Proxy costs 10 credits per request | Monitor usage and optimize request frequency |

### Debugging blocked requests

If you're still getting blocked with Premium Proxy enabled:

**1. Add JavaScript rendering**

```python Python theme={"theme":"css-variables"}
params = {
    'premium_proxy': 'true',
    'js_render': 'true',
}
```

> [!TIP]
>
> See more about the `js_render` parameter [here](https://docs.zenrows.com/fetch/features/js-rendering.md)

**2. Return the original status from the website**

```python Python theme={"theme":"css-variables"}
params = {
    'premium_proxy': 'true',
    'original_status': 'true',
}
```

> [!TIP]
>
> See more about the `original_status` parameter [here](https://docs.zenrows.com/fetch/features/other.md#original-http-code)

**3. Include realistic headers**

```python Python theme={"theme":"css-variables"}
params = {
    'premium_proxy': 'true',
    'js_render': 'true',
    'custom_headers': 'true',
}
headers = {
    'referer': 'https://www.google.com'
}
```

> [!TIP]
>
> See more about the `custom_headers` parameter [here](https://docs.zenrows.com/fetch/features/headers.md)

**4. Add wait times for dynamic content**

```python Python theme={"theme":"css-variables"}
params = {
    'premium_proxy': 'true',
    'js_render': 'true',
    'wait': '3000',
}
```

## Pricing

Premium Proxy requests cost 10 times the standard rate. This pricing reflects the higher cost and limited availability of residential IP addresses compared to datacenter proxies.

> [!TIP]
>
> You can monitor your Zenrows usage in multiple ways to stay informed about your account activity and prevent unexpected overages.
>
> **Dashboard monitoring**: View real-time usage statistics, remaining requests, success rates, and request history on your Analytics page. You can also set up usage alerts in your notification settings to receive notifications when you approach your limits.
>
> [Open Analytics](https://app.zenrows.com/overview#performance)
> [Open notification settings](https://app.zenrows.com/settings/notifications)
>
> **Programmatic monitoring**: For automated monitoring in your applications, call the `/v1/subscriptions/self/details` endpoint with your API key in the `X-API-Key` header. This returns real-time usage data that you can integrate into your monitoring systems. [Learn more about the usage endpoint](https://docs.zenrows.com/fetch/features/other.md#plan-usage).
>
> **Response header monitoring**: Track your concurrency usage through response headers included with each request:
>
> * `Concurrency-Limit`: Your maximum concurrent requests
> * `Concurrency-Remaining`: Available concurrent request slots
> * `X-Request-Cost`: Cost of the current request
> * `X-Key-Credits-Remaining`: Lowest remaining credits across your API key's [credit caps](https://docs.zenrows.com/first-steps/api-key-credit-caps.md), sent only for keys with at least one cap

## Frequently Asked Questions (FAQ)

> [accordion] How does Premium Proxy differ from standard proxies?
>
> Premium Proxy utilizes residential IP addresses from genuine ISP connections, whereas standard proxies employ data center IPs. Residential IPs are much harder for websites to detect and block, resulting in higher success rates for scraping protected websites.

> [accordion] Can I specify which residential IP to use?
>
> No, Zenrows automatically selects residential IPs from its pool to ensure optimal performance and avoid IP exhaustion. Manual IP selection could lead to blocking and reduced success rates.

> [accordion] Do I need Premium Proxy for all websites?
>
> No, Premium Proxy is primarily needed for websites with anti-scraping measures. Simple websites without bot protection can often be scraped successfully using standard datacenter proxies.

> [accordion] Can I use Premium Proxy with custom headers?
>
> Yes, Premium Proxy works with all other Zenrows features, including custom headers, JavaScript rendering, and wait parameters. Combining features often provides the best results.


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