Server-Sent Events stream scoped to a single job. Emits progress, page, error, and done events as the job makes progress. Stream closes automatically when the job reaches a terminal state.
| Event | Payload |
|---|---|
progress | { status, completed, total }: periodic progress snapshots |
page | A completed page result (same shape as a sync scrape) |
error | { url, error }: a single page failed |
done | { status, completed, total }: final event, stream closes |
client.stream(jobId) returning an async iterator. See SSE streaming.
For a workspace-wide stream of every job’s events, use GET /v1/events instead.SSE stream that closes when the job terminates
Server-Sent Events stream. Each frame is a line-delimited event with an event: line, a data: line (JSON payload), and a trailing blank line. Keep-alive comments (: ping) are sent every 30 seconds. See Events for the full event catalog.
"event: job:progress\ndata: {\"jobId\":\"j_abc\",\"status\":\"processing\",\"completed\":45,\"total\":100}\n\nevent: job:completed\ndata: {\"jobId\":\"j_abc\",\"status\":\"completed\",\"completed\":100,\"total\":100,\"creditsUsed\":100}\n\n"