Skip to main content
The Browserbase platform supports running browsers in multiple geographic regions. Running browser sessions in or near your region will confer substantial performance gains. Explicit session creation allows you to decouple session creation and connection. This supports many use cases such as those involving parallelizing jobs or ones requiring long running sessions. It also supports customizing sessions settings. You can can specify a browser region using the region parameter in the Sessions API.
  • Node.js
  • Python
import { Browserbase } from "@browserbasehq/sdk";

const bb = new Browserbase({ apiKey: process.env.BROWSERBASE_API_KEY! });
const session = await bb.sessions.create({
  projectId: process.env.BROWSERBASE_PROJECT_ID!,
  region: "ap-southeast-1"
});
Available regions: us-west-2 (Oregon), us-east-1 (Virginia), eu-central-1 (Frankfurt), and ap-southeast-1 (Singapore). All sessions are created in us-west-2 by default.