> ## Documentation Index
> Fetch the complete documentation index at: https://hyperbrowser.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Authenticate REST, SDK, and CLI requests with the `x-api-key` header using the `HYPERBROWSER_API_KEY` environment variable (create keys at https://app.hyperbrowser.ai).
> Always stop browser sessions (`sessions.stop(id)` / `PUT /api/session/{id}/stop`) and sandboxes (`sandboxes.stop(id)` / `PUT /api/sandbox/{id}/stop`) in `try`/`finally` blocks to avoid idle billing.
> Choose the right surface: use Web API (`/api/web/fetch`, `batch-fetch`, `crawl`, `search`) for stateless reading and extraction (prefer it over legacy `/api/scrape`); Browser Sessions (`/api/session`) for interactive, authenticated, or Playwright/Puppeteer workflows; Cloud Agents (`/api/task/*`) for autonomous browser tasks; and Sandboxes (`/api/sandbox`) for isolated Linux or macOS code execution.
> Use `@hyperbrowser/sdk` for Node.js/TypeScript, `hyperbrowser` 1.0+ typed-dict request params for Python (avoid legacy Pydantic request classes), the unified `hx` CLI for terminal workflows, and hosted OAuth MCP at `https://mcp.hyperbrowser.ai/mcp/web` (web tools; use `https://mcp.hyperbrowser.ai/mcp` only when browser, sandbox, admin, and usage tools are needed).

# Start a batch fetch job

> Fetch multiple URLs in parallel in a single asynchronous job (Scale plans and above). Requires scope `web.batch-fetch.run`. See [Batch Fetch](/web/batch-fetch).



## OpenAPI

````yaml openapi.json POST /api/web/batch-fetch
openapi: 3.0.1
info:
  title: Hyperbrowser API
  version: 1.0.0
servers:
  - url: https://api.hyperbrowser.ai
    description: Production server
security: []
tags:
  - name: Sessions
    description: Create, control, update, snapshot, and observe cloud browser sessions.
  - name: WebMCP
    description: Discover and invoke page-provided WebMCP tools inside a browser session.
  - name: Profiles
    description: >-
      Persist and reuse browser cookies, storage, and auth state across
      sessions.
  - name: Extensions
    description: Upload and manage Chrome extensions loaded into browser sessions.
  - name: Static IPs
    description: Manage dedicated static IP addresses for browser sessions.
  - name: Web API
    description: High-speed web fetch, batch fetch, crawl, and search endpoints.
  - name: Legacy Scraping
    description: Maintained legacy scrape, batch scrape, crawl, and extract endpoints.
  - name: Cloud Agents
    description: Managed autonomous browser agent tasks.
  - name: Sandboxes
    description: ''
  - name: Volumes
    description: Persistent shared volumes mounted across sandboxes.
  - name: Persistent Disks
    description: Persistent writable and snapshot disks for macOS sandboxes.
  - name: Images & Builds
    description: Build, reuse, list, and delete custom sandbox images.
  - name: Snapshots
    description: Manage Hyperbrowser memory snapshots for sub-second sandbox boots.
  - name: Secrets
    description: >-
      Create and version encrypted secrets for sandboxes and browser credential
      fill.
  - name: Vaults
    description: Group related secrets into reusable vaults.
  - name: Platform & Billing
    description: Inspect team credits and per-job credit/token usage.
  - name: X402
    description: Pay-per-request HTTP 402 endpoints for sessions, fetch, and search.
paths:
  /api/web/batch-fetch:
    post:
      tags:
        - Web API
      summary: Start a batch fetch job
      description: >-
        Fetch multiple URLs in parallel in a single asynchronous job (Scale
        plans and above). Requires scope `web.batch-fetch.run`. See [Batch
        Fetch](/web/batch-fetch).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartWebBatchFetchJobParams'
      responses:
        '200':
          description: Batch fetch job started
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartJobIdResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: typescript
          label: Node.js
          source: |-
            import { Hyperbrowser } from "@hyperbrowser/sdk";

            const client = new Hyperbrowser({ apiKey: "your-api-key" });

            const result = await client.web.batchFetch.startAndWait({
              urls: ["https://example.com", "https://example.org"],
              outputs: { formats: ["markdown"] },
            });
        - lang: python
          label: Python
          source: |-
            from hyperbrowser import Hyperbrowser

            client = Hyperbrowser(api_key="your-api-key")

            result = client.web.batch_fetch.start_and_wait({
                "urls": ["https://example.com", "https://example.org"],
                "outputs": {"formats": ["markdown"]},
            })
        - lang: bash
          label: cURL
          source: |-
            curl -X POST "https://api.hyperbrowser.ai/api/web/batch-fetch" \
              -H "x-api-key: $HYPERBROWSER_API_KEY" \
              -H "Content-Type: application/json" \
              -d '{"urls": ["https://example.com", "https://example.org"]}'
