Browserbase icon

Browserbase

Browser automation, web search, and page fetches with Browserbase.

Agent → Fetch a Webpage

AI-generated

Summary

Fetches a webpage and returns its content in the chosen format (raw body, markdown, or structured JSON extraction).

Inputs

  • fetchUrl (required) — The URL to fetch
  • format — How content is returned. Raw is the response body. Markdown and JSON are converted first.
  • schema (required) — JSON Schema for the object returned in content. Required when Format is JSON.
  • fetchOptions — Options for controlling the fetch, including proxy settings, SSL verification, and redirect behavior.

Output shape

A single record containing the fetched webpage's metadata and content. Fields include id, url, format, statusCode, headers, and content formatted according to the selected format.

When format is JSON, the JSON Schema parameter is required and guides structured extraction. Markdown format converts the page to text (bilated as Fetch Extract). Raw format returns the upstream response body unchanged. Output always includes id, url, format, statusCode, headers, and content fields.

Examples

Example 1: Retrieve the raw HTML body of a public webpage.

Set URL to the target page; leave Format as Raw. No JSON Schema is needed.

Example 2: Convert a webpage to markdown for text-based extraction.

Set URL and Format to Markdown. The node returns the page content as markdown.

Example 3: Extract structured data from a page using a JSON Schema.

Set URL, Format to JSON, and provide a JSON Schema (e.g., for title and summary). The node applies the schema to extract matching fields.

Links

Discussion