Headless Browser JavaScript Page Renderer
Scrape and render JavaScript-heavy webpages in headless Chromium, fetching dynamic content as clean Markdown or HTML.
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"
# 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| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| url | string | required | https://example.com | Public https:// or http:// webpage URL to render with JavaScript execution |
| wait_until | string | optional | domcontentloaded | Navigation wait condition: domcontentloaded, load, or networkidle |
| wait_ms | number | optional | 500 | Extra milliseconds (0-5000) to wait for async JS hydration after load (default: 1200) |
| wait_for_selector | string | optional | — | Optional CSS selector to wait for before extracting rendered content |
| include_html | boolean | optional | false | Include truncated rendered HTML (<=120KB) alongside Markdown (default: false) |
| include_links | boolean | optional | false | Extract up to 25 outbound links from rendered DOM (default: false) |
| timeout_ms | number | optional | 12000 | Hard render timeout in milliseconds (3000-15000, default: 12000) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0040 / call | $0/mo · Balance never expires |
| Remote MCP Tool | web_browser_render | OAuth 2.1 Hub & /mcp/search |
| x402 Base USDC | $0.0040 / call | Zero-signup USDC enabled |
| P50 Latency | 739 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 188t → 71t (-62%) | Partner credit: eligible |
More Search & Web Real-Time APIs
Real-time Google organic search results with ranked URLs, titles, snippets, and knowledge metadata.
Search breaking news articles and publisher headlines across Google News with unwrapped publisher article URLs, publisher_name, publisher_domain, and publisher_url.
Search high-resolution web images with source page URLs, dimensions, and alt titles.
Sub-100ms Google Suggest autocomplete queries for intent discovery and agent query expansion.
Fetch surging Google Search topics and approximate search traffic volume by country.
Compare search interest over time across up to 5 keywords using Google Trends data.
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.