Cloud Browser API

Stream session updates

SSE events: snapshot, session, pages, action, event and end. The data field is JSON. A ping comment is sent every 15 seconds; end closes the stream. Historical replay is not available.

GET /browser/v1/sessions/{sessionId}/stream● Supported

Request parameters

  • sessionIdstring必填

    浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。

Returns

200

Errors contain statusCode, error and message; the native API adds code. The request ID is in X-Request-Id. Errors

Connection guide

Response

HTTP 200

持续推送会话状态。

text/event-stream — chunk / event object

NameTypeDescription
$stringevent: <事件名>\ndata: <JSON>\n\n