Session Parameters
Last updated
Last updated
Session Parameters are shared between the:
New Session
Scrape
Crawl
Extract
Agent Tasks
This is a comprehensive list and description of all parameters available when setting up a session. You can view the to see the complete details.
useStealth
Type: boolean
Description: When set to true
, the session will be launched in stealth mode, which employs various techniques to make the browser harder to detect as an automated tool.
Default: false
useProxy
Type: boolean
Description: When set to true
, the session will be launched with a proxy server.
Default: false
proxyServer
Type: string
Description: The hostname or IP address of the proxy server to use for the session. This option is only used when useProxy
is set to true
.
Default: undefined
proxyServerUsername
and proxyServerPassword
Type: string
Description: The username and password to use for authenticating with the proxy server, if required. These options are only used when useProxy
is set to true
and the proxy server requires authentication.
Default: undefined
proxyCountry
Type: string
Enum: ["US", "GB", "CA", ...]
Description: The country where the proxy server should be located.
Default: "US"
operatingSystems
Type: array
Items: string
Enum: ["windows", "android", "macos", "linux", "ios"]
Description: An array of operating systems to use for fingerprinting.
Default: undefined
device
Type: array
Items: string
Enum: ["desktop", "mobile"]
Description: An array of device types to use for fingerprinting.
Default: undefined
platform
Type: array
Items: string
Enum: ["chrome", "firefox", "safari", "edge"]
Description: An array of browser platforms to use for fingerprinting.
Default: undefined
locales
Type: array
Items: string
Enum: ["en", "es", "fr", ...]
Description: An array of browser locales to specify the language for the browser.
Default: ["en"]
screen
Type: object
Properties:
width
(number, default 1280): The screen width in pixels.
height
(number, default 720): The screen height in pixels.
Description: An object specifying the screen resolution to emulate in the session.
solveCaptchas
Type: boolean
Description: When set to true
, the session will attempt to automatically solve any CAPTCHAs encountered during the session.
Default: false
adblock
Type: boolean
Description: When set to true
, the session will attempt to block ads and other unwanted content during the session.
Default: false
trackers
Type: boolean
Description: When set to true
, the session will attempt to block web trackers and other privacy-invasive technologies during the session.
Default: false
annoyances
Type: boolean
Description: When set to true
, the session will attempt to block common annoyances like pop-ups, overlays, and other disruptive elements during the session.
Default: false
acceptCookies
Type: boolean
Description: When set to true
, the session will attempt to accept all cookies on sites that are visited.
Default: false
enableWebRecording
Type: boolean
Default: true
profile
Type: object
Properties:
id
Type: string
Description: ID of the profile to use for the browser session.
persistChanges
Type: boolean
Description: When set to true
, changes will be persisted to this profile on session close.
Description: An object specifying the profile configuration.
timeoutMinutes
Type: number
Default: undefined
Minimum: 1
Maximum: 720
(12 hours)
Description: When set to true
, the session will be recorded using .
Description: Set the timeout in minutes for the session. The session will automatically be closed once it has been running for longer than this amount. Overrides the default Session Timeout set in your . By default, this is undefined and just the default Session Timeout is used for all sessions.