Skip to main content
Hyperbrowser is a platform for running and scaling headless browsers. It lets you launch and manage browser sessions at scale and provides easy to use solutions for any webscraping needs, such as scraping a single page or crawling an entire site. Key Features:
  • Instant Scalability - Spin up hundreds of browser sessions in seconds without infrastructure headaches
  • Simple Integration - Works seamlessly with popular tools like Puppeteer and Playwright
  • Powerful APIs - Easy to use APIs for scraping/crawling any site, and much more
  • Bypass Anti-Bot Measures - Built-in stealth mode, ad blocking, automatic CAPTCHA solving, and rotating proxies
This guide provides a quick overview for getting started with Hyperbrowser web tools. For more information about Hyperbrowser, please visit the Hyperbrowser website or if you want to check out the docs, you can visit the Hyperbrowser docs.

Key capabilities

Scrape

Hyperbrowser provides powerful scraping capabilities that allow you to extract data from any webpage. The scraping tool can convert web content into structured formats like markdown or HTML, making it easy to process and analyze the data.

Crawl

The crawling functionality enables you to navigate through multiple pages of a website automatically. You can set parameters like page limits to control how extensively the crawler explores the site, collecting data from each page it visits.

Extract

Hyperbrowser’s extraction capabilities use AI to pull specific information from webpages according to your defined schema. This allows you to transform unstructured web content into structured data that matches your exact requirements.

Overview

Integration details

Setup

To access the Hyperbrowser web tools you’ll need to install the langchain-hyperbrowser integration package, and create a Hyperbrowser account and get an API key.

Credentials

Head to Hyperbrowser to sign up and generate an API key. Once you’ve done this set the HYPERBROWSER_API_KEY environment variable:

Installation

Install langchain-hyperbrowser.

Instantiation

Crawl tool

The HyperbrowserCrawlTool is a powerful tool that can crawl entire websites, starting from a given URL. It supports configurable page limits and scraping options.

Scrape tool

The HyperbrowserScrapeTool is a tool that can scrape content from web pages. It supports both markdown and HTML output formats, along with metadata extraction.

Extract tool

The HyperbrowserExtractTool is a powerful tool that uses AI to extract structured data from web pages. It can extract information based predefined schemas.

Invocation

Basic usage

Crawl tool

Scrape tool

Extract tool

With custom options

Crawl tool with custom options

Scrape tool with custom options

Extract tool with custom schema

Async usage

All tools support async usage:

Use within an agent

Here’s how to use any of the web tools within an agent:

Configuration options

Common options

All tools support these basic configuration options:
  • url: The URL to process
  • session_options: Browser session configuration
    • use_proxy: Whether to use a proxy
    • solve_captchas: Whether to automatically solve CAPTCHAs
    • accept_cookies: Whether to accept cookies

Tool-Specific options

Crawl tool

  • max_pages: Maximum number of pages to crawl
  • scrape_options: Options for scraping each page
    • formats: List of output formats (markdown, html)

Scrape tool

  • scrape_options: Options for scraping the page
    • formats: List of output formats (markdown, html)

Extract tool

  • schema: Pydantic model defining the structure to extract
  • extraction_prompt: Natural language prompt for extraction
For more details, see the respective API references:

API reference