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.
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);{
"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": …
}
}{
"id": "task_…",
"status": "partial",
"cause": "site_blocked",
"output": null,
"results": [ … ],
"limitations": [{
"requirement": "Compare mugs on page 2",
"reason": "The site asked to verify you're human."
}],
"steps": [
{ "n": 1, "description": "Opening \"Mugs\"" },
{ "n": 2, "description": "Clicking \"Sort by price\"" },
…
],
"usage": { "steps": 9, "duration_ms": 74310, … }
}Example responses. Values are illustrative, not measurements.
How it works
One request in, one honest result out.
- 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 - 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" - 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_blockedunavailablelimit_reachedcould_not_completecancelledmodel_errorinternal_error
- completed
The full answer is in
outputand, when you sent a schema, valid against it. - partial
Useful findings survive in
results; unmet requirements are listed inlimitations, with acause. - failed
No useful result, and a
causethat 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.
- 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.