Skip to content
Browserbase
    • Primitives
      • BrowsersCloud browsers for your agent to use the web
      • AgentsScale fully managed browser agents with simple prompts
      • SearchFind relevant websites from a single query
      • FetchRetrieve web data as agent-ready HTML, JSON, or markdown
      • RuntimeScalable, sandboxed environments for agent deployments
      • IdentityAuthenticate your agent to navigate the web like a human
      • ModelsUse any model with a single API key
      • ObservabilityUnified debugging your agent across replays, logs, and prompts
    • Open Source
      • Browse CLIGive your agent browsing skills with a single command
      • StagehandThe most popular AI browser automation framework
    • Use Cases
      • Browser Agents
      • Automated Testing
      • Workflow Automation
      • Web Data Extraction
      All use cases
    • Industries
      • AI & Agent Platforms
      • Healthcare
      • Fintech
      • GTM
      • Legal
    • Resources
      • Blog
      • Customers
      • Enterprise
      • Templates
  • Pricing
  • Docs
  • Log in
Log in
Sign up
Get a demo

Getting started with Browserbase

Get started with Browserbase in a single script covering the Search API, Fetch, and browser sessions powered by Playwright.

Getting started with Browserbase demo

Works with

TypeScriptTypeScriptPythonPythonPlaywrightPlaywright

Built by

Browserbase

Support

support@browserbase.com

Resources

Browserbase docsStagehand websiteStagehand docs
Copy prompt to run with your AI agent
npx create-browser-app --template getting-started-with-browserbase
uvx create-browser-app --template getting-started-with-browserbase

Send this template to your email, or view it on your desktop for the source code.

Get started with Browserbase

Get up and running with all three core Browserbase capabilities in a single script. The Search API lets you perform web searches programmatically and receive structured results, no browser session required. Fetch grabs the content of any URL through Browserbase's infrastructure without creating a browser session, ideal for quick page retrievals where you don't need interactivity. And Browser Sessions give you a full cloud browser controlled via Playwright and CDP. No AI model required, just your Browserbase API key.

Steps

  1. Run a web search using the Search API and print the top results with titles and URLs
  2. Fetch a Wikipedia page using the Fetch API (no browser) and extract the page title from raw HTML
  3. Create a Browserbase session and connect via CDP using Playwright
  4. Navigate to Wikipedia, search for a topic, and extract the article title, summary, and section headings

Most Popular Templates

MFA handling: TOTP code generation

Automate MFA completion using TOTP code generation with RFC 6238 compliant algorithm

MFA handling: TOTP code generation

Voice agent automation with Cartesia

Voice agent that conducts structured questionnaires using YAML configuration with conditional logic and response validation.

Voice agent automation with Cartesia

PDF scraping and data extraction with Reducto

Automate downloading PDFs from websites and extract structured data using AI-powered document parsing.

PDF scraping and data extraction with Reducto
Browserbase

Primitives

  • Browsers
  • Web APIs
  • Runtime
  • Identity
  • Model Gateway
  • Observability
  • Stagehand
  • MCP

Industries

  • AI
  • Healthcare
  • GTM
  • Tax
  • Legal

Developers

  • Docs
  • Templates
  • APIs & SDKs
  • Changelog
  • Status
  • Github

Company

  • Careers
  • Customers
  • Partner with Us
  • Trust & Security

Community

TwitterLinkedinYoutube
  • Privacy Policy
  • Terms of Service

Community

TwitterLinkedinYoutube
  • Privacy Policy
  • Terms of Service