Skip to main content

Fields

session_id
str
required
The ID of the session (created or existing). Use this ID to interact with the session for the next operation.
idle_timeout_minutes
int
required
Session idle timeout in minutes. Will timeout if now() > last access time + idle_timeout_minutes
max_duration_minutes
int
default:"15"
Session max duration in minutes. Will timeout if now() > creation time + max_duration_minutes
created_at
datetime
required
Session creation time
closed_at
UnionType[datetime, None]
Session closing time
last_accessed_at
datetime
required
Last access time
duration
timedelta
required
Session duration
status
Literal['active', 'closed', 'error', 'timed_out']
required
Session status
steps
list[Dict[str, Any]]
required
Steps of the session
error
UnionType[str, None]
Error message if the operation failed to complete
credit_usage
UnionType[float, None]
Credit usage for the session. None
proxies
bool
default:"False"
Whether proxies were used for the session. True if any proxy was applied during session creation.
browser_type
Literal['chromium', 'chrome', 'firefox', 'chrome-nightly', 'chrome-turbo']
default:"chromium"
use_file_storage
bool
default:"False"
Whether FileStorage was attached to the session.
network_request_bytes
int
default:"0"
Total byte usage for network requests.
network_response_bytes
int
default:"0"
Total byte usage for network responses.
user_agent
UnionType[str, None]
The user agent to use for the session
viewport_width
UnionType[int, None]
The width of the viewport
viewport_height
UnionType[int, None]
The height of the viewport
headless
bool
default:"True"
Whether to run the session in headless mode.
solve_captchas
UnionType[bool, None]
Whether to solve captchas.
cdp_url
UnionType[str, None]
The URL to connect to the CDP server.

Module

notte_sdk.types