Skip to main content
When you need clean Markdown or typed JSON from public web pages without managing Playwright connections, use Web API v2. This recipe combines:
  1. web.fetch with actions to expand dynamic tabs or dismiss gates before extraction.
  2. web.batchFetch.startAndWait (Scale plans and above) to extract structured JSON across many URLs in parallel.
Required API key scopes: web.fetch.run, web.batch-fetch.run, web.batch-fetch.read.

Prerequisites

  • HYPERBROWSER_API_KEY exported in your shell.
  • @hyperbrowser/sdk (TypeScript) or hyperbrowser (Python) installed.

Single-Page Fetch with Pre-Capture Actions


Parallel Batch Extraction (web.batchFetch)

Expected output

  • Single-page fetch prints the actionReplay status for each click/wait step along with a schema-validated plans JSON object.
  • Batch fetch logs each URL’s status (completed) and extracted Markdown character count once the parallel job finishes.

Next Steps

  • Web Fetch — actions, wait conditions, screenshots, and JSON Schema extraction.
  • Batch Fetch — pagination, cache tuning, and stealth tiers.