# Status Page, SSL Expiry & Endpoint Change Monitor (`simon_kundrik/status-ssl-change-monitor`) Actor

Monitor SaaS status pages (Statuspage.io, Instatus, BetterStack, RSS/Atom), HTTPS uptime, and TLS/SSL certificate expiry with stateful delta alerts. Zero proxies, zero API keys, instant n8n/Make/Slack/MCP alerts.

- **URL**: https://apify.com/simon_kundrik/status-ssl-change-monitor.md
- **Developed by:** [Kundrik Apps](https://apify.com/simon_kundrik) (community)
- **Categories:** Developer tools, Automation, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 alert or baseline events emitted

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Status Page, SSL Expiry & Endpoint Change Monitor

Monitor **SaaS vendor status pages**, **HTTPS endpoint uptime**, and **TLS/SSL certificate expiration** on a schedule with **stateful delta alerts**: zero proxies, zero API keys, and ultra-low 256 MB memory footprint.

Built for **DevOps / SRE alerting, n8n, Make, Zapier, Slack/Teams webhooks, and AI / MCP agents** that need reliable outage and certificate-expiry detection without paying per-seat SaaS monitoring subscriptions.

***

### What It Monitors

| Target Type | Auto-Detected Providers / Checks | Events Emitted |
|---|---|---|
| **Vendor Status Pages** | **Atlassian Statuspage.io** (GitHub, Cloudflare, OpenAI, Anthropic, Stripe, Vercel, Slack, Discord, Atlassian, Shopify, Twilio, Datadog…), **Instatus**, **BetterStack**, and **RSS/Atom** status feeds (AWS, GCP, etc.) | `incident_opened`, `incident_updated`, `incident_resolved`, `component_degraded`, `component_recovered`, `maintenance_scheduled`, `status_changed` |
| **HTTPS / HTTP Endpoints** | Live HTTP status code, response latency (`ms`), redirect final URL, and live **TLS/SSL handshake** certificate inspection (`certDaysRemaining`, `certNotAfter`, `certIssuer`, SHA-256 fingerprint, TLS version) | `endpoint_down`, `endpoint_recovered`, `status_code_changed`, `ssl_expiring_soon`, `ssl_expired`, `ssl_cert_changed`, `latency_spike` |

***

### Key Features

- **Stateful Delta Tracking:** Persists target snapshots in your Apify Key-Value Store (`status-ssl-monitor-state`) so scheduled runs emit **zero duplicate alerts** when everything stays green.
- **Zero Proxies & Zero API Keys:** Uses official public status JSON/Atom endpoints and standard TLS handshakes. Runs in ~2–5 seconds at 256 MB RAM.
- **Actionable Alert Payloads:** Every dataset row includes normalized `eventType`, `severity` (`critical` / `warning` / `info` / `resolved`), `summary`, `httpStatus`, `latencyMs`, `certDaysRemaining`, and direct incident `url`.
- **Flexible First-Run Modes:** Choose `emit_baseline` (immediate live snapshot for testing or MCP agents), `emit_issues_only` (only active outages / expiring certs), or `baseline_only` (silent seed).

***

### Example Input

```json
{
  "statusPages": [
    "https://www.githubstatus.com",
    "https://www.cloudflarestatus.com",
    "https://status.openai.com"
  ],
  "endpoints": [
    "https://github.com",
    "https://api.github.com"
  ],
  "sslWarnDays": 30,
  "latencyThresholdMs": 2000,
  "deltaMode": true,
  "firstRunMode": "emit_baseline"
}
```

***

### Example Output Record

```json
{
  "eventType": "ssl_expiring_soon",
  "severity": "warning",
  "targetType": "endpoint",
  "provider": "https_endpoint",
  "target": "https://api.example.com",
  "name": "api.example.com",
  "status": "up",
  "previousStatus": null,
  "summary": "TLS certificate for api.example.com expires in 14 day(s) on 2027-01-15T23:59:59Z (issuer: Let's Encrypt).",
  "httpStatus": 200,
  "latencyMs": 142.6,
  "certDaysRemaining": 14,
  "certNotAfter": "2027-01-15T23:59:59Z",
  "certIssuer": "R11 / Let's Encrypt",
  "certFingerprintSha256": "a1b2c3...",
  "tlsVersion": "TLSv1.3",
  "url": "https://api.example.com",
  "detectedAt": "2026-12-03T23:00:00Z"
}
```

***

### Pricing (Pay-Per-Event)

- **`target-checked`:** `$0.0005` per status page or endpoint checked
- **`alert-emitted`:** `$0.002` per baseline or change alert emitted

Monitoring 20 vendor status pages and HTTPS endpoints every hour costs less than **$0.25/day** when systems are healthy, and alerts you within minutes of an outage or expiring certificate.

*(Free Apify plan runs are capped at 5 targets and 25 output events per run; any paid Apify plan removes these caps.)*

#### Realistic Monthly Cost Examples

| Schedule & Scope | Monthly Target Checks | Est. Incident/SSL Alerts / Mo | Total Monthly Cost |
|---|---|---|---|
| 10 SaaS vendors + 10 HTTPS endpoints checked hourly | 14,400 | 25 | **~$7.25 / month** |
| 30 production domains SSL expiry check daily | 900 | 10 | **~$0.47 / month** |
| 5 critical payment/AI APIs checked every 15 mins | 14,400 | 15 | **~$7.23 / month** |

### Automation & AI Agent Recipes

#### 1. Apify MCP Server (DevOps / SRE Incident Triage)

Connect `https://mcp.apify.com` and ask your agent:

> *"Run `simon_kundrik/status-ssl-change-monitor` on `https://www.githubstatus.com`, `https://www.cloudflarestatus.com`, and `https://status.openai.com` with `firstRunMode: "emit_baseline"` and tell me if any vendor is degraded."*

#### 2. Zero-Noise Slack / PagerDuty Alerts (n8n / Make)

1. Schedule the Actor every 15 or 60 minutes with `deltaMode: true` and `sslWarnDays: 30`.
2. Filter downstream alerts on `severity == "critical"` or `severity == "warning"` to page on-call or post directly into `#ops-alerts`.

#### 3. Direct REST API (cURL)

```bash
curl -X POST "https://api.apify.com/v2/acts/simon_kundrik~status-ssl-change-monitor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"statusPages":["https://www.githubstatus.com"],"endpoints":["https://github.com"],"firstRunMode":"emit_baseline"}'
```

### Frequently Asked Questions

**Will scheduled runs spam my Slack channel when everything is healthy?**
No. In `deltaMode: true`, runs emit zero alerts when statuses remain green and certificates remain above `sslWarnDays`.

**Which status page providers are auto-detected?**
Atlassian Statuspage.io (`/api/v2/summary.json`), Instatus, BetterStack, and standard RSS/Atom vendor status feeds (such as AWS and GCP).

**Does SSL expiry inspection work without third-party APIs?**
Yes. It performs a live TLS handshake directly against each HTTPS hostname to inspect `certNotAfter`, `certDaysRemaining`, `certIssuer`, SHA-256 fingerprint, and TLS version.

**Built & Maintained by [Kundrik Apps](https://kundrikapps.co.uk)** (UK). Support: `support@kundrikapps.co.uk`.

# Actor input Schema

## `statusPages` (type: `array`):

Public status page base URLs or RSS/Atom status feeds (e.g. Statuspage.io like https://www.githubstatus.com, Instatus, BetterStack, AWS/GCP RSS/Atom feeds).

## `endpoints` (type: `array`):

Websites, APIs, or healthcheck URLs to probe for HTTP availability, status code changes, latency spikes, and TLS/SSL certificate expiration.

## `watchEvents` (type: `array`):

Which stateful transitions or alerts to emit. Leave default to track all incidents, outages, recoveries, and SSL warnings.

## `sslWarnDays` (type: `integer`):

Emit an ssl_expiring_soon alert when an HTTPS endpoint certificate expires within this many days.

## `latencyThresholdMs` (type: `integer`):

Optional HTTP response latency alert threshold in milliseconds. Set to 0 to disable latency spike alerts.

## `deltaMode` (type: `boolean`):

When enabled, saves target snapshots in your Apify Key-Value Store and emits only new incidents, status flips, cert changes, or SSL warnings on subsequent runs.

## `firstRunMode` (type: `string`):

How to handle a newly monitored target on its very first run: emit_baseline outputs one live status/SSL snapshot per target (recommended), emit_issues_only alerts only on active problems, baseline_only silently stores state.

## `stateStoreName` (type: `string`):

Named Apify Key-Value Store used to persist status and certificate snapshots across scheduled runs.

## `stateNamespace` (type: `string`):

Logical partition key inside the state store so multiple schedules can maintain independent baselines.

## `maxTotalItems` (type: `integer`):

Hard ceiling on dataset events emitted in a single run (Free Apify plans are capped at 25 items and 5 targets).

## `requestTimeoutSecs` (type: `integer`):

Timeout for each HTTP/HTTPS request and TLS handshake.

## `dryRun` (type: `boolean`):

Run all checks and emit dataset rows without overwriting saved delta state.

## Actor input object example

```json
{
  "statusPages": [
    "https://www.githubstatus.com",
    "https://www.cloudflarestatus.com",
    "https://status.openai.com"
  ],
  "endpoints": [
    "https://github.com",
    "https://api.github.com"
  ],
  "watchEvents": [
    "incident_opened",
    "incident_updated",
    "incident_resolved",
    "component_degraded",
    "component_recovered",
    "maintenance_scheduled",
    "status_changed",
    "endpoint_down",
    "endpoint_recovered",
    "status_code_changed",
    "ssl_expiring_soon",
    "ssl_expired",
    "ssl_cert_changed",
    "latency_spike"
  ],
  "sslWarnDays": 30,
  "latencyThresholdMs": 0,
  "deltaMode": true,
  "firstRunMode": "emit_baseline",
  "stateStoreName": "status-ssl-monitor-state",
  "stateNamespace": "default",
  "maxTotalItems": 500,
  "requestTimeoutSecs": 15,
  "dryRun": false
}
```

# Actor output Schema

## `alertsDataset` (type: `string`):

Structured event records including eventType, severity, targetType, target, summary, httpStatus, latencyMs, certDaysRemaining, and url.

## `runSummary` (type: `string`):

Execution metrics including status pages checked, endpoints checked, alerts emitted, event breakdown, and errors.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "statusPages": [
        "https://www.githubstatus.com",
        "https://www.cloudflarestatus.com",
        "https://status.openai.com"
    ],
    "endpoints": [
        "https://github.com",
        "https://api.github.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("simon_kundrik/status-ssl-change-monitor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "statusPages": [
        "https://www.githubstatus.com",
        "https://www.cloudflarestatus.com",
        "https://status.openai.com",
    ],
    "endpoints": [
        "https://github.com",
        "https://api.github.com",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("simon_kundrik/status-ssl-change-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "statusPages": [
    "https://www.githubstatus.com",
    "https://www.cloudflarestatus.com",
    "https://status.openai.com"
  ],
  "endpoints": [
    "https://github.com",
    "https://api.github.com"
  ]
}' |
apify call simon_kundrik/status-ssl-change-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,simon_kundrik/status-ssl-change-monitor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/c0J6PJcg2OMu5nhZT/builds/opnUFuuDFRK8ZqdUO/openapi.json
