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

# World Region Configuration for the Zenrows Browser

> Set up world region targeting to route your Zenrows Browser requests via residential IPs for location-specific web scraping.

The Zenrows Browser (formerly, Scraping Browser) empowers you to target specific regions of the world for your web scraping operations, unlocking geo-restricted content and enabling region-specific data collection. This guide shows you how to configure world region targeting using both the Zenrows SDK (recommended) and direct WebSocket connections.

## What is World Region Targeting?

World region targeting routes your scraping requests through residential IPs from a chosen geographic area. This is crucial when websites display different content, pricing, or availability based on visitor location.

**Typical use cases:**

* Accessing geo-locked content or services
* Price comparison across markets
* Testing website localization and UX
* Circumventing geo-blocks for data gathering
* Ad verification in multiple regions

> [!NOTE]
>
> Auto-rotate and Residential IPs are pre-configured and enabled by default for all Zenrows Browser users, ensuring optimal performance and reliability.

## How to Configure World Region

You can configure world region targeting in two ways:

* **Zenrows SDK:** Easiest and most robust option for most users
* **Direct WebSocket URL:** For advanced or custom integrations

> [tab] Puppeteer
>
> Specify the region in the WebSocket URL with the `proxy_region` parameter:
>
> ```bash theme={"theme":"css-variables"}
> wss://browser.zenrows.com?apikey=YOUR_ZENROWS_API_KEY&proxy_region=eu
> ```
>
> **Examples:**
>
> ```javascript Node.js theme={"theme":"css-variables"}
> const puppeteer = require('puppeteer-core');
> const connectionURL = 'wss://browser.zenrows.com?apikey=YOUR_ZENROWS_API_KEY&proxy_region=eu';
>
> (async () => {
>     const browser = await puppeteer.connect({ browserWSEndpoint: connectionURL });
>     const page = await browser.newPage();
>     await page.goto('https://example.com');
>     console.log(await page.title());
>     await browser.close();
> })();
> ```
>
> ```python Python theme={"theme":"css-variables"}
> import asyncio
> from pyppeteer import connect
>
> async def main():
>     ws_url = 'wss://browser.zenrows.com?apikey=YOUR_ZENROWS_API_KEY&proxy_region=eu'
>     browser = await connect(browserWSEndpoint=ws_url)
>     page = await browser.newPage()
>     await page.goto('https://example.com')
>     print(await page.title())
>     await browser.close()
>
> asyncio.get_event_loop().run_until_complete(main())
> ```
>
> **Available Region Codes:**
>
> * `eu` - Europe
> * `na` - North America
> * `ap` - Asia Pacific
> * `sa` - South America
> * `af` - Africa
> * `me` - Middle East

> [tab] Playwright
>
> Specify the region in the WebSocket URL with the `proxy_region` parameter:
>
> ```bash theme={"theme":"css-variables"}
> wss://browser.zenrows.com?apikey=YOUR_ZENROWS_API_KEY&proxy_region=eu
> ```
>
> **Examples:**
>
> ```javascript Node.js theme={"theme":"css-variables"}
> const { chromium } = require('playwright');
>
> (async () => {
>     const browser = await chromium.connectOverCDP('wss://browser.zenrows.com?apikey=YOUR_ZENROWS_API_KEY&proxy_region=eu');
>     const page = await browser.newPage();
>     await page.goto('https://example.com');
>     console.log(await page.title());
>     await browser.close();
> })();
> ```
>
> ```python Python theme={"theme":"css-variables"}
> import asyncio
> from playwright.async_api import async_playwright
>
> async def main():
>     async with async_playwright() as p:
>         browser = await p.chromium.connect_over_cdp('wss://browser.zenrows.com?apikey=YOUR_ZENROWS_API_KEY&proxy_region=eu')
>         page = await browser.new_page()
>         await page.goto('https://example.com')
>         print(await page.title())
>         await browser.close()
>
> asyncio.run(main())
> ```
>
> **Available Region Codes:**
>
> * `eu` - Europe
> * `na` - North America
> * `ap` - Asia Pacific
> * `sa` - South America
> * `af` - Africa
> * `me` - Middle East

> [tab] Zenrows SDK
>
> The Zenrows SDK makes region configuration simple and manages connections automatically. Recommended for most users.
>
> ```javascript Node.js Puppeteer theme={"theme":"css-variables"}
> const { ZenRowsBrowser, ProxyRegion } = require('zenrows');
>
> (async () => {
>     const browser = await ZenRowsBrowser.puppeteer({
>         apiKey: 'YOUR_ZENROWS_API_KEY',
>         proxyRegion: ProxyRegion.Europe // or .NorthAmerica, .AsiaPacific, etc.
>     });
>     const page = await browser.newPage();
>     await page.goto('https://example.com');
>     console.log(await page.title());
>     await browser.close();
> })();
> ```
>
> ```javascript Node.js Playwright theme={"theme":"css-variables"}
> const { ZenRowsBrowser, ProxyRegion } = require('zenrows');
>
> (async () => {
>     const browser = await ZenRowsBrowser.playwright({
>         apiKey: 'YOUR_ZENROWS_API_KEY',
>         proxyRegion: ProxyRegion.Europe // or .NorthAmerica, .AsiaPacific, etc.
>     });
>     const page = await browser.newPage();
>     await page.goto('https://example.com');
>     console.log(await page.title());
>     await browser.close();
> })();
> ```
>
> **Available SDK Region Options:**
>
> * `ProxyRegion.Europe` - European residential IPs
> * `ProxyRegion.NorthAmerica` - North American residential IPs
> * `ProxyRegion.AsiaPacific` - Asia-Pacific residential IPs
> * `ProxyRegion.SouthAmerica` - South American residential IPs
> * `ProxyRegion.Africa` - African residential IPs
> * `ProxyRegion.MiddleEast` - Middle Eastern residential IPs

![World Region Configuration Interface](https://mintcdn.com/zenrows/bpr0c_CycI-XglbC/images/browser_proxy_region.png?fit=max\&auto=format\&n=bpr0c_CycI-XglbC\&q=85\&s=e80e0e5233d00f89a202e2c0818eaeea)

## Best Practices

**Choosing the Right Region:**

* Select the region closest to your target audience or where the content is most relevant
* Consider local time zones and business hours for time-sensitive scraping

**SDK vs Direct Connection:**

* Use the SDK for most projects (better error handling and connection management)
* Use direct WebSocket only for fine-grained control or custom framework integration

**Testing and Validation:**

* Test your region config with a simple request to verify IP location
* Monitor scraping results to ensure you're seeing expected regional content

## Troubleshooting

**Common Issues:**

* **Invalid region code:** Double-check you're using the correct region codes
* **No regional content difference:** Some sites may not vary by region. Verify with manual testing
* **Connection timeouts:** Proxy pools may vary by region; try another if needed

**Debugging Tips:**

* Use browser dev tools to inspect the IP address
* Test the same URL from different regions to confirm content variation
* Check Zenrows dashboard for logs and error details

> [!TIP]
>
> For more granular targeting, see [Country Targeting](https://docs.zenrows.com/browser-sessions/features/country.md).

## Next Steps

* Learn about [Country Targeting](https://docs.zenrows.com/browser-sessions/features/country.md) for precision
* Explore [Session TTL Configuration](https://docs.zenrows.com/browser-sessions/features/session-ttl.md) to manage session duration
* See the [Zenrows SDK Repository](https://github.com/ZenRows/browser-js-sdk) for advanced features and examples
* Review the [Practical Use Cases](https://docs.zenrows.com/browser-sessions/help/practical-use-cases.md) for real world examples


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