Crawling

Crawl a site and all it's links.

1

Install Hyperbrowser

npm install @hyperbrowser/sdk

or

yarn add @hyperbrowser/sdk
2

Setup your Environment

To use Hyperbrowser with your code, you will need an API Key. You can get one easily from the dashboard. Once you have your API Key, add it to your .env file as HYPERBROWSER_API_KEY .

3

Crawl a Site

Next, you can crawl any site by simply setting up the Hyperbrowser client and providing the site's url.

import { Hyperbrowser } from "@hyperbrowser/sdk";
import { config } from "dotenv";

config();

const client = new Hyperbrowser({
  apiKey: process.env.HYPERBROWSER_API_KEY,
});

const main = async () => {
  const crawlResult = await client.crawl.startAndWait({
    url: "https://hyperbrowser.ai",
  });
  console.log("Crawl result:", crawlResult);
};

main();
4

View Session in Dashboard

You can view all your sessions in the dashboard and see their recordings or other key metrics like logs.

Last updated

Logo

© 2025 S2 Labs, Inc. All rights reserved.