# Website SEO Audit: Broken Links, Meta Tags & Sitemap Checker (`datasetworks/website-seo-audit`) Actor

Crawl any website and get a page-by-page SEO audit: broken links, titles, meta descriptions, H1s, canonicals, noindex, redirects, sitemap coverage, alt text, thin content and speed. Respects robots.txt.

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

## Pricing

$2.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 Links, Meta Tags & Sitemap Checker

**Crawl any website and get a page-by-page SEO audit in one clean table: broken links, titles, meta descriptions, H1s, canonicals, noindex, redirects, sitemap coverage, missing alt text, thin content and slow pages.**

Give it one or more websites. It reads the site's robots.txt and XML sitemap, crawls up to your page limit, checks every link it finds, and returns one row per page with the measurements and a plain list of issues.

### Sample output

| url | statusCode | titleLength | h1Count | brokenLinkCount | issues |
| --- | --- | --- | --- | --- | --- |
| https://crawler-test.com/ | 200 | 17 | 1 | 29 | meta_description_too_short, missing_canonical, missing_lang, missing_viewport, broken_links |
| https://books.toscrape.com/ | 200 | 40 | 1 | 0 | duplicate_title, missing_meta_description, missing_canonical |
| https://apify.com/alternatives | 200 | 20 | 2 | 0 | multiple_h1 |

Each row also has `finalUrl`, `redirected`, `responseMs`, `contentType`, `title`, `metaDescription`, `h1`, `h2Count`, `canonical`, `metaRobots`, `xRobotsTag`, `lang`, `hasViewport`, `ogTitle`, `ogImage`, `hreflang`, `structuredDataTypes` (JSON-LD types), `imagesTotal`, `imagesMissingAlt`, `wordCount`, `internalLinks`, `externalLinks`, `nofollowLinks`, `brokenLinks` (URL, status, internal or external), `unverifiedLinkCount`, `inSitemap`, `depth` and `auditedAt`.

A per-site summary (pages audited, sitemap URL count, links checked, broken links, issue counts) is saved in the run's key-value store as `SUMMARY`.

#### Issues it flags

`missing_title`, `title_too_long` (over 60 characters), `title_too_short`, `duplicate_title`, `missing_meta_description`, `meta_description_too_long` (over 160), `meta_description_too_short`, `duplicate_meta_description`, `missing_h1`, `multiple_h1`, `missing_canonical`, `canonical_points_elsewhere`, `noindex`, `missing_lang`, `missing_viewport`, `images_missing_alt`, `thin_content` (under 200 words), `slow_response` (over 3 s), `not_https`, `not_in_sitemap`, `redirects`, `broken_links`, `http_404` and other error codes.

### How to use

1. Add websites, e.g. `example.com` or `https://example.com/blog/`.
2. Set **Max pages per site** (default 25).
3. Run, then export as CSV, Excel or JSON, or call it via the API. Sort by `issueCount` to see the worst pages first.

### Use cases

- **SEO audits** for clients or your own sites, on a schedule.
- **Broken link monitoring:** find 404s and dead outbound links before users do.
- **Site migrations:** check redirects, canonicals and sitemap coverage after a launch.
- **Content QA:** find duplicate titles, thin pages and images without alt text.
- **AI agents:** let an agent audit a site and propose fixes from structured data.

### Pricing

**$2 per 1,000 pages audited** ($0.002 per page). Link checks, the sitemap read and the site summary are free. Platform usage is included.

### For AI agents

Call it via the Apify API or MCP server with `{"websites": ["example.com"], "maxPagesPerSite": 20}`. Every row has the same fields, and `issues` is a list of fixed codes an agent can act on directly.

### Data and responsibility

The tool identifies itself as DatasetWorksBot, follows robots.txt (including crawl-delay), waits at least half a second between pages on the same site, and only reads public pages. It never logs in or bypasses blocks. Links that another site refuses to let a bot check (403, 429 and similar) are counted as `unverifiedLinkCount`, not reported as broken. It records page-level SEO facts only: no personal data, emails or phone numbers. Pages are read as HTML without running JavaScript, so content added only by scripts is not seen.

### Support

Found a false positive or want another check added? Open an issue on this page and we'll reply within one working day.

Built and maintained by **Dataset Works**.

# Actor input Schema

## `websites` (type: `array`):

Domains or start URLs to audit, e.g. example.com or https://example.com/blog/. Each site is crawled from this URL plus its XML sitemap.

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

How many pages to audit on each website. You pay per page audited.

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

Read the site's sitemap (from robots.txt or /sitemap.xml) to find pages and flag pages missing from it.

## `checkBrokenLinks` (type: `boolean`):

Check every link found on audited pages and report the ones returning errors (4xx/5xx or unreachable). Link checks are free.

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

Also check outbound links to other domains.

## `maxLinkChecksPerSite` (type: `integer`):

Upper limit on links checked per website (pages already crawled are not re-checked).

## Actor input object example

```json
{
  "websites": [
    "apify.com"
  ],
  "maxPagesPerSite": 10,
  "useSitemap": true,
  "checkBrokenLinks": true,
  "checkExternalLinks": true,
  "maxLinkChecksPerSite": 300
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "websites": [
        "apify.com"
    ],
    "maxPagesPerSite": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datasetworks/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 = {
    "websites": ["apify.com"],
    "maxPagesPerSite": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datasetworks/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 '{
  "websites": [
    "apify.com"
  ],
  "maxPagesPerSite": 10
}' |
apify call datasetworks/website-seo-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datasetworks/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/rdkPNlvAmZcGhZISE/builds/a0FxuxsP76IenExFV/openapi.json
