# Website Audit - Broken Links, SEO Issues & PDF Report (`radarweb/website-audit-broken-links-seo`) Actor

Audit any website in one run: broken links (404, 5xx, timeouts, DNS, SSL) with the pages to fix, on-page SEO issues for every page with a 0-100 score, and a client-ready HTML/PDF report with your agency's logo and colours.

- **URL**: https://apify.com/radarweb/website-audit-broken-links-seo.md
- **Developed by:** [Riccardo Bonadio](https://apify.com/radarweb) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 page crawleds

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: broken links, SEO issues and a PDF report

**One run, one client-ready audit.** Crawls a website (plus every page in its sitemap) and delivers:

1. **Broken links**, with the pages to fix and the link text.
2. **On-page SEO issues** for every page, with a **0–100 score**.
3. A **report in HTML and PDF** with **your agency's logo and colours**, ready to send to a client.

### For agencies and freelancers

- **Your brand on the report**: logo, company name, brand colour. Turn on *White label* to remove our footer.
- **PDF in one click**: A4, printable, attach it to an email or a proposal.
- **Schedule it monthly** per client and add *Run Results Notifier* to email the report automatically.

### What is checked

**Links:** internal and external links, images, CSS and scripts. Reports 404/410 and other 4xx, 5xx errors, timeouts, DNS failures and SSL errors. Every negative answer is confirmed with a real GET, so you don't chase false alarms. Links the server refused to answer (rate limiting) are never reported as broken.

**SEO, on every page:** missing, short or long title; missing or long meta description; missing or multiple H1; pages blocked by `noindex`; images without alt text; no mobile viewport; thin content; slow server response; heavy HTML; pages reached through redirects; missing `lang`; no Open Graph tags; plus **duplicate titles and descriptions across pages**.

**Coverage:** follows links *and* reads the sitemap, so **orphan pages** no menu links to are audited too. Respects robots.txt and slows down automatically when a server asks it to.

### Output

- **Dataset**: one row per broken link (`type: broken-link`) and per SEO issue (`type: seo-issue`, with severity and page score). Export to CSV or Excel.
- **REPORT**: an HTML report (link in the log). **REPORT-PDF** is created when the PDF option is on.
- **SUMMARY**: totals per site.

### Pricing

| Item | Price |
|---|---|
| Page crawled (all its links checked) | $0.0025 |
| SEO audit of a page (optional, on by default) | $0.0025 |
| Branded PDF report (optional) | $0.50 per report |

A full audit of a 200-page site with PDF costs about **$1.50**. Agencies typically resell an audit for $50–300.

### Try it

The input is pre-filled with a practice website: just press **Start**.

### Use it from AI agents (MCP server)

The same audit engine is available as a local [Model Context Protocol](https://modelcontextprotocol.io) server, so Claude Desktop, Cursor or any MCP client can audit a site in a conversation.

Tools: `check_links` (broken links) and `audit_site` (broken links + on-page SEO issues with a score per page).
Safety: robots.txt is respected, at most 50 pages per call, only public http(s) addresses (localhost and private IP addresses are blocked, also for links and redirects found while crawling; hostnames that a DNS server maps to a private IP are not checked, so run it on a machine you trust).

```json
{
  "mcpServers": {
    "website-audit": {
      "command": "python",
      "args": ["-m", "src.mcp_server"],
      "cwd": "/path/to/actors/broken-link-checker"
    }
  }
}
```

Requires `pip install -r requirements.txt` (the MCP server only needs `httpx`). Try: "Check example.com for broken links."

#### Come pubblicarlo (per il titolare, solo dopo il tuo ok)

1. Prova in locale: incolla lo snippet sopra nella config di Claude Desktop (Settings → Developer → Edit Config), riavvia e chiedi "controlla i link rotti di <un tuo sito>".
2. Per renderlo pubblico servono un repository GitHub pubblico con questa cartella e, se vuoi, l'inserimento nelle liste MCP: sono azioni a tuo nome, da approvare in chat. Il motore non pubblica nulla.

# Actor input Schema

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

Homepage (or any page) of each site to check.

## `seoAudit` (type: `boolean`):

Checks titles, meta descriptions, H1, noindex, images without alt, mobile viewport, thin content, speed, duplicates across pages, and gives each page a 0-100 score.

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

Internal pages to crawl. Every link found on them is checked.

## `includeSitemapPages` (type: `boolean`):

Adds the pages from the site's sitemap.xml to the crawl, so pages no menu links to (orphan pages) are checked too.

## `maxLinksPerSite` (type: `integer`):

Links used on the most pages are checked first. 0 = no limit (large sites can take long).

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

External links are only checked (one request each), never crawled.

## `checkImagesAndAssets` (type: `boolean`):

Report missing images, stylesheets and script files as well.

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

Skip pages your robots.txt disallows. Turn off only for your own site.

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

Lower it for small or slow servers.

## `timeoutSecs` (type: `integer`):

A link that doesn't answer in time is reported as 'timeout'.

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

E.g. 'Website audit - Acme Ltd, November'.

## `pdfReport` (type: `boolean`):

A4 PDF of the report, ready to email or print (record REPORT-PDF).

## `companyName` (type: `string`):

Shown in the report header.

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

Public URL of your logo (PNG/SVG), shown top-left.

## `brandColor` (type: `string`):

Hex colour for headings, e.g. #0a7cff.

## `whiteLabel` (type: `boolean`):

Present the report as your own.

## Actor input object example

```json
{
  "startUrls": [
    "https://books.toscrape.com/"
  ],
  "seoAudit": true,
  "maxPagesPerSite": 20,
  "includeSitemapPages": true,
  "maxLinksPerSite": 5000,
  "checkExternalLinks": true,
  "checkImagesAndAssets": true,
  "respectRobotsTxt": true,
  "maxConcurrency": 8,
  "timeoutSecs": 20,
  "pdfReport": false,
  "whiteLabel": false
}
```

# Actor output Schema

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

No description

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

No description

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

No description

## `pdf` (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 = {
    "startUrls": [
        "https://books.toscrape.com/"
    ],
    "maxPagesPerSite": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("radarweb/website-audit-broken-links-seo").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": ["https://books.toscrape.com/"],
    "maxPagesPerSite": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("radarweb/website-audit-broken-links-seo").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": [
    "https://books.toscrape.com/"
  ],
  "maxPagesPerSite": 20
}' |
apify call radarweb/website-audit-broken-links-seo --silent --output-dataset

```

## MCP server setup

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

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/3T4cTyii68kJzwrOM/builds/cg8igzMnMtt1IjASo/openapi.json
