Multi-region
Control where your Steel browser sessions are hosted for optimal performance and latency.
Overview
By default, Steel automatically selects the data center closest to the client’s request location when creating a new browser session. This ensures optimal performance and minimal latency for your browser automation tasks. However, you can also manually specify which region you want your browser session to run in using the region
parameter.
This region selection determines the physical location of the browser instance itself, which can help reduce latency for applications targeting specific geographic areas or comply with data residency requirements.
Automatic Region Selection
When you create a session without specifying a region, Steel automatically determines the closest data center based on your request location:
1import Steel from 'steel-sdk';23const client = new Steel();45// Automatically uses the closest region6const session = await client.sessions.create();
Manual Region Selection
To specify a particular region for your browser session, use the region
parameter when creating a session:
1import Steel from 'steel-sdk';23const client = new Steel();45// Create session in Los Angeles data center6const session = await client.sessions.create({7region: "LAX"8});
Available Regions
Steel is available in the following regions:
Region | Code | Data Center Location |
---|---|---|
Los Angeles | LAX | Los Angeles, USA |
Chicago | ORD | Chicago, USA |
Washington DC | IAD | Washington DC, USA |
Santiago | SCL | Santiago, Chile |
Frankfurt | FRA | Frankfurt, Germany |
Region vs Proxy Selection
Region selection determines where your browser session runs, which is different from proxy selection. The region parameter controls the physical location of the browser instance, while the useProxy and proxyUrl parameters control the network routing and IP address used by the browser for web requests.
You can combine region selection with proxy settings:
1// Browser runs in Frankfurt, but uses a US proxy for requests2const session = await client.sessions.create({3region: "FRA",4useProxy: true5});6
We'll be launching new features soon to allow you to control regions for proxies as well. Right now, all are US based.
Reach out to us on the #help channel on Discord under the ⭐ community section.