Get your API Key
Your API key and Project ID are displayed in the Overview Dashboard:
Then copy your API Key directly from the input and update your .env
by adding the BROWSERBASE_API_KEY
entry
Alternatively, you can temporarily set the environment variable for a single bash command by prefixing it with BROWSERBASE_API_KEY=<your_api_key>
in your terminal.
Install dependencies
Update your code or clone a template
Running your existing code with Browserbase only requires a few line changes:
BROWSERBASE_API_KEY
and BROWSERBASE_PROJECT_ID
environment variables to the values you copied from the Dashboard.Clone this GitHub repo to get started with Puppeteer
Inspect the completed Session
You can find all the recent sessions on the Overview Dashboard, along with essential metrics:
Select your Session to inspect it with the Session Inspector.
Learn how to connect to and interact with browser sessions effectively.
Understand how to properly end sessions and manage their lifecycle.