Take screenshot
import requests

url = 'https://api.simplex.sh/screenshot'
headers = {
    'X-API-Key': 'your_api_key_here'
}
data = {
    'session_id': 'your_session_id'  # Optional
}

response = requests.post(url, headers=headers, data=data)
result = response.json()
if result['succeeded']:
    print(f"Screenshot URL: {result['screenshot_url']}")
{
  "succeeded": true,
  "screenshot_url": "<string>"
}
Takes a screenshot of the current page.

Authorizations

X-API-Key
string
header
required

Simplex API Key

Body

multipart/form-data

Response

Screenshot response

The response is of type object.