Open a browser, navigate to the target URL, and stream back events in real-time via Server-Sent Events. Captures network responses (XHR/Fetch), WebSocket frames the page receives, DOM mutations, and console output.
The session stays open until the timeout is reached or the client disconnects.
API key passed in the X-API-Key header.
Target URL (no encoding needed). Recommended for URLs with query parameters.
Comma-separated event types to stream: network, ws, dom, console.
CSS selector to watch for DOM mutations (requires dom in X-Capture).
Regex filter for network URLs. Only matching responses are streamed.
Regex filter for WebSocket URLs. Only matching connections are streamed.
JavaScript to execute after page load (e.g. click a button, trigger navigation).
When the page is ready before streaming starts: load, networkidle, or selector.
CSS selector to wait for (with X-Wait-Strategy: selector).
Route through a proxy (http:// or socks5://).
Comma-separated resource types to block: image, font, stylesheet, media.
Cookies to inject (name=value; name2=value2).
Cookies as JSON array for full control.
Target countries as comma-separated ISO codes (e.g. US,DE,AT). Aliases: X-Geo-CC, X-CC, X-Country, X-Geo-Strict.
Route through specific agent(s) by slug (e.g. de1) or comma-separated list for random pick (e.g. de1,at5,us3).
Override request timeout in seconds (default: 30).
SSE event stream. Events: connected, network, ws_open, ws_message, ws_close, dom, console, error, done.
The response is of type string.