Beta · free while it lasts

A web agent you can call
like any other API.

Send a URL and a task. Browserwhale does the task in a fresh browser and returns a typed result, or tells you why it could not.

first-task.ts
import { Whale } from "@browserwhale/sdk";
import { z } from "zod";

// Reads BROWSERWHALE_API_KEY.
const whale = new Whale();

const task = await whale.run({
  url: "https://example.com",
  task: "Find the page's main heading.",
  output: z.object({ heading: z.string() }),
});

console.log(task.output.heading);
Task object
{
  "id": "task_…",
  "status": "completed",
  "cause": null,
  "output": { "heading": "Example Domain" },
  "limitations": [],
  "steps": [
    { "n": 1, "description": "Opening \"Example Domain\"" },
    { "n": 2, "description": "Reading the main heading" }
  ],
  "usage": {
    "steps": 2, "model_calls": 3, "input_tokens": …,
    "output_tokens": …, "duration_ms": 14210, "cost_usd": …
  }
}

Example responses. Values are illustrative, not measurements.

How it works

One request in, one honest result out.

  1. 01

    Create a task

    POST a start URL and a task in plain language. Add an output schema for typed results, and params for forms.

    POST /v1/tasks
  2. 02

    It runs in a fresh browser

    Each task gets its own browser, discarded afterwards. It clicks, types and scrolls the way a person would, and logs each step in plain language.

    Clicking "Sort by price"
  3. 03

    Read a typed outcome

    Long-poll until it finishes. Completed, partial or failed, always with what was found, what was not, and the steps taken.

    GET /v1/tasks/:id?wait=30

Typed outcomes

Built to avoid confident wrong answers.

A wrong answer reported as a success is the worst outcome for you. A task is completed only when the full result is there. Everything else says what it found, what is missing and why it stopped.

  • site_blocked
  • unavailable
  • limit_reached
  • could_not_complete
  • cancelled
  • model_error
  • internal_error
  • completed

    The full answer is in output and, when you sent a schema, valid against it.

  • partial

    Useful findings survive in results; unmet requirements are listed in limitations, with a cause.

  • failed

    No useful result, and a cause that tells you whether to retry, narrow the task or try another source.

Capabilities

Built for single-site tasks on public pages.

  • Structured extraction

    Read prices, listings, details and links into JSON that matches your schema.

  • Forms with your values

    Fill and submit forms from params. A form counts as done only when it was sent with your values.

  • Real navigation

    Follow links, filter, sort, paginate and scroll long lists, including inside pop-up dialogs.

  • Disposable browsers

    Every task gets a fresh browser. Nothing is kept between tasks.

  • Plain-language steps

    Every task returns a readable log of what was done, plus its duration, token usage and cost.

  • Retry-safe API

    Idempotency keys, long-poll waits and one error shape across every endpoint.

Not in the first version

Tasks that hit these limits end partial or failed with a cause.

All limitations
  • Public pages only: no logins, saved sessions or persistent profiles.
  • No CAPTCHA solving. "Verify you're human" checks end the task with site_blocked.
  • No purchases or checkout.
  • One site per task.
  • Text that appears only inside images or video may be missed.
  • Tasks take minutes. Success rates are being measured and are not published yet.

Free during the beta.

Sign in with Google or your email, create an API key, and get a monthly allowance of tasks at no cost. No card, no plan to choose.