Skip to content

Screenshot APIs

Fresh

Take Screenshot

Request a screenshot of a running cloud phone. The result is delivered via webhook callback.

URL: https://openapi.geelark.com/open/v1/phone/screenshotMethod: POST

Request Parameters

ParameterRequiredTypeDescription
idYesstringCloud phone ID

Response

Returns a taskId that will be sent to your webhook with the screenshot download link.

json
{
  "traceId": "123456ABCDEF",
  "code": 0,
  "msg": "success",
  "data": {
    "taskId": "528715748189668352"
  }
}

Get Screenshot Result

Query the result of a screenshot task.

URL: https://openapi.geelark.com/open/v1/phone/screenshot/resultMethod: POST

Request Parameters

ParameterRequiredTypeDescription
taskIdYesstringScreenshot task ID

Response

json
{
  "traceId": "123456ABCDEF",
  "code": 0,
  "msg": "success",
  "data": {
    "status": 1,
    "downloadLink": "https://example.com/screenshot.jpg"
  }
}
FieldDescription
status0=pending, 1=success, 2=failed
downloadLinkURL to download the screenshot image

Error Codes

CodeDescription
42001Cloud phone does not exist
42002Cloud phone is not in running state

GEELark API Documentation - Built with VitePress