Primitives

Your agent is only as good as its context

The Search and Fetch APIs let agents see and gather context on the web before acting on it.

Web APIs built for agents, not humans.

Most agent tasks start with a question: where should I go, and what's there?

  • Search API

    Most search APIs are designed around how people browse. Agents don't browse. They navigate, extract, and act, and every unnecessary hop costs tokens, time, and reliability.

  • Fetch API

    Most tools return what a page looks like in theory. The Fetch API returns what's actually there. Pass a URL, choose your format, and get back clean, structured content your agent can use immediately.

Search, Fetch, and Browse.

An agent-optimized web experience

Integrated with our AI SDK: Stagehand

One API Key gives your agents access to the whole web.

import { Browserbase } from "@browserbasehq/sdk";

const bb = new Browserbase({ apiKey: process.env.BROWSERBASE_API_KEY! });

const searchResponse = await bb.search.web({
  query: "a web browser for ai agents",
  numResults: 10,
});

const response = await bb.fetchAPI.create({
  url: searchResponse[0].url,
});
Copied to clipboard

Start building browser agents

One API Key to access the whole web.

Build, ship and scale on Browserbase