Check element exists
import requests

url = 'https://api.simplex.sh/exists'
headers = {
    'X-API-Key': 'your_api_key_here'
}
data = {
    'session_id': 'your_session_id',
    'element_description': 'the login button',
    'max_steps': 7  # Optional, default is 7
}

response = requests.post(url, headers=headers, data=data)
result = response.json()
if result['succeeded']:
    print(f"Element exists: {result['exists']}")
{
  "succeeded": true,
  "exists": true,
  "reasoning": "<string>",
  "error": "<string>"
}
Checks if an element exists on the page based on a natural language description.

Authorizations

X-API-Key
string
header
required

Simplex API Key

Body

multipart/form-data

Response

Exists response

The response is of type object.