An AI agent that uses the web for you
Send a task and a URL. A real Chrome browser clicks, types, fills forms, logs in and returns the answer, plus structured JSON in your schema.
One request in, JSON out
curl https://lovelyrouter.com/v1/browser/runs \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"goal": "Get the top 3 stories on the front page",
"start_url": "https://news.ycombinator.com/",
"output_schema": { "stories": [{ "title": "string", "url": "string", "points": "integer" }] }
}'{
"id": "brun_8f3c…",
"status": "succeeded",
"steps": 1,
"answer": "The top 3 stories are …",
"data": {
"stories": [
{ "title": "Bitwarden Dual License Model", "url": "https://community.bitwarden.com/…", "points": 95 },
{ "title": "Talorys – A self-hosted personal AI agent…", "url": "https://github.com/rociiu/talorys", "points": 57 },
{ "title": "REA Reverse – Engineer Anything", "url": "https://rea.tools/", "points": 498 }
]
},
"charge_usd": 0.006
}Hand it to your AI agent
Copy this prompt into Claude Code, Cursor, Codex or any coding agent. It tells the agent where the docs are and how to use your API key.
Use the Lovely Router browser agent API: a real browser that clicks, types, fills forms and logs in for a task, and returns an answer plus JSON in a schema I choose.
- Docs (read first): https://lovelyrouter.com/docs/browser-agent.md and https://lovelyrouter.com/docs/api/browser.md
- Start a run: POST https://lovelyrouter.com/v1/browser/runs with `{"goal": "...", "start_url": "https://...", "output_schema": {...}}`. Put every value the task needs in the goal. It returns 202 at once; poll the `poll` path (or stream `events`) until the run ends, then read `answer` and `data`.
- Billed per step (fast mode by default). Set `max_steps` to cap a run. For unattended runs send `"human": false`; by default the agent pauses before purchases, sending or deleting (`approve`).
- If you support MCP, you can instead connect the server https://lovelyrouter.com/mcp (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.
My task: <describe the site and what the agent should do or extract>Built for real websites
Stream each action, every finished step and the browser screen while the agent works, in the console or over the API.
Pass an output schema and get validated JSON in data, taken only from the pages the agent visited — including real link URLs.
Write-only vault secrets, typed only on the sites you allow. TOTP seeds become 6-digit codes; save the session so later runs start signed in. The model never sees a value.
The agent can ask you a question, wait for your approval before a purchase, or hand you a Live View for a CAPTCHA.
Upload your files once; the agent picks the right one for each upload field (your CV, not your tax return).
Before it clicks submit, the agent compares every field with your task and fixes wrong or pre-filled values.
The fastest browser agent API we've tested
5× faster and a fraction of the cost. The same six public tasks on 2026-10-10, timed end to end from the start request to the result, with default settings. The other agent is the most-used pay-per-step browser agent on the Apify Store.
| Task | Lovely Router | Leading browser agent | Faster by |
|---|---|---|---|
| Hacker News top story | 3.7s · $0.006 | 22.5s · $0.038 | 6.1× |
| Product page two clicks deep | 7.3s · $0.018 | 63.7s · $0.095 | 8.7× |
| Book price lookup | 8.9s · $0.009 | 38.2s · $0.038 | 4.3× |
| Wikipedia search and read | 9.9s · $0.018 | 79.5s · $0.114 | 8.0× |
| Log in, then read the page | 12.1s · $0.033 | 52.7s · $0.105 | 4.4× |
| 3-step insurance quote form (17 fields) | 21.3s · $0.126 | 199.6s · $0.988 | 9.4× |
Pricing
Accurate also looks at screenshots when unsure and can run read-only code to read data.
- ✓ No run fee, no subscription
- ✓ AI models included — no LLM key needed
- ✓ Structured JSON output included
- ✓ Pay only for steps taken
- Each step includes 1 minute; time beyond that (e.g. waiting for your approval) costs $0.005/min
- Pick any of our models: its tokens at normal price × 1.2
| Example task | Steps | Fast | Accurate |
|---|---|---|---|
| Read a value from a page | 1–3 | $0.006–$0.018 | $0.012–$0.036 |
| Search a site and read a result | 2–6 | $0.012–$0.036 | $0.024–$0.072 |
| Log in and read account data | 4–8 | $0.024–$0.048 | $0.048–$0.096 |
| Fill and submit a long multi-step form | 15–25 | $0.090–$0.150 | $0.180–$0.300 |
API reference
Same API keys and balance as the rest of Lovely Router. Base URL https://lovelyrouter.com
Run parameters
A run ends as succeeded, failed, timed_out or stopped, and may pause as waiting_for_human. The result has answer (text), data (JSON or null), steps and charge_usd.
FAQ
Run it in the console, watch every step, then copy the API call.