Skip to content

Cloud phone screen capture(response base64)

Request

Get the real-time screen capture of the specified cloud phone instance. Currently, only Android 12 and Android 15 are supported.

Bodyapplication/jsonrequired
idinteger, (int64)required

cloud phone ID

Example:1558968155668507
POST
/api/cloudphone/screenCapBase64
curl -i -X POST \
  http://127.0.0.1:40000/api/cloudphone/screenCapBase64 \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 1558968155668507
  }'

Responses

Bodyapplication/json
codeinteger

Response code: 0 = success, >0 = error

dataobject
msgstring

Message; populated if code > 0

Response
{ "code": 0, "data": { "captureBase64": "data:image/png;base64,/9j/4AAQSkZJRgABAQAA.....", "errorMessage": "success", "success": true }, "msg": "string" }