Take a screenshot of a region
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/desktop/screenshot/region"
payload = {
"x": 123,
"y": 123,
"width": 123,
"height": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/desktop/screenshot/region \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"x": 123,
"y": 123,
"width": 123,
"height": 123
}
'"<string>"Desktop
Take a screenshot of a region
POST
/
v1
/
machines
/
{id}
/
desktop
/
screenshot
/
region
Take a screenshot of a region
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/desktop/screenshot/region"
payload = {
"x": 123,
"y": 123,
"width": 123,
"height": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/desktop/screenshot/region \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"x": 123,
"y": 123,
"width": 123,
"height": 123
}
'"<string>"Authorizations
API key passed as Bearer token
Path Parameters
Machine ID (e.g. mch_a1b2c3d4)
Body
application/json
Response
200 - image/png
PNG image data
The response is of type file.