Skip to main content
POST
python

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-notte-request-origin
string | null
x-notte-sdk-version
string | null

Body

application/json
url
string
required
solve_captchas
boolean
default:true

Whether to try to automatically solve captchas

max_duration_minutes
integer
default:15

Maximum session lifetime in minutes (absolute maximum, not affected by activity).

Required range: x <= 1440
idle_timeout_minutes
integer
default:3

Idle timeout in minutes. Session closes after this period of inactivity (resets on each operation).

Required range: x <= 30
proxies

List of custom proxies to use for the session. If True, the default proxies will be used.

browser_type
enum<string>
default:chromium

The browser type to use. Supported values are chromium and chrome. chrome-nightly and chrome-turbo are legacy aliases for chrome.

Available options:
chromium,
chrome,
chrome-nightly,
chrome-turbo
user_agent
string | null

The user agent to use for the session

chrome_args
string[] | null

Overwrite the chrome instance arguments

viewport_width
integer | null

Viewport width in pixels (minimum 500). Set together with viewport_height.

Required range: x >= 500
viewport_height
integer | null

Viewport height in pixels (minimum 500). Set together with viewport_width.

Required range: x >= 500
aspect_ratio
enum<string> | null

Viewport shape preset. When set, the backend fits the largest rectangle of this aspect ratio inside the sampled available screen area. Cannot be combined with explicit viewport_width/viewport_height.

Available options:
5:4,
16:9
cdp_url
string | null

The CDP URL of another remote session provider.

profile
SessionProfile · object | null

Browser profile configuration for state persistence

web_bot_auth
boolean
default:false

Whether to use web bot authentication.

extra_http_headers
Extra Http Headers · object | null

Extra HTTP headers to be sent with every request.

vault_id
string | null

The vault to use for the session

auth_ids
string[]

Managed Auth connection IDs to verify and, when necessary, authenticate inside this session before it is returned.

Maximum array length: 10
wait_for_authentication
boolean
default:true

Whether to wait for Managed Auth before returning the session. Defaults to true. When true, authentication failure or timeout fails session creation; when false, authentication continues in the background after the browser is ready.

record_session
boolean
default:true

Save session replay. False permanently disables saved replay; Live View remains available.

log_session
boolean
default:true

Save browser session logs. False permanently disables saved logs, without disabling metering.

auth_retry
integer
default:0
Required range: 0 <= x <= 2
block_ads
boolean
default:true

Block ads and trackers in managed browsers using Basic filtering. Set false to disable. Does not configure externally supplied CDP browsers.

dialog_policy
enum<string>
default:auto

Who answers JavaScript dialogs (alert, confirm, prompt, beforeunload). auto (default): Notte answers them, dismissing alert, confirm and prompt and accepting beforeunload. client: Notte leaves them for your CDP client to accept or dismiss, and dismisses one nobody answers within 10 seconds.

Available options:
auto,
client
advanced_stealth
boolean
default:false

Enable Notte's highest-fidelity browser environment for sites with sophisticated bot detection. Available to approved workspaces.

os
enum<string> | null

The operating system the session's browser presents: windows or macos. When unset, each session gets one at random among those the environment offers.

Available options:
windows,
macos
screenshot_type
enum<string>
default:last_action
deprecated

Ignored since notte 1.10: screenshots are returned without highlighting.

Available options:
raw,
full,
last_action
selector
string | null

Playwright selector to scope the scrape to. Only content inside this selector will be scraped.

Whether to scrape links from the page. Links are scraped by default.

scrape_images
boolean
default:false
deprecated

Image scraping was removed; true returns 422.

ignored_tags
string[] | null

HTML tags to ignore from the page

only_main_content
boolean
default:false

Whether to only scrape the main content of the page. If True, navbars, footers, etc. are excluded.

response_format
any | null

The response format to use for the scrape. You can use a Pydantic model or a JSON Schema dict (cf. https://docs.pydantic.dev/latest/concepts/json_schema/#generating-json-schema.)

instructions
string | null

Additional instructions to use for the scrape. E.g. 'Extract only the title, date and content of the articles.'

model
string | null

Model used for structured extraction. Canonical OpenRouter ids: google/gemini-3.5-flash, google/gemini-3.5-flash-lite, google/gemini-3.1-flash-lite, google/gemini-3.1-flash-lite-preview, google/gemini-2.5-flash, openai/gpt-4.1-mini, openai/gpt-4o, google/gemma-3-27b-it, openai/gpt-oss-120b, perplexity/sonar-pro, deepseek/deepseek-r1, meta-llama/llama-3.3-70b-instruct, anthropic/claude-sonnet-4-5, anthropic/claude-haiku-4-5, moonshotai/kimi-k2.5, x-ai/grok-4.3, minimax/minimax-m2.5. Reviewed legacy LiteLLM ids remain accepted. Defaults to google/gemini-3.5-flash.

Whether to use link/image placeholders to reduce the number of tokens in the prompt and hallucinations. However this is an experimental feature and might not work as expected.

only_images
boolean
default:false
deprecated

Image scraping was removed; true returns 422.

Response

Successful Response

markdown
string
required

Markdown representation of the extracted data

structured
StructuredData[BaseModel] · object | null

Structured data extracted from the page in JSON format