Stealth Browser Agent avatar

Stealth Browser Agent

Pricing

from $17.00 / 1,000 step completeds

Go to Apify Store
Stealth Browser Agent

Stealth Browser Agent

Stealth browser agent for bot-defended websites. Send a URL and a natural language task — the agent navigates, clicks, fills forms, and extracts structured results with anti-detection fingerprinting and residential proxy. Designed for AI agents that need to interact with defended sites.

Pricing

from $17.00 / 1,000 step completeds

Rating

0.0

(0)

Developer

Scott Helvick

Scott Helvick

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 hours ago

Last modified

Share

AI agents need to interact with web pages that block automation. This Actor provides hosted stealth browser infrastructure — send a URL and a natural language task, and an LLM-driven browser clicks, types, navigates, and extracts structured JSON from bot-defended sites.

What this does

  • Stealth browsing — anti-detection fingerprinting passes real-world bot detection systems. Pages see a genuine browser, not automation tooling.
  • Residential proxy — optional geo-targeted routing through residential IPs. Datacenter IPs are a fingerprint signal; residential routing eliminates that vector.
  • LLM-driven interaction — an AI copilot reads screenshots, plans actions, and drives browser tools (click, type, navigate, scroll, select, wait). No automation scripts to write.
  • Structured extraction — the agent returns results as JSON. Provide an output schema and the result conforms to it; omit it and the agent returns best-effort JSON.
  • Action log + screenshot — every run produces a step-by-step action log and a final screenshot for debugging and audit.

Use cases:

  • Extract product data from bot-defended e-commerce pages
  • Fill and submit multi-step forms on behalf of an agent workflow
  • Navigate paginated catalogs — click through pages, extract across them
  • Scrape structured data from JavaScript-heavy SPAs that block HTTP fetchers
  • Verify page state after interaction (confirmation pages, submission results)

Why stealth matters

Most browser automation works fine on cooperative sites. But a growing share of the web uses bot detection — fingerprinting browser characteristics, checking IP reputation, analyzing interaction patterns. Standard headless browsers get flagged on first request.

The subtler problem: even when requests succeed, bot-detection systems serve degraded content to suspected bots. Different prices, missing inventory, placeholder text. Your agent extracts data that looks correct but isn't.

This Actor runs a browser with realistic fingerprinting that passes detection systems in production. Pages see a real browser session. When combined with residential proxy routing, the browser's network fingerprint matches its claimed identity — no datacenter IP giving away the automation.

How it compares to alternatives

ApproachStealthInteractionStructured outputCost model
Headless browser (self-hosted)None — detected immediatelyFull (you write scripts)Manual extractionYour infrastructure
Stealth fetch serviceAnti-detectionNone — page content onlyRaw HTML/markdownPer-page
Browser-as-a-service (no stealth)NoneFull (LLM-driven)LLM-extractedPer-step or flat
Stealth Browser AgentAnti-detection + residential proxyFull (LLM-driven)Structured JSONPer-step

Stealth fetch services return rendered content from defended pages but can't interact — if you need to click a button before the data appears, you're stuck. Browser-as-a-service tools provide LLM-driven interaction but use standard browsers that get fingerprinted on defended sites. This Actor combines both: stealth browsing with LLM-driven interaction and structured extraction.

Input

FieldTypeRequiredDefaultDescription
urlstringYes--Starting URL. The agent navigates here first, then executes the task. Must be a public, unauthenticated page.
taskstringYes--What to do on the page, in plain language. Can include interaction steps (click, fill, navigate) and extraction goals. The agent plans and executes actions, then returns structured results.
outputSchemaobjectNo--JSON Schema for the desired result shape. When provided, the agent structures its extraction to match. When omitted, returns best-effort JSON.
maxStepsintegerNo30Maximum browser actions. Safety cap — the primary cost cap is maxTotalChargeUsd. Each tool call counts as one step.
timeoutSecondsintegerNo120Hard deadline in seconds. If the agent hasn't finished, it returns whatever it has with status timeout.
proxyGeostringNo--ISO 3166-1 alpha-2 country code (e.g. US, DE). Routes through a residential proxy in that country. Leave empty for default routing.

Output

Each run produces one dataset record:

{
"url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
"task": "Click the first book, extract its title and price.",
"status": "completed",
"result": {
"title": "A Light in the Attic",
"price": "£51.77"
},
"steps": [
{"step": 1, "tool": "click_element", "args": {"selector": "article h3 a"}, "success": true},
{"step": 2, "tool": "get_text", "args": {"selector": ".product_main"}, "success": true}
],
"screenshotUrl": "https://api.apify.com/v2/key-value-stores/abc123/records/screenshot"
}
FieldTypeDescription
urlstringFinal URL after all navigation and redirects
taskstringEcho of the input task
statusstringcompleted, failed, timeout, or max_steps_reached
resultobjectStructured extraction — shaped by outputSchema if provided
stepsarrayOrdered action log: step number, tool name, arguments, success flag
screenshotUrlstringPublic URL of the final page screenshot
errorstringError message when status is not completed (null otherwise)

