# Website SEO Audit Tool: Crawl Diff and Alerts (`fulox/website-seo-audit`) Actor

Audit every page of a site over plain HTTP: titles, meta, canonicals, noindex, hreflang, images, redirect chains, sitemap gaps, each with a fix hint. Name a run and the next one lists what broke or got fixed. Finds orphan URLs. $3 per 1,000 pages. JSON, CSV, Excel.

- **URL**: https://apify.com/fulox/website-seo-audit.md
- **Developed by:** [Fulox](https://apify.com/fulox) (community)
- **Categories:** SEO tools, Developer tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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 Tool: Crawl Diff and Alerts

Crawl a public website over plain HTTP and audit every HTML page for SEO issues, each with a priority and a fix hint, so SEO freelancers, agencies and site owners can re-audit after a release or migration and see what changed.

### What you get

- **Diff against the last run.** Save the run under a name (`historyKey`) and the next run reports what broke or got fixed since: new and fixed issues, status changes, pages that went noindex, changed titles and canonicals, new and removed pages, with an optional CI fail switch (`failOnRegression`).
- **Sitemap reconciliation.** Orphan URLs (in the sitemap, linked from nowhere), indexable pages missing from the sitemap, and sitemap URLs that are noindex or canonical elsewhere.
- **Full redirect chains.** Every redirect is recorded as a chain with the status of each hop, not just the first.
- **$3 per 1,000 audited pages.** Redirects, files, blocked and skipped URLs are free.

Each page row also holds the title, meta description, headings, canonical, noindex state, hreflang, images without alt text, structured data types, internal and external link counts, broken internal links and a 0 to 100 score.

### Example output

A `page` row (shortened):

```json
{
  "type": "page",
  "url": "https://crawlee.dev/blog/common-problems-in-web-scraping",
  "finalUrl": "https://crawlee.dev/blog/common-problems-in-web-scraping",
  "status": 200,
  "billed": true,
  "redirectChain": [],
  "indexable": true,
  "noindexReason": null,
  "canonical": "https://crawlee.dev/blog/common-problems-in-web-scraping",
  "canonicalMatches": true,
  "titleLength": 139,
  "h1Count": 1,
  "wordCount": 3102,
  "imagesTotal": 11,
  "imagesMissingAlt": 0,
  "structuredDataTypes": ["BlogPosting"],
  "inSitemap": true,
  "linkedFromCount": 3,
  "issues": [
    {
      "id": "title-length",
      "category": "content",
      "priority": "low",
      "message": "Title is 139 characters (advice: about 30 to 60).",
      "fix": "Aim for a title of about 30 to 60 characters."
    }
  ],
  "score": 99
}
```

The last row of every run is a free `site-summary` row: pages audited, average score, top issues, duplicate titles and descriptions, orphan URLs, URLs missing from the sitemap, the longest redirect chain and, when you use a `historyKey`, the `regression` report. `redirectChain` lists each redirecting URL with its status, in order; the final page's own status is in `status`.

### How to use it

1. Paste one or more start URLs (for example your homepage) and set how many pages to audit.
2. Optional: add a `historyKey` such as `my-site` so the next run shows what changed.
3. Click Start, then download the results as JSON, CSV or Excel from the dataset, or connect them to Google Sheets, Make, Zapier or n8n.

### Input

| Field | What it does | Default |
|---|---|---|
| `startUrls` | 1 to 50 http or https URLs to start from. Invalid entries are dropped. | required |
| `maxPages` | HTML pages to audit and bill (1 to 5000), also capped by your maximum cost per run. | 10 |
| `useSitemap` | Read robots.txt Sitemap lines and `/sitemap.xml`; needed for the sitemap checks. | true |
| `followLinks` | Off: audit only the start URLs and sitemap URLs. | true |
| `includeSubdomains` | Also crawl subdomains. `www` is always the same host. | false |
| `excludeUrlPatterns` | Up to 50 regular expressions; matching URLs are not crawled. | none |
| `respectRobotsTxt` | Skip URLs that robots.txt disallows (free rows). | true |
| `maxRequestsPerSecond` | Crawl speed, 1 to 20. | 5 |
| `historyKey` | Name of this audit (letters, digits, `-`, `_`). Enables the diff. | none |
| `failOnRegression` | With a `historyKey`: end the run as failed when new issues, status changes or newly noindexed pages appear. Results are still saved and charged. | false |

### Pricing

$3 per 1,000 audited pages ($0.003 each). You are charged for HTML pages that were fetched and audited. Redirects, error pages (404, 5xx), files, robots-blocked and skipped URLs are free. Set a maximum cost per run and the crawl never fetches more pages than that budget can pay for.

### Limitations

- Version 1 reads the HTML the server returns. It does not run JavaScript, so a page that builds its content in the browser is audited as served.
- Sites that answer 403, 429 or 503 (bot protection) end the run with a free `site-summary` row with status `blocked`.
- Title, description and word-count rules are advice, not guarantees of ranking.
- Orphan URLs are judged among the pages crawled, and are not reported when the crawl stopped at the page cap. History comparisons are most useful when each run covers the same pages, so keep `maxPages` and the start URLs the same.
- A redirect to another host is a free row; the other host is not crawled. A redirect inside the site is a free row, and the page it leads to is audited and charged once.
- Start URLs on localhost, private or internal addresses are refused. Sitemaps are read one index level deep.
- A crawl stops about 3 minutes before the run timeout and still delivers and charges every page it audited (`stoppedReason: "time_limit"`).
- The Apify test account cannot use the named history store: the audit still runs and the summary says "history store unavailable".

### FAQ

**How do I get a diff?** Use the same `historyKey` on every run. The first run saves a snapshot; later runs fill `regression` in the `site-summary` row.

**Can I fail a CI job on regressions?** Set `failOnRegression` and call the Actor through the Apify API or schedule; a run with new issues ends as FAILED with the message `regression: N new issue(s)`.

**Which formats?** The dataset exports JSON, CSV and Excel natively.

**Does it respect robots.txt?** Yes by default; turn it off only for sites you own.

### Changelog

- 2026-11-09: first version.

# Actor input Schema

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

Pages to start from (1 to 50 http or https URLs). Invalid entries are dropped.

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

HTML pages to audit and bill (1 to 5000). Also capped by the maximum cost per run you set.

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

Read robots.txt Sitemap lines and /sitemap.xml to find pages and to report orphan and missing sitemap URLs.

## `followLinks` (type: `boolean`):

Off: audit only the start URLs and the sitemap URLs.

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

Also crawl subdomains of the start hosts. www is always treated as the same host.

## `excludeUrlPatterns` (type: `array`):

Regular expressions (at most 50). URLs that match are not crawled.

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

Disallowed URLs are skipped and reported as free rows.

## `maxRequestsPerSecond` (type: `integer`):

Crawl speed, 1 to 20. Lower it for fragile sites.

## `historyKey` (type: `string`):

A name for this audit (letters, digits, - and \_). The next run with the same name reports what changed since this one.

## `failOnRegression` (type: `boolean`):

With a history key: end the run as failed when new issues, status changes or newly noindexed pages appear. Results are still saved.

## Actor input object example

```json
{
  "startUrls": [
    "https://crawlee.dev"
  ],
  "maxPages": 10,
  "useSitemap": true,
  "followLinks": true,
  "includeSubdomains": false,
  "excludeUrlPatterns": [],
  "respectRobotsTxt": true,
  "maxRequestsPerSecond": 5,
  "failOnRegression": false
}
```

# Actor output Schema

## `pages` (type: `string`):

One row per crawled page with issues and a score, plus a final site-summary row.

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

Pages audited, free pages, average score, regression and stop reason.

# 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://crawlee.dev"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fulox/website-seo-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": ["https://crawlee.dev"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fulox/website-seo-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/9gyblr1aE9170bevA/builds/v8bb3948WuNPYIhnC/openapi.json
