Browser (CDP) connect URL
spicrawl_browser_connect_urlComing soon: remote browsers are not available yet, so minting fails; do not rely on this tool. For scripted page interaction today use actions on spicrawl_scrape. Mints a single-use connect URL for Spicrawl's remote browser (GET /v1/browser, Chrome DevTools Protocol) so YOUR code can drive it with puppeteer.connect({ browserWSEndpoint }) or playwright.chromium.connectOverCDP(url). It calls POST /v1/browser/token and returns a ws:// or wss:// URL carrying a short-lived token, never the API key: the URL works ONCE, within 60 seconds, and only with the options given here (editing them in the URL is refused), so call this right before connecting and again for every new session. Prefer sending the key as an Authorization header when the client supports headers on the upgrade (playwright connectOverCDP(url, { headers }), puppeteer.connect({ browserWSEndpoint, headers })): then connect to the plain /v1/browser URL with 'Authorization: Bearer ' and no token is needed. The endpoint exists only when the deployment was installed with --with-cdp, and the key must carry the browser scope; otherwise minting fails (404 or 403). Parameter errors are reported when minting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proxy | No | Your own proxy, as http://user:pass@host:port. Replaces our pool, so proxy_country, proxy_region and sticky_key cannot be combined with it. Kept out of the returned URL. | |
| engine | No | Browser engine. Default: the deployment's default (chromium). 'obscura' cannot run headful. | |
| headless | No | false = headful browser with a display (desktop-sized screen). Omit for the deployment default. | |
| sticky_key | No | Keep one exit IP for the session under this key (2-64 letters, digits, hyphens). Omit to rotate (the default). | |
| session_ttl | No | Session lifetime in seconds, 60-900. Default 180. | |
| proxy_region | No | Broader exit region/pool name; 'global' means no constraint. Mutually exclusive with proxy_country. | |
| proxy_country | No | Exit country, ISO-3166 alpha-2 lowercase (e.g. 'de'). Mutually exclusive with proxy_region. |