Example

{
"url": "https://books.toscrape.com",
"task": "Click the first book, then extract its title, price, and availability. Return JSON with fields title, price, and in_stock.",
"maxSteps": 10
}

curl:

curl -X POST "https://api.apify.com/v2/acts/shelvick~stealth-browser-agent/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"url":"https://books.toscrape.com","task":"Click the first book, extract its title and price.","maxSteps":10}'

Python SDK:

from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("shelvick/stealth-browser-agent").call(
run_input={
"url": "https://books.toscrape.com",
"task": "Click the first book, extract its title and price.",
"maxSteps": 10,
}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["result"])

Calling from an AI agent

Apify MCP server

The Actor is available as a callable tool via mcp.apify.com. The input schema is self-documenting — an LLM can construct correct calls from the tool description and field names alone. Agentic payment is supported via x402 USDC on Base or Skyfire managed tokens.

Apify SDK (Python)

from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("shelvick/stealth-browser-agent").call(
run_input={
"url": "https://example.com",
"task": "Extract the main heading and all links on the page.",
}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["status"], item["result"])

REST API

Synchronous (blocks until complete, returns dataset items directly):

POST https://api.apify.com/v2/acts/shelvick~stealth-browser-agent/run-sync-get-dataset-items?token=YOUR_TOKEN

Asynchronous (starts run, poll for completion):

POST https://api.apify.com/v2/acts/shelvick~stealth-browser-agent/runs?token=YOUR_TOKEN
GET https://api.apify.com/v2/actor-runs/{runId}/dataset/items?token=YOUR_TOKEN

The synchronous endpoint has a 5-minute cap. For complex tasks that may exceed this, use the async endpoint.

Pricing

Charged per step — each browser action (click, type, navigate, extract) counts as one billable step. Two tiers:

  • Standard step — no proxy routing. Covers the planning call and browser action execution.
  • Proxy step — residential proxy routing included. Activates when proxyGeo is set. Higher per-step cost covers residential bandwidth.

Failed steps (browser errors) and failed planning calls are never charged. Only successful tool executions are billed. The extraction step (when the agent returns its final result) counts as one step.

The primary cost cap is the run's maxTotalChargeUsd setting. The maxSteps input is a secondary safety net.

See the Pricing tab on this Store page for the current per-event rates and any active subscriber discounts.

Behavior

Failure modes:

  • failed — the agent could not accomplish the task (page requires authentication, target element not found, page is blank or broken)
  • timeout — the hard deadline (timeoutSeconds) was reached before completion. Partial results may be present in result.
  • max_steps_reached — the step limit was hit before completion. Increase maxSteps or simplify the task.

The error field contains a human-readable explanation on non-completed runs.

Run-level failures (rare): invalid input (missing url or task, malformed outputSchema) causes immediate failure before any steps execute. No steps are charged.

Performance expectations:

  • Simple extraction (1-2 steps): 15-30 seconds
  • Multi-step interaction (3-5 steps): 30-60 seconds
  • Complex multi-page flows (8-15 steps): 60-120 seconds
  • Each step includes LLM planning (~2-5s) plus browser action execution (~1-3s)
  • Residential proxy adds ~1-2 seconds latency per navigation

FAQ

What if the page requires a login? The agent refuses to enter credentials or authenticate. If the page redirects to a login wall, the agent returns status: failed with an error message. This is a deliberate safety boundary.

Am I charged if the task fails? Steps that completed successfully before the failure are charged. The failing step itself is not. If the run fails before any steps execute (invalid input, unreachable URL), nothing is charged beyond the platform start event.

How do I control costs on complex tasks? Set maxTotalChargeUsd in the run configuration. This is the hard ceiling — the run stops when the charge limit is reached, regardless of maxSteps. For tighter control, lower maxSteps and simplify the task instruction.

Can I use this for batch scraping? This Actor handles one URL per run. For batch work, start multiple runs in parallel via the API or SDK. Each run is independent with its own browser session.

What this doesn't do

  • No authentication. The agent will not log in, enter passwords, or handle session tokens. Public, unauthenticated pages only.
  • No CAPTCHA solving. Sites requiring interactive CAPTCHAs (puzzle, image selection) will fail. Invisible scoring CAPTCHAs (reCAPTCHA v3) are handled by the stealth fingerprint.
  • No file downloads. The agent interacts with page content but does not download PDFs, images, or other files.
  • No persistent sessions. Each run starts a fresh browser — no cookies, local storage, or session state carries over between runs.

For authenticated browsing or session management, use a browser-automation Actor with credential support. For bulk page fetching without interaction (no clicking or form filling), a batch fetcher is more cost-effective. For CAPTCHA-heavy sites requiring human solving, use a CAPTCHA-solving service upstream and pass the unlocked URL to this Actor.


Design notes: www.scotthelvick.com/tools/stealth-browser-agent