The easiest way to get the current status of your page is through
your-status-page-url/summary.json
An example is https://instat.us/summary.json
Example response:
{"page": {"name": "Instatus","url": "https://instat.us","status": "HASISSUES"},"activeIncidents": [{"name": "We're facing an issue with our API","started": "Sat Jun 11 2022 18:55:50 GMT+0000 (Coordinated Universal Time)","status": "INVESTIGATING","impact": "MAJOROUTAGE","url": "https://testing-widget.instatus.com/incident/cl4a8n3070721qtmzvts760c4"}],"activeMaintenances": [{"name": "Database maintenance","start": "Sat Jun 11 2022 18:55:54 GMT+0000 (Coordinated Universal Time)","status": "NOTSTARTEDYET","duration": "60","url": "https://testing-widget.instatus.com/maintenance/cl4a8nlv50918qtmzdlw60ivu"}]}
Possible page statuses:
UP
HASISSUES
UNDERMAINTENANCE
Possible incident statuses:
INVESTIGATING
IDENTIFIED
MONITORING
RESOLVED
Possible maintenance statuses:
NOTSTARTEDYET
INPROGRESS
COMPLETED