Screenshot

GET /application/screenshot

Takes a screenshot

Query parameters

  • resize boolean

    Whether to resize the screenshot.

  • quality integer(int32)

    The quality of the screenshot, ranging from 1 (worst) to 100 (best). -1 or omitted for png

  • size string

    The size of the screenshot ([width]x[height]). Requires resize to be true.

  • scale number(double)

    The scale of the screenshot. Requires resize to be true.

  • stream boolean

    Stream the image to the client. This will stream the image in image/jpg or image/png format.

Responses

GET /application/screenshot
curl \
 --request GET 'http://localhost:1888/v2/api/application/screenshot'
Response examples (200)
{
  "Response": "<base64 encoded image>",
  "Error": "string",
  "StatusCode": 200,
  "Success": true,
  "Type": "API"
}
Response examples (500)
{
  "Response": "string",
  "Error": "Unknown error",
  "StatusCode": 500,
  "Success": false,
  "Type": "API"
}