# Website Health Check: Plain-English Report for Small Business (`craigmckee/website-health-check`) Actor

Plain-English website health report: domain renewal, SSL expiry, broken links, SPF/DMARC email protection, mobile and Google basics. Traffic-light score, fix steps and a PDF.

- **URL**: https://apify.com/craigmckee/website-health-check.md
- **Developed by:** [Print & Plan UK](https://apify.com/craigmckee) (community)
- **Categories:** SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $150.00 / 1,000 full health reports

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 Check: Plain-English Report for Small Business

Give it one website address. You get back **one scored, plain-English report** with a traffic light for every check, **what it means for you** and **how to fix it**, plus a ready-to-send **PDF**.

Made for small businesses, clubs, charities and the people who look after their websites (freelancers, agencies, volunteers). No jargon is needed to read the results.

### What it checks

| Area | Check | Why it matters |
|---|---|---|
| Staying online | Homepage opens · **domain renewal date** (RDAP) | A lapsed domain takes the website **and email** offline |
| Security | **SSL certificate expiry** and trust · HTTPS works · http→https redirect · mixed content | An expired padlock shows visitors a "Not secure" warning |
| Email | **SPF** and **DMARC** records | Makes it harder for scammers to send email pretending to be you |
| Links | **Broken internal and external links** (with the page each one is on) · redirect chains | Dead ends lose customers and look neglected |
| Google basics | **Mobile viewport** · page titles · meta descriptions · noindex / robots.txt blocking Googlebot · homepage speed | How you look in search results and on phones |

It also spots the website builder (WordPress, Wix, Squarespace, Shopify, Webflow, GoDaddy) and gives builder-specific fix tips where it can.

### Modes

- **full** (default): crawls up to `maxPages` pages (default 50), checks every link it finds and runs all the checks above.
- **quick**: homepage only, 5 links, domain, certificate and email protection. About 6 seconds.

### Input example

```json
{
  "url": "yourbusiness.co.uk",
  "mode": "full",
  "maxPages": 50,
  "checkExternalLinks": true,
  "includePdf": true
}
```

### Output

- **Dataset**: one `report` item (score, label, counts, top actions, every check, scope, links to the HTML/PDF).
- **Key-value store**: `REPORT_HTML` (the full report, printable), `REPORT_PDF` (A4, 3–5 pages) and `OUTPUT` (the same JSON).

```json
{
  "type": "report",
  "mode": "full",
  "host": "example.co.uk",
  "summary": { "score": 82, "label": "Good, with a few things to tidy", "light": "good",
               "counts": { "good": 10, "warn": 3, "bad": 1, "unknown": 0 } },
  "topActions": [
    { "id": "dmarc", "status": "bad", "title": "Email anti-impersonation (DMARC)",
      "headline": "Your domain has no DMARC policy." }
  ],
  "platform": "GoDaddy Website Builder",
  "checks": [
    { "id": "domain-renewal", "group": "online", "title": "Domain name renewal", "status": "warn",
      "headline": "Your domain name runs out in 40 days (17 November 2026).",
      "meaning": "If it lapses, your website and email stop working...",
      "fix": "Log in to your domain company and turn on auto-renew..." }
  ],
  "scope": { "pagesChecked": 1, "linksChecked": 14, "maxPages": 50 },
  "reportHtmlUrl": "https://api.apify.com/v2/key-value-stores/.../records/REPORT_HTML",
  "reportPdfUrl": "https://api.apify.com/v2/key-value-stores/.../records/REPORT_PDF"
}
```

#### How the score works

Each check scores 1 (good), 0.5 (worth fixing) or 0 (fix now), weighted by importance. Any "fix now" item caps the score at 89. A critical one caps it at 49: the site doesn't open, the domain has lapsed or runs out within 30 days, the certificate has expired or runs out within 7 days, or there's no working https. Labels: **Great** (90+), **Good, with a few things to tidy** (75+), **Needs attention** (50+), **Urgent fixes needed**.

### Pricing (pay per event)

| Event | Price |
|---|---|
| Full health report (first 50 pages included) | $0.15 |
| Each extra page checked beyond 50 | $0.002 |
| Quick check | $0.03 |

A 200-page site costs $0.45. If the site **and** its domain can't be reached at all, you're not charged. If you set a maximum cost per run, the crawl is capped up front so you never pay for pages that can't be delivered.

### FAQ

**Is it safe to run on my site?** Yes. It only reads public pages, obeys robots.txt, uses 4 connections with a short gap between requests, never logs in and never submits forms.

**What about very big or link-heavy sites?** To keep reports quick and cheap, a full report checks the most important links first (links on your own site, then your images and files, then links to other websites) within a set number and time limit (about 1,000 links / 2 minutes for 50 pages). If some links weren't checked, the report says how many.

**Does it render JavaScript?** No. It reads the HTML your server sends, which is what Google reads first. Links that only appear after JavaScript runs may be missed.

**Why does a check say "couldn't check"?** Some domain registries (for example some country domains) don't publish renewal dates, and some sites block automated visitors. We say so rather than guess.

**Should I only check sites I own?** Please check your own sites or ones you look after. The crawler identifies itself in its User-Agent.

# Actor input Schema

## `url` (type: `string`):

The website to check, e.g. `example.co.uk` or `https://www.example.co.uk/`. We check this site, its domain name and its email settings.

## `mode` (type: `string`):

Quick check is cheaper and takes a few seconds.

## `maxPages` (type: `integer`):

How many pages of the site to open and check for broken links (full report). The first 50 are included in the report price; more cost a little extra each.

## `checkExternalLinks` (type: `boolean`):

Also check links that point to other websites.

## `includePdf` (type: `boolean`):

Save a printable PDF of the report as REPORT_PDF in the key-value store.

## `maxConcurrency` (type: `integer`):

Keep low to be polite to small websites.

## `minDelaySecs` (type: `number`):

A robots.txt Crawl-delay, if larger, takes precedence.

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

Links that take longer than this are reported as not responding.

## Actor input object example

```json
{
  "url": "https://www.python.org/",
  "mode": "full",
  "maxPages": 50,
  "checkExternalLinks": true,
  "includePdf": true,
  "maxConcurrency": 4,
  "minDelaySecs": 0.25,
  "requestTimeoutSecs": 15
}
```

# Actor output Schema

## `reportHtml` (type: `string`):

No description

## `reportPdf` (type: `string`):

No description

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

No description

# 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 = {
    "url": "https://www.python.org/"
};

// Run the Actor and wait for it to finish
const run = await client.actor("craigmckee/website-health-check").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 = { "url": "https://www.python.org/" }

# Run the Actor and wait for it to finish
run = client.actor("craigmckee/website-health-check").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 '{
  "url": "https://www.python.org/"
}' |
apify call craigmckee/website-health-check --silent --output-dataset

```

## MCP server setup

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

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/X4QQCPrjN9ajgkAfp/builds/x7ggu6ScaF2U5dAYD/openapi.json
