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 Route takes a query in plain words, plans it as a single step, and runs it. The planner picks the tool (search, extract, research, or browse) and the provider, so one call returns the answer. Use Route when you are not sure which tool fits. When you know, call the tool directly: Search, Extract, Research, or Browse.

Quick Start

Example Request

Example Response

How it works

1

You send a query

The query is the tool’s input: a search’s query, a browse’s task, or the URLs to extract.
2

WebRouter plans one step

The planner picks the tool and its body, weighing optimized_for and budgets.
3

WebRouter runs it

A search or extract answers in result, with status 200. A research or browse starts a job, returned in job with status 202.
Exactly one of result and job is set. plan always shows the step that ran.

When the route starts a job

A research or browse is billed as a start. The response holds the job instead of an answer:
Poll it by job.job_id, at GET /v2/web-router/research/{job_id} or GET /v2/web-router/browse/{job_id}, matching the step’s tool. See Research and Browse.

Parameters

string
required
The request, in plain words. Up to 10,000 characters.Example: latest Python release
string
default:"balanced"
What the planner favors when it picks the tool and provider.Options: speed, cost, coverage, balanced
object
What answering may spend. Unset sets no limit. The planner only picks providers whose estimate fits.
  • time_seconds: wall-clock time, in seconds
  • cost_usd: spend, in US dollars

Errors

Next Steps

WebRouter overview

Which call to use, authentication, and jobs

API Reference

Every field of the request and response