v1

latestOpenAPI 3.0.02026-07-224452146.0 KB
Scraping

Interact with the browser session associated with a scrape job

post/scrape/{jobId}/interact

Path parameters

jobIdstring uuid required

The scrape job ID

Request body

codestring required

Code to execute in the scrape-bound browser sandbox

language'python' | 'node' | 'bash'

Language of the code to execute. Use node for JavaScript or bash for agent-browser CLI commands.

timeoutinteger

Execution timeout in seconds

originstring

Optional origin label used for execution telemetry

Response

Code executed successfully

successboolean
cdpUrlstring nullable

Raw Chrome DevTools Protocol (CDP) WebSocket URL for the browser session. Use it to connect directly with Playwright, Puppeteer, or any CDP client.

liveViewUrlstring nullable

Read-only live view URL for the browser session

interactiveLiveViewUrlstring nullable

Interactive live view URL (viewers can control the browser)

outputstring nullable

AI agent's final response (only present when using prompt)

stdoutstring nullable

Standard output from the code execution

resultstring nullable

Standard output (alias for stdout)

stderrstring nullable

Standard error output from the code execution

exitCodeinteger nullable

Exit code of the executed process

killedboolean

Whether the process was killed due to timeout

errorstring nullable

Error message if the code raised an exception