# Website SEO Audit & Broken Link Checker (`squarish_altruism/site-audit`) Actor

Crawl any website and get a page-by-page SEO and health report: broken links, 4xx/5xx errors, redirects, missing titles and meta descriptions, duplicates, canonical, noindex, Open Graph, structured data, alt text and sitemap problems. Shareable HTML report included.

- **URL**: https://apify.com/squarish_altruism/site-audit.md
- **Developed by:** [John Joseph Wheatley](https://apify.com/squarish_altruism) (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

$5.00 / 1,000 page auditeds

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 SEO Audit & Broken Link Checker

> **At a glance:** crawl a website and find what is broken. **You get** a page-by-page report and a shareable HTML summary with a 0–100 health score. **Cost:** a 200-page site is $1.

Crawl a whole website and get a page-by-page technical SEO and site-health report. It finds broken links, 4xx/5xx errors, redirects, missing or duplicate titles and meta descriptions, canonical and noindex problems, missing Open Graph tags, images without alt text, thin content and sitemap mistakes. Every run also produces a **shareable HTML report** with a 0–100 health score.

It's fast and inexpensive because it uses plain HTTP requests, with no headless browser. **You pay only for pages that are fully audited.** Redirects, failed pages and link checks are free.

### What it checks

| Area | Checks |
|---|---|
| **Status & links** | 4xx and 5xx pages, fetch failures, broken internal links, broken external links (optional), redirects, broken linked files (PDFs, images, downloads) |
| **Titles & descriptions** | Missing, too long, too short, duplicated across pages |
| **Headings & content** | Missing `<h1>`, multiple `<h1>`, thin content (<200 words), images without `alt` |
| **Indexing** | `noindex` pages, canonical missing or pointing elsewhere, `noindex` pages listed in the sitemap, sitemap URLs that redirect or error |
| **Social & structured data** | Missing Open Graph tags, JSON-LD / schema.org types found on each page |
| **Mobile & security** | Missing viewport meta tag, missing `lang`, mixed content (HTTP resources on HTTPS pages) |
| **Performance** | Slow server responses (>2 s) |

Each issue has a severity (**error**, **warning** or **notice**) and each page gets a score from 0 to 100.

### How to use it

1. Enter your website's URL, for example `https://example.com`.
2. Set **Max pages to audit**. The default is 100.
3. Click **Start**. A typical 100-page site finishes in about a minute.
4. Open the **Overview**, **On-page SEO** or **Broken links** tab in the dataset. You can also open the `REPORT` record in the key-value store for the HTML report, which you can share with a client or colleague.

The Actor discovers pages by following links from the start URL. It also reads the sitemap from robots.txt or `/sitemap.xml`, so it finds orphan pages too.

### Input

| Field | Default | Description |
|---|---|---|
| `startUrls` | — | The site to audit. Pages on the same domain are included. |
| `maxPages` | 100 | Maximum number of pages to audit (and pay for). |
| `useSitemap` | true | Also audit sitemap URLs and check that the sitemap is consistent. |
| `checkExternalLinks` | false | Also check links to other websites. |
| `maxLinkChecks` | 500 | Cap on free link checks (files, plus external links if enabled). |
| `maxDepth` | 10 | How many clicks away from the start URL to go. |
| `includeSubdomains` | false | Treat `blog.example.com` and similar subdomains as part of the site. |
| `respectRobotsTxt` | true | Skip pages that robots.txt disallows. |
| `maxConcurrency` | 10 | Parallel requests. Lower it for small servers. |

```json
{
  "startUrls": [{ "url": "https://example.com" }],
  "maxPages": 500,
  "checkExternalLinks": true
}
```

### Output

#### Per-page results (dataset)

```json
{
  "type": "page",
  "url": "https://example.com/pricing",
  "statusCode": 200,
  "score": 80,
  "errorCount": 1,
  "warningCount": 1,
  "noticeCount": 0,
  "issueCodes": ["broken-internal-links", "title-too-long"],
  "issues": [
    { "code": "broken-internal-links", "severity": "error", "message": "Page links to internal URLs that are broken", "detail": "2 links" },
    { "code": "title-too-long", "severity": "warning", "message": "Title longer than 60 characters (may be truncated in search results)", "detail": "72 chars" }
  ],
  "brokenLinks": [{ "link": "https://example.com/old-plan", "linkStatus": 404 }],
  "title": "Pricing plans for teams of every size – compare features and save today",
  "metaDescription": "Simple, transparent pricing…",
  "h1": ["Pricing"],
  "canonical": "https://example.com/pricing",
  "structuredDataTypes": ["Product", "BreadcrumbList"],
  "wordCount": 812,
  "responseTimeMs": 182,
  "inSitemap": true
}
```

#### Site summary (key-value store `OUTPUT`)

This contains the health score, totals, status-code breakdown, issues ranked by severity and number of pages affected, the full broken-link list, and the 20 pages that need the most work.

#### HTML report (key-value store `REPORT`)

A standalone page with the same summary, ready to send to a client.

### Pricing

**$0.005 per audited page**, which is $5 per 1,000 pages. A 200-page site costs $1.

These are free:

- redirects
- pages that fail to load
- checks of linked files and external links

The Actor never audits more pages than your run's maximum cost allows.

### Use cases

- **Agencies and freelancers:** run a quick technical audit before a sales call, or schedule monthly health reports for clients.
- **Site owners:** catch broken links and pages accidentally set to noindex after a redesign or migration.
- **Developers:** add it to CI or a weekly schedule through the Apify API, and get alerts when new 404s appear.
- **SEO teams:** export titles, descriptions, canonicals and structured data for every page to CSV or Excel.

### Scheduling and integrations

Use Apify **Schedules** to audit a site daily or weekly. You can connect results to Google Sheets, Slack, Zapier, Make or a webhook, or call the Actor from your own code through the Apify API.

### Use with AI agents (MCP)

This Actor works as a tool for AI assistants such as Claude, ChatGPT and Cursor, through [Apify's MCP server](https://mcp.apify.com).

1. Add the server to your MCP client, with this Actor selected:

```json
{
  "mcpServers": {
    "apify": { "url": "https://mcp.apify.com?tools=squarish_altruism/site-audit" }
  }
}
```

In Claude Code: `claude mcp add apify "https://mcp.apify.com?tools=squarish_altruism/site-audit" -t http`

2. Sign in with your Apify account when your client asks. If it can't use OAuth, send your Apify API token in an `Authorization: Bearer` header.
3. Ask in plain language, for example: *"Audit https://example.com for broken links and missing meta descriptions, up to 50 pages, and list the worst problems."*

Runs started by an agent are billed to your Apify account at the same prices as above.

### FAQ

**Does it render JavaScript?** No. It audits the HTML your server returns, which is what most search-engine crawlers see first. Sites that render entirely on the client side will show thin content.

**Will it overload my server?** It runs 10 parallel requests by default, and you can lower `maxConcurrency` to 1–2 for small hosting plans.

**Can I audit a site I don't own?** Only audit sites you own or have permission to test. Keep `respectRobotsTxt` on for third-party sites.

**Something's wrong or missing?** Open an issue on the Actor's **Issues** tab. Feature requests are welcome.

### Related tools

- [Website Change Monitor](https://apify.com/squarish_altruism/page-change-monitor)
- [Website Screenshot & URL to PDF](https://apify.com/squarish_altruism/screenshot)
- [Bulk Domain Checker](https://apify.com/squarish_altruism/domain-intel)

# Actor input Schema

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

Homepage (or any page) of the site to audit. Pages on the same domain are discovered by following links and reading the sitemap.

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

Upper limit on the number of pages audited (and charged).

## `useSitemap` (type: `boolean`):

Also audit URLs listed in the site's sitemap (found via robots.txt or /sitemap.xml), and flag sitemap URLs that redirect, error or are noindex.

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

Also check links pointing to other websites for errors. Slower on link-heavy sites.

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

Upper limit on extra link checks (linked files such as PDFs and images, and external links if enabled). Link checks are free.

## `maxDepth` (type: `integer`):

How many clicks away from the start URL to follow links.

## `includeSubdomains` (type: `boolean`):

Treat subdomains (e.g. blog.example.com) as part of the site.

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

Skip pages disallowed by robots.txt. Turn off only for sites you own.

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

Maximum parallel requests. Lower it to be gentle on small servers.

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

Optional. Most sites don't need a proxy for an audit.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://crawlee.dev"
    }
  ],
  "maxPages": 100,
  "useSitemap": true,
  "checkExternalLinks": false,
  "maxLinkChecks": 500,
  "maxDepth": 10,
  "includeSubdomains": false,
  "respectRobotsTxt": true,
  "maxConcurrency": 10
}
```

# Actor output Schema

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

One item per audited page or checked link, plus a summary.

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

Files saved to the run's default key-value store.

# 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("squarish_altruism/site-audit").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("squarish_altruism/site-audit").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 squarish_altruism/site-audit --silent --output-dataset

```

## MCP server setup

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

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/t8ahc3sUR0pMRH5Ih/builds/QjJgKdqzeVaD5bxp0/openapi.json
