Python SDK
REST API Python Binding for Notte
Overview
The Notte Python SDK provides a comprehensive set of tools for interacting with the Notte API. This guide will walk you through the steps to install the SDK, configure your API key, and start using the SDK to manage your browser sessions, web agents, and page interactions.
Quickstart
Install the latest version of the SDK (requires `python >= 3.11`)
Configure your API key as an environment variable
You can request a free key directly from our console
Run your first agent
Explore what the Notte Python SDK can do for you
The SDK provides a comprehensive set of tools for interacting with the Notte API.
Learn more about web agents in the web agents guide.
Run a Web Agent
you can also get more control over the session and agent lifecycle by running an agent in a session explicitly:
Learn more about web agents in the web agents guide.
Run a Web Agent
you can also get more control over the session and agent lifecycle by running an agent in a session explicitly:
Learn more about browser sessions in the browser sessions guide.
Manage your browser sessions
The recommended way to use the SDK is to use the statefull
session API (but you can also use the stateless
session API to manage the session lifecycle yourself (i.e., start/stop
)).
you can also always list all your sessions using the sessions.list
method:
Learn more about page interactions in the page interactions guide.
Take control and execute actions in a session
The Notte SDK also allows you to observe a web page and its actions, scrape the page content, as well as execute actions in a running session:
- Observe: observe the actions available on a webpage
- Step: take an action on the page (e.g., click a button, fill in a form, etc.)
- Scrape: scrape a page in markdown format (or in a structured format using
BaseModel
frompydantic
)
Learn more about vaults and secrets in the vaults and secrets guide.
Manage your credentials in a secure vault
The Notte SDK allows you to securely store and access your credentials in a secure vault.
Notte makes it super easy to scrape a webpage and extract structured data from it using pydantic
models.
How to get visual insights about your sessions & agents
At any time during the execution of a session or an agent, you can retrieve a replay of the execution so far as a WebP
image.