# Website Audit Report – SEO, Speed, Broken Links & Accessibility (`clearsite-tools/website-audit-report`) Actor

Crawls a website and returns a client-ready audit: health score, prioritized fixes, broken links, SEO basics, security headers, and Lighthouse speed and accessibility scores. HTML and Markdown report in English or French, white-label ready.

- **URL**: https://apify.com/clearsite-tools/website-audit-report.md
- **Developed by:** [Wadoude KM](https://apify.com/clearsite-tools) (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

Pay per event

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 Audit Report

Crawl a website and get a report you can hand to a client or a developer: a health score, a prioritized list of what to fix, and the exact pages affected. The report comes as a self-contained HTML page and as Markdown, in **English or French**, with optional agency branding.

### What it checks

| Area | Checks |
|---|---|
| Availability and links | Pages returning errors, broken internal links, broken links to other sites, broken images, redirect chains, links that go through a redirect |
| Search visibility | Missing or duplicate titles and meta descriptions, title and description length, missing or multiple H1, canonical tags, `noindex` pages, robots.txt, XML sitemap, structured data (JSON-LD) presence and syntax |
| Speed | Server response time, compression, HTML weight, plus a full **Google Lighthouse** measurement (performance score, LCP, CLS, TBT, biggest savings) on the pages you choose |
| Accessibility | Images without alternative text, missing page language, plus Lighthouse accessibility checks |
| Security | HTTPS, HTTP-to-HTTPS redirect, mixed content, recommended security headers |
| Mobile and sharing | Viewport tag, Open Graph tags, favicon |

Every finding comes with a plain-language explanation and a fix instruction, so the report can be read by someone who is not a developer.

### How to use it

1. Enter one or more website addresses.
2. Choose how many pages to crawl per website and how many pages to measure with Lighthouse.
3. Pick the report language, and optionally a report title, your agency name and a logo.
4. Run it. When it finishes, open the report from the **Output** tab, or open `report-<domain>` in the **Key-value store** tab.

### Output

- **`report-<domain>`** – the HTML report. Print it to PDF from the browser if you need a PDF.
- **`report`** – a copy of the first website's HTML report, linked from the run's Output tab.
- **`report-<domain>-md`** – the same report in Markdown.
- **`lighthouse-<domain>-N`** – the complete Lighthouse report for each measured page.
- **`pages-<domain>`** – the raw facts collected for every crawled page (JSON).
- **`OUTPUT`** – a JSON summary: health score, counts, Lighthouse scores, report links.
- **Dataset** – one row per finding (severity, area, page, target, detail, how to fix), ready to export to CSV or Excel.

Example of a dataset row:

```json
{
  "site": "https://example.com/",
  "severity": "critical",
  "category": "links",
  "check": "broken-internal-link",
  "title": "Broken internal links",
  "url": "https://example.com/services",
  "target": "https://example.com/old-pricing",
  "detail": "HTTP 404",
  "howToFix": "Links on your site point to pages of your own site that no longer exist. Update each link to a working address or remove it."
}
```

### How the health score is calculated

The score starts at 100. Each failing check subtracts 10 points if it is critical, 4 if it is a warning and 1 if it is a notice, multiplied by the share of crawled pages it affects (site-wide checks such as a missing sitemap count in full). The score never goes below 0. It summarizes the automated checks in this report; it is not a Google ranking factor.

### Good to know

- The crawler identifies itself as `SiteAuditReport` and **respects robots.txt** by default. Turn that off only for websites you own or are authorized to audit.
- It reads pages as a search engine first sees them (server HTML). Content that only appears after JavaScript runs is covered by the Lighthouse measurement, not by the crawl checks.
- Links to other sites that refuse automated checks are listed as "could not be verified" rather than broken.
- Lighthouse results are lab measurements and vary by a few points between runs.
- No personal data is collected: the tool reads page structure, not people.

### Cost drivers

You are charged per page crawled and per Lighthouse measurement. To keep a run cheap, lower "Pages per website" and "Pages measured with Lighthouse".

# Actor input Schema

## `startUrls` (type: `array`):

One address per website. Each website gets its own report. The crawl stays on that website and follows its internal links.

## `maxPagesPerSite` (type: `integer`):

Maximum number of pages to crawl and check on each website.

## `lighthousePages` (type: `integer`):

How many pages get a full speed, accessibility and best-practices measurement in a real browser, starting with the home page. Set to 0 to skip.

## `device` (type: `string`):

Mobile simulates a mid-range phone on a slow 4G connection, which is what Google uses for ranking. Desktop simulates a wired computer.

## `language` (type: `string`):

Language of the report and of the fix instructions.

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

Test outgoing links for dead pages. Links to your own pages and images are always tested.

## `maxLinkChecks` (type: `integer`):

Upper limit on links and images tested per website. Internal ones are tested first. The tool also never tests more than 100 plus 30 per crawled page.

## `respectRobotsTxt` (type: `boolean`):

Skip pages the website's robots.txt file disallows. Turn off only for websites you own or are authorized to audit.

## `reportTitle` (type: `string`):

Optional heading shown at the top of the report, for example "Technical audit – Acme Ltd".

## `brandName` (type: `string`):

Your name or agency name, shown in the report header.

## `logoUrl` (type: `string`):

HTTPS address of a logo image to show at the top of the report.

## `proxyConfiguration` (type: `object`):

Optional. Use a proxy for the crawl if the website blocks cloud servers. The Lighthouse measurement always connects directly.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://crawlee.dev"
    }
  ],
  "maxPagesPerSite": 25,
  "lighthousePages": 1,
  "device": "mobile",
  "language": "en",
  "checkExternalLinks": true,
  "maxLinkChecks": 300,
  "respectRobotsTxt": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `report` (type: `string`):

The client-ready report for the first website in the run. Reports for further websites are stored as report-<domain> in the key-value store.

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

Health score, counts, Lighthouse scores and links to every report.

## `findings` (type: `string`):

One row per finding: severity, area, page, target, detail and how to fix it.

## `files` (type: `string`):

Every report, Lighthouse report and page-facts file produced by the run.

# 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 = {
    "startUrls": [
        {
            "url": "https://crawlee.dev"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("clearsite-tools/website-audit-report").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 = { "startUrls": [{ "url": "https://crawlee.dev" }] }

# Run the Actor and wait for it to finish
run = client.actor("clearsite-tools/website-audit-report").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 '{
  "startUrls": [
    {
      "url": "https://crawlee.dev"
    }
  ]
}' |
apify call clearsite-tools/website-audit-report --silent --output-dataset

```

## MCP server setup

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

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/2RcokrxkoftMvjxSl/builds/7aJDsKu6lxg8qhiyn/openapi.json
