# Website Health Checker: Status, TLS, Headers (`opendatadesk/website-health-checker`) Actor

Check a list of URLs for HTTP status, redirect chains, TLS certificate expiry, security headers, robots.txt and sitemap. Every URL is written back. Built for SEO, developers, n8n and AI agents.

- **URL**: https://apify.com/opendatadesk/website-health-checker.md
- **Developed by:** [Open Data Desk](https://apify.com/opendatadesk) (community)
- **Categories:** Developer tools, Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 urls

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/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 Health Checker: Status, Redirects, TLS and Security Headers

Check a list of URLs in one run. For each address you get the HTTP status, the redirect chain, the TLS certificate expiry, a short list of security headers, and whether robots.txt and a sitemap are present. Every URL is written back, including the ones that fail.

Built as a small block for SEO work, uptime checks, n8n, Make, Zapier and AI agents.

### What data do you get?

| Field | What it is |
| --- | --- |
| `inputUrl`, `url`, `finalUrl` | What you typed, the normalised URL, and where the request ended |
| `statusCode`, `ok` | The final HTTP status |
| `redirectCount`, `redirectChain` | How many hops, and each hop's status and location |
| `tls` | Whether a certificate is present, if it is still valid, when it expires, the issuer and the TLS protocol |
| `securityHeaders`, `missingSecurityHeaders` | HSTS, CSP, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Permissions-Policy |
| `robots` | Whether robots.txt was found, which sitemaps it declares, and whether it blocks all crawlers |
| `sitemap` | A sitemap URL from robots.txt, or a check of `/sitemap.xml` |
| `issues`, `status` | A short list of problems, and a single status such as `ok`, `http_error`, `tls_invalid`, `failed`, `invalid_url` or `skipped_limit` |

#### Example output

One URL from a test run on example.com. The row is kept even when headers or files are missing.

```json
{
    "inputUrl": "https://www.example.com",
    "url": "https://www.example.com/",
    "finalUrl": "https://www.example.com/",
    "statusCode": 200,
    "ok": true,
    "redirectCount": 0,
    "redirectChain": [
        {
            "url": "https://www.example.com/",
            "status": 200,
            "location": null
        }
    ],
    "tls": {
        "present": true,
        "valid": true,
        "validFrom": "2026-09-26T22:49:11.000Z",
        "validTo": "2026-12-25T22:56:35.000Z",
        "daysRemaining": 39,
        "issuer": "SSL Corporation",
        "subject": "example.com",
        "protocol": "TLSv1.3"
    },
    "securityHeaders": {
        "strictTransportSecurity": null,
        "contentSecurityPolicy": null,
        "xContentTypeOptions": null,
        "xFrameOptions": null,
        "referrerPolicy": null,
        "permissionsPolicy": null
    },
    "missingSecurityHeaders": [
        "strict-transport-security",
        "content-security-policy",
        "x-content-type-options",
        "x-frame-options",
        "referrer-policy",
        "permissions-policy"
    ],
    "robots": {
        "found": false,
        "url": "https://www.example.com/robots.txt",
        "statusCode": 404,
        "sitemapUrls": [],
        "blocksAll": null
    },
    "sitemap": {
        "found": false,
        "url": "https://www.example.com/sitemap.xml",
        "statusCode": 404
    },
    "issues": [
        "missing_hsts",
        "missing_security_headers",
        "no_robots",
        "no_sitemap"
    ],
    "status": "ok",
    "error": null,
    "checkedAt": "2026-11-16T14:54:59.563Z"
}
```

### Nothing is silently dropped

Invalid URLs, timeouts and HTTP errors stay in the results with a status. If you set `Max URLs to check` lower than the size of your list, the remaining URLs are still written with status `skipped_limit`.

### How to use it

1. Paste URLs or domains in `URLs or domains`.
2. Set `Max URLs to check` and click Start.
3. Download the result as JSON, CSV or Excel, or read it with the API.

A domain without a scheme is checked as `https://`.

### Limits

- Redirects are followed up to 10 hops.
- Certificate checks use the hostname on the final URL. They do not by themselves prove that a browser will trust the certificate, because the Actor accepts the certificate in order to read its dates.
- A missing sitemap in robots.txt is followed by a single request to `/sitemap.xml`. Other sitemap index files are not crawled.

### How much does it cost?

You pay for each URL that is written, including failed and skipped ones. The price per 1,000 URLs is shown at the top of this page, and you can set a maximum cost per run.

### Data source and legal

The Actor only requests the URLs you give it, plus `robots.txt` and a sitemap on the same site. There is no third-party data licence. You are responsible for checking sites you are allowed to check.

### Issues and requests

If a check looks wrong, please open an issue on the Issues tab with the URL (you can leave out any private path).

# Actor input Schema

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

One URL or domain per line. https is used when you leave the scheme out. Every item is written back, including failures.

## `maxItems` (type: `integer`):

Checks stop after this many URLs. Any remaining URLs are still written, with status skipped_limit.

## Actor input object example

```json
{
  "urls": [
    "https://www.example.com",
    "https://httpstat.us/301"
  ],
  "maxItems": 25
}
```

# Actor output Schema

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

Dataset of URL checks. Each input URL is written back, including failed checks.

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

A short JSON summary of the run, including counts.

# 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://www.example.com",
        "https://httpstat.us/301"
    ],
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("opendatadesk/website-health-checker").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://www.example.com",
        "https://httpstat.us/301",
    ],
    "maxItems": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("opendatadesk/website-health-checker").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://www.example.com",
    "https://httpstat.us/301"
  ],
  "maxItems": 25
}' |
apify call opendatadesk/website-health-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,opendatadesk/website-health-checker"
        }
    }
}
```

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/uwD2MQ3lt0dNAKd86/builds/nZGPcVgbTceplL3VC/openapi.json
