# Website Uptime Monitor: Status, Response Time, SSL & Alerts (`niches/website-uptime-monitor`) Actor

Check websites and API endpoints on a schedule: up or down, status code, response time, expected text, SSL expiry, plus uptime % over 24 hours and 7 days, incidents and downtime from your past checks. Sends a webhook (Slack, Discord or your own) when a site goes down or comes back.

- **URL**: https://apify.com/niches/website-uptime-monitor.md
- **Developed by:** [Niches](https://apify.com/niches) (community)
- **Categories:** Developer tools, Automation, Integrations
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 uptime checks

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-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

## Website Uptime Monitor: status, response time, SSL expiry, uptime % and webhook alerts

Check **websites and API endpoints** on an Apify **schedule**: **up or down**, **HTTP status code**, **response time**, **expected text** on the page, and the **SSL certificate** (days left, issuer, whether it verifies). A failed check is **tried again before it counts as down**, so one dropped connection raises no alarm.

Every result is kept in a store in **your own Apify account**, so each run also reports **uptime % over 24 hours and 7 days**, the **open incident**, **when it started** and **how long the site was down**. A **webhook** fires when a site **goes down**, **comes back** or its **certificate is close to expiry**. **$1 per 1,000 checks**, $0.80 on Gold and above.

### What you get

| Field | What it holds |
|---|---|
| Result | `status` (up, slow, down), `reason`, `statusCode`, `responseMs`, `finalUrl`, `redirects`, `contentType`, `server`, `retried` |
| Expected text | `keyword`, `keywordFound` (a 200 error page still counts as down) |
| SSL | `sslValid`, `sslExpiresAt`, `sslDaysLeft`, `sslIssuer`, `sslError`, `sslWarning` |
| History | `uptimePercent24h`, `uptimePercent7d`, `previousStatus`, `changed`, `incidentStartedAt`, `downForMinutes`, `lastDownAt`, `checksInHistory`, `historyFrom` |
| Alerts | `alertEvent` (down, recovered, ssl), `alertSent`, `alertError` |

### What people use it for

- **Website monitoring:** check your sites every few minutes and get a webhook when one goes down
- **API health checks:** watch API endpoints, with the status codes that count as healthy
- **Agency client sites:** one run checks every client site and reports uptime % for the month's report
- **SSL expiry:** a warning before a certificate expires, and an alert when it fails to verify
- **Error pages that answer 200:** an expected word on the page catches a broken site that still says OK
- **AI agents:** is this site up right now, and how fast is it

### How to use it

1. Paste the **URLs** to check, one per line.
2. Optionally add an **expected text**, **status codes** and a **webhook** for alerts.
3. Click **Start**, then add an Apify **schedule** (every 5 minutes, hourly, daily) to build the uptime history.

### Input

| Field | Example | Notes |
|---|---|---|
| URLs to check | `https://example.com` | Up to 1,000 a run |
| Expected text | `Example Domain` | Optional |
| Expected status codes | `200`, `401` | Empty = any 2xx or 3xx |
| Slow above (ms) | `3000` | Marked slow, still up |
| Timeout (seconds) | `20` | 3 to 60 |
| HTTP method | `GET` | Or HEAD |
| Check the SSL certificate | on | Warn within 14 days by default |
| Alert webhook | `https://hooks.example.com/...` | Optional, https only |
| Alert on | Changes only | Or every down check |
| Keep history / Tracking name | on | Free, in your own account |

### Output

Each result is one row in the run's dataset (download it as JSON, CSV, Excel, XML or HTML, or read it through the API). An example row (values shortened):

```json
{
  "url": "https://example.com",
  "index": 0,
  "checkedUrl": "https://example.com",
  "status": "up",
  "reason": null,
  "statusCode": 200,
  "responseMs": 62,
  "finalUrl": "https://example.com/",
  "redirects": 0,
  "contentType": "text/html",
  "keyword": "Example Domain",
  "keywordFound": true,
  "retried": false,
  "sslValid": true,
  "sslExpiresAt": "2026-12-25T23:59:59Z",
  "sslDaysLeft": 48,
  "sslIssuer": "Sample Certificate Authority",
  "sslWarning": false,
  "previousStatus": "up",
  "changed": false,
  "incidentStartedAt": null,
  "downForMinutes": null,
  "uptimePercent24h": 100,
  "uptimePercent7d": 99.65,
  "checksInHistory": 2016,
  "historyFrom": "2026-10-31T10:55:00Z",
  "lastDownAt": "2026-11-03T02:10:00Z",
  "alertEvent": null,
  "alertSent": false,
  "checkedAt": "2026-11-07T10:55:00Z"
}
```

A record named `SUMMARY` in the run's key-value store says what each input returned, with any notes (for example an account that does not exist), what was charged and how much traffic the run used.

### Pricing

- **$0.001 per uptime check** ($1 per 1,000), **$0.80 per 1,000 on Gold and above**
- One check is one URL checked once, with its SSL check, history and alert included
- Entries that are not URLs are free; the history and webhooks are free
- Apify's $0.00005 start charge counts towards your Maximum cost per run.

What typical jobs cost at the list price:

| Job | Cost |
|---|---|
| One site every 5 minutes for a month (8,640 checks) | $8.64 ($6.91 on Gold) |
| One site every 15 minutes for a month | $2.88 |
| 20 client sites once an hour for a month | $14.40 |
| 100 URLs once a day for a month | $3.00 |

On Apify's Scale and Business plans the per-event prices are lower (Store discounts). Set **Maximum cost per run** and the Actor stops cleanly when it is reached: you never pay more than that.

### Tips

- Keep one Tracking name per list so each keeps its own uptime history.
- Use an expected text for pages that can fail with a 200 (an empty template or an error page).
- For APIs that need a key, list the status code they answer without it (for example 401) as expected: it proves the API is up without sending your key.
- Alerts on changes send one message when a site goes down and one when it comes back, not one per run.

### Use it through the API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("Niches/website-uptime-monitor").call(run_input={"urls": ["https://example.com", "https://example.org"], "keyword": "Example Domain", "webhookUrl": "https://hooks.example.com/your-webhook"})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row)
```

**JavaScript**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('Niches/website-uptime-monitor').call({"urls": ["https://example.com", "https://example.org"], "keyword": "Example Domain", "webhookUrl": "https://hooks.example.com/your-webhook"});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**HTTP (one call, results back)**

```bash
curl -X POST 'https://api.apify.com/v2/acts/Niches~website-uptime-monitor/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"urls": ["https://example.com", "https://example.org"], "keyword": "Example Domain", "webhookUrl": "https://hooks.example.com/your-webhook"}'
```

### Integrations and schedules

- **Schedules:** run it every hour, day or week from the Apify Console (Schedules) and keep a history of results.
- **Make, Zapier, n8n, Google Sheets, Slack, Airtable:** connect it through Apify's integrations, or send each finished run to a **webhook**.
- **Datasets:** results stay in the run's dataset; export them or read them by API whenever you need them.

### Use it with AI agents (MCP)

Add Apify's MCP server with this Actor already pinned (`https://mcp.apify.com?tools=Niches/website-uptime-monitor`) to Claude, ChatGPT, Cursor, VS Code or any MCP client. The agent can find this Actor and run it for you: ask it for "are all my client sites up, and which certificates expire this month". AI agents can also pay for runs directly through Apify's agentic payments.

### Limits

- Checks run from Apify's servers in the US, so a site that blocks cloud addresses can look down; a Cloudflare check page counts as reachable and the row says so.
- The schedule sets how often a site is checked; one run checks each URL once (plus one retry when it fails).
- Uptime % covers the checks kept in your history: up to 7 days and 3,000 checks per URL.
- Alerts go to a webhook; there is no e-mail or SMS sender.
- Apify's free plan: the first 10 URLs.

### FAQ

**How often can it check?**

As often as your Apify schedule runs it, for example every 5 minutes. Each run checks every URL once.

**Why is a check retried?**

A single dropped connection should not wake anyone up. A failed check is tried again 3 seconds later; only a second failure counts as down.

**Where is the history kept?**

In a key-value store in your own Apify account, one per tracking name. Nothing is shared.

**Can it alert Slack or Discord?**

The webhook body carries the message in `text` (the field Slack incoming webhooks read) and `content` (the field Discord webhooks read), plus the event, URL, status code and reason as JSON for your own endpoint.

**Does it check the SSL certificate?**

Yes: days left, expiry date, issuer and whether it verifies. An expired certificate makes the site count as down, as it would in a browser.

**What counts as down?**

No answer within the timeout, a DNS or connection failure, a status code outside the expected ones (by default anything below 200 or 400 and above), a certificate error, or the expected text missing.

### Support

Questions, a site that changed, or a field you need? Open an issue on this Actor's **Issues** tab: we answer there, usually within a day.

***

Also found as: uptime monitor, website uptime monitor, website monitoring, uptime checker, ssl certificate checker, website status checker, api health check, downtime alert, is my site down, uptime robot alternative.

# Actor input Schema

## `urls` (type: `array`):

Websites or API endpoints, one per line. A missing https:// is added. Up to 1,000 a run.

## `keyword` (type: `string`):

A word or phrase the page must contain. If it is missing, the check counts as down (catches error pages that still answer 200).

## `expectedStatusCodes` (type: `array`):

Status codes that count as up, for example 200 and 401 for a protected API. Empty means any 2xx or 3xx.

## `slowResponseMs` (type: `integer`):

A response slower than this is marked slow (still counted as up). 0 turns it off.

## `timeoutSeconds` (type: `integer`):

How long to wait for an answer before the check counts as down.

## `method` (type: `string`):

GET reads the page (needed for the expected text); HEAD only asks for the headers.

## `checkSsl` (type: `boolean`):

Days until the certificate expires, its issuer, and whether it verifies.

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

The row's sslWarning turns on, and one SSL alert a day is sent, when the certificate expires within this many days or does not verify.

## `webhookUrl` (type: `string`):

An https:// URL that gets a JSON POST when a site goes down, comes back, or its certificate is close to expiry. The message is in both `text` (the field Slack incoming webhooks read) and `content` (the field Discord webhooks read), with the event, URL, status code and reason alongside.

## `alertOn` (type: `string`):

Changes only: one alert when a site goes down, one when it comes back, one a day for SSL. Every down check: an alert on each run while it is down.

## `keepHistory` (type: `boolean`):

Store each result in your own Apify account (free) so every run reports uptime % over 24 hours and 7 days, incidents and downtime.

## `trackingName` (type: `string`):

Optional: a separate history for each list you monitor.

## Actor input object example

```json
{
  "urls": [
    "https://example.com",
    "https://example.org"
  ],
  "slowResponseMs": 3000,
  "timeoutSeconds": 20,
  "method": "GET",
  "checkSsl": true,
  "sslWarnDays": 14,
  "alertOn": "changes",
  "keepHistory": true
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset: the results.

## `summary` (type: `string`):

What each input returned, and notes.

# 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 = {
    "urls": [
        "https://example.com",
        "https://example.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("niches/website-uptime-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 = { "urls": [
        "https://example.com",
        "https://example.org",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("niches/website-uptime-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 '{
  "urls": [
    "https://example.com",
    "https://example.org"
  ]
}' |
apify call niches/website-uptime-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,niches/website-uptime-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/ShtFzKt4ZPgtFHHFo/builds/LtX8e4rHMeeIQfKKf/openapi.json
