AgentAPIGate
Back to Catalog
GET /v1/web/browser/renderPack: search·MCP Tool: web_browser_render

Headless Browser JavaScript Page Renderer

Scrape and render JavaScript-heavy webpages in headless Chromium, fetching dynamic content as clean Markdown or HTML.

API Key Price:$0.0040 / call
x402 Base USDC:$0.0040 / call
Partner Credit:eligible
1. Parameters & Controls
Public https:// or http:// webpage URL to render with JavaScript execution
Navigation wait condition: domcontentloaded, load, or networkidle
Extra milliseconds (0-5000) to wait for async JS hydration after load (default: 1200)
Optional CSS selector to wait for before extracting rendered content
Include truncated rendered HTML (<=120KB) alongside Markdown (default: false)
Extract up to 25 outbound links from rendered DOM (default: false)
Hard render timeout in milliseconds (3000-15000, default: 12000)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/web/browser/render" \
  --data-urlencode "url=https://example.com" \
  --data-urlencode "wait_ms=500" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-62% tokens
# Headless Browser JavaScript Page Renderer (`web.browser.render`)
**Title**: Example Domain
**URL**: https://example.com/

This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: web.browser.render · Method: GET
ParameterTypeReqSample / DefaultDescription
urlstringrequiredhttps://example.comPublic https:// or http:// webpage URL to render with JavaScript execution
wait_untilstringoptionaldomcontentloadedNavigation wait condition: domcontentloaded, load, or networkidle
wait_msnumberoptional500Extra milliseconds (0-5000) to wait for async JS hydration after load (default: 1200)
wait_for_selectorstringoptional—Optional CSS selector to wait for before extracting rendered content
include_htmlbooleanoptionalfalseInclude truncated rendered HTML (<=120KB) alongside Markdown (default: false)
include_linksbooleanoptionalfalseExtract up to 25 outbound links from rendered DOM (default: false)
timeout_msnumberoptional12000Hard render timeout in milliseconds (3000-15000, default: 12000)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0040 / call$0/mo · Balance never expires
Remote MCP Toolweb_browser_renderOAuth 2.1 Hub & /mcp/search
x402 Base USDC$0.0040 / callZero-signup USDC enabled
P50 Latency739 ms$0 billed on empty or 4xx/5xx
Token Economy188t → 71t (-62%)Partner credit: eligible

More Search & Web Real-Time APIs

Frequently Asked Questions

How do I call Headless Browser JavaScript Page Renderer (web.browser.render) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/web/browser/render with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool web_browser_render on https://mcp.agentapigate.ai/mcp.

What does web.browser.render cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.004 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on web.browser.render?

Passing ?format=md transforms the response into normalized Markdown (~71 tokens vs ~188 raw tokens, saving 62% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only search endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["search"], optional allowed_endpoints: ["web.browser.render"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.