Status
Check health programmatically
// for your integration
GET /api/status returns the latest scheduled snapshot for all endpoints. Add endpoint to check one. No API key or credits required.
An HTTP 200 means the report loaded. Check status or endpoints[0].healthy for endpoint health; healthy is null when there is not enough data. Unknown endpoints return 404; unavailable snapshots or snapshots at least 30 minutes old return 503.
curl --get 'https://api.litescrape.com/api/status' \
--data-urlencode 'endpoint=/api/google/search'import requests
response = requests.get(
"https://api.litescrape.com/api/status",
params={"endpoint": "/api/google/search"},
timeout=10,
)
response.raise_for_status()
endpoint = response.json()["endpoints"][0]
print(endpoint["status"]) # e.g. "healthy" or "not_enough_data"
# healthy is True, False, or None when there is not enough data.
if endpoint["healthy"] is True:
print("Ready to send requests")