Create a Session
Session Options
Customize your session with these parameters:| Parameter | Type | Description |
|---|---|---|
country | string | 2-letter ISO country code (e.g. US, CA) |
nodeId | string | Target a specific node you’ve used before |
type | string | consumer_distributed, hosted |
proxyUrl | string | SOCKS5 proxy URL, UDP support encouraged |
windowSize | string | Browser dimensions as WIDTHxHEIGHT |
profile | object | { name: string, persist: boolean } for persistent profiles |
Example with Options
Session Types
| Type | Description |
|---|---|
consumer_distributed | Runs on real consumer devices for maximum stealth |
hosted | Runs in our data centers for consistent performance |
Response
Notes
- Sessions may take up to 3 seconds to start
- Sessions automatically terminate after 1 hour
- CDP URLs are valid only while the session is active
- Always stop sessions when done to avoid unnecessary billing
Next Steps
- Using a Browser Session — Connect and automate
- Managing Sessions — Stop and list sessions