components:
  schemas:
    StartWebBatchFetchJobParams:
      type: object
      required:
        - urls
      properties:
        urls:
          type: array
          items:
            type: string
          minItems: 1
        stealth:
          $ref: '#/components/schemas/FetchStealthMode'
        outputs:
          $ref: '#/components/schemas/FetchOutputOptions'
        browser:
          $ref: '#/components/schemas/FetchBrowserOptions'
        navigation:
          $ref: '#/components/schemas/FetchNavigationOptions'
        cache:
          $ref: '#/components/schemas/FetchCacheOptions'
    StartJobIdResponse:
      type: object
      required:
        - jobId
      properties:
        jobId:
          type: string
          format: uuid
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
    FetchStealthMode:
      type: string
      enum:
        - none
        - auto
        - ultra
      default: auto
      description: Stealth mode.
    FetchOutputOptions:
      type: object
      properties:
        formats:
          type: array
          items:
            oneOf:
              - $ref: '#/components/schemas/FetchOutputMarkdown'
              - $ref: '#/components/schemas/FetchOutputHtml'
              - $ref: '#/components/schemas/FetchOutputLinks'
              - $ref: '#/components/schemas/FetchOutputScreenshot'
              - $ref: '#/components/schemas/FetchOutputJson'
              - $ref: '#/components/schemas/FetchOutputBranding'
              - type: string
                enum:
                  - markdown
                  - html
                  - links
                  - screenshot
                  - branding
        sanitize:
          $ref: '#/components/schemas/FetchSanitizeMode'
        includeSelectors:
          type: array
          items:
            type: string
        excludeSelectors:
          type: array
          items:
            type: string
        storageState:
          $ref: '#/components/schemas/FetchStorageStateOptions'
    FetchBrowserOptions:
      type: object
      properties:
        screen:
          $ref: '#/components/schemas/ScreenConfig'
        profileId:
          type: string
          example: prof_01JXYZ1234567890ABCDEF
        solveCaptchas:
          type: string
        location:
          $ref: '#/components/schemas/FetchBrowserLocationOptions'
        disableSoftwareWebGL:
          type: boolean
          default: false
          description: Skip forced SwiftShader WebGL rendering.
        operatingSystem:
          $ref: '#/components/schemas/OperatingSystem'
          description: Operating system claimed in the browser fingerprint.
        solverType:
          type: string
          description: Optional CAPTCHA solver identifier when `solveCaptchas` is enabled.
        acceptCookies:
          type: boolean
          default: false
          description: Automatically dismiss/accept cookie consent banners.
        region:
          $ref: '#/components/schemas/SessionRegion'
          description: Region where the backing browser runs (defaults to `us`).
    FetchNavigationOptions:
      type: object
      properties:
        waitUntil:
          $ref: '#/components/schemas/FetchWaitUntil'
        timeoutMs:
          type: integer
        waitFor:
          type: integer
    FetchCacheOptions:
      type: object
      properties:
        maxAgeSeconds:
          type: integer
    FetchOutputMarkdown:
      type: object
      properties:
        type:
          type: string
          enum:
            - markdown
      required:
        - type
    FetchOutputHtml:
      type: object
      properties:
        type:
          type: string
          enum:
            - html
      required:
        - type
    FetchOutputLinks:
      type: object
      properties:
        type:
          type: string
          enum:
            - links
      required:
        - type
    FetchOutputScreenshot:
      allOf:
        - $ref: '#/components/schemas/FetchOutputScreenshotOptions'
        - type: object
          properties:
            type:
              type: string
              enum:
                - screenshot
          required:
            - type
    FetchOutputJson:
      allOf:
        - $ref: '#/components/schemas/FetchOutputJsonOptions'
        - type: object
          properties:
            type:
              type: string
              enum:
                - json
          required:
            - type
    FetchOutputBranding:
      type: object
      properties:
        type:
          type: string
          enum:
            - branding
      required:
        - type
    FetchSanitizeMode:
      type: string
      enum:
        - none
        - basic
        - advanced
    FetchStorageStateOptions:
      type: object
      properties:
        localStorage:
          type: object
          additionalProperties:
            type: string
        sessionStorage:
          type: object
          additionalProperties:
            type: string
    ScreenConfig:
      type: object
      properties:
        width:
          type: number
          default: 1280
        height:
          type: number
          default: 720
    FetchBrowserLocationOptions:
      type: object
      properties:
        country:
          type: string
        state:
          type: string
        city:
          type: string
    OperatingSystem:
      type: string
      enum:
        - windows
        - android
        - macos
        - linux
        - ios
    SessionRegion:
      type: string
      description: >-
        Region to run the session in. The asia-south region is only available on
        Enterprise and Select plans. Get in touch at
        https://calendly.com/shri-hyperbrowser/demo.
      enum:
        - us
        - us-central
        - us-west
        - us-east
        - asia-south
        - europe-west
    FetchWaitUntil:
      type: string
      enum:
        - load
        - domcontentloaded
        - networkidle
    FetchOutputScreenshotOptions:
      type: object
      properties:
        fullPage:
          type: boolean
        format:
          $ref: '#/components/schemas/FetchScreenshotFormat'
        cropToContent:
          type: boolean
        cropToContentMaxHeight:
          type: integer
        cropToContentMinHeight:
          type: integer
        highQuality:
          type: boolean
          description: Capture a higher-quality screenshot.
    FetchOutputJsonOptions:
      type: object
      properties:
        schema:
          type: object
        prompt:
          type: string
          description: >-
            Natural language prompt describing what data to extract. If only
            prompt is provided, a schema is auto-generated from it. If both
            prompt and schema are provided, the schema defines the output
            structure while the prompt provides additional guidance for the
            extraction.
    FetchScreenshotFormat:
      type: string
      enum:
        - jpeg
        - png
        - webp
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.