Skip to main content
WebRouter is in closed beta. It’s available to selected accounts, and the API may still change. To get access, talk to the Nimble team.
WebRouter Browse gives a task to an agent that drives a real browser. It clicks, types, and reads through pages until the task is done, then returns its answer and the steps it took. Use it for what needs a browser, such as filling in a form or working through a site’s own search. To read a page you have the URL of, use Extract. A browse task takes minutes and is billed. It runs as a job: start it, then poll it until it ends.

Quick Start

Example Request

Example Response

The start answers at once, with status 202:
A poll of a completed task:

How it works

1

Start the task

POST /v2/web-router/browse answers at once with a job_id. Every start is a new, billed task. Nimble picks the provider and keeps the task with it.
2

The agent works in a browser

It starts at start_url, stays on allowed_domains, and takes at most max_steps actions.
3

Poll it

GET /v2/web-router/browse/{job_id}?wait=60 waits up to a minute for the task to end. Call again while state is queued or running.
4

Read the answer

Once state is completed, result.response holds the answer, the steps the agent reported, and a recording when the provider made one.
Poll the task you have instead of starting it again. If a start fails with may_have_started, a task may be running: do not start another.

Parameters

string
required
What the agent should do, in plain words. Up to 10,000 characters.
string
The page the agent starts on.
array of strings
Keep the agent on these domains. Up to 50.
integer
Upper bound on the actions the agent may take. Unset is the provider’s own limit.
object
A JSON Schema the answer must conform to, returned in response.structured. Unset asks for prose. The root must be an object with non-empty properties, or an array with items.

Response fields

Job states and errors

  • 502 or 504 on a poll: the provider did not answer that poll. The task goes on, so poll again.
  • 410 on a poll: the provider no longer knows the task. Read answers soon after a task completes.
  • Cancel: POST /v2/web-router/browse/{job_id}/cancel stops the task and returns it as it stands. A stopped task cannot be resumed.

Next Steps

Research

Answer questions across many sources, with citations

API Reference

Every field of the request and response