# SEO Audit & Broken Link Checker: Bulk Website Crawler (`berryish_pillar/seo-site-audit`) Actor

Crawl any website (sitemap + links), audit every page for 25 technical SEO issues (titles, meta descriptions, H1, canonical, noindex, alt text, speed, mixed content, structured data) and find broken links. 0-100 score per page, site summary and HTML report. $3 per 1,000 pages.

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

## SEO Site Audit & Broken Link Checker: technical SEO score for every page

Give it a website. It finds pages through the **sitemap** and **internal links**, audits each page for **25 technical SEO issues**, checks **broken links**, and gives every page a **0–100 score**. You get a row per page (JSON, CSV, Excel), a site summary, and a one-page **HTML report** you can send to a client.

**$3 per 1,000 pages.** That's about **13× cheaper** than the popular per-page SEO audit Actors on the Store (around $0.04 per page). No API keys, no browser, no proxies.

### What does it check?

| Area | Checks |
|---|---|
| Titles & descriptions | missing, too long (>60 / >160 chars), too short, **duplicates across the site** |
| Headings | missing H1, multiple H1, H2 count |
| Indexing | noindex / nofollow (meta and X-Robots-Tag), canonical missing or pointing elsewhere, in sitemap or not, hreflang count |
| Links | **broken internal links** (4xx/5xx) reported on the page that contains them, optional external link checking, redirect chains |
| Mobile & accessibility | viewport tag, `<html lang>`, images missing alt text |
| Content | word count (thin content < 200 words), HTML size |
| Performance & security | server response time (> 1.5 s flagged), HTTP errors, mixed content on HTTPS pages |
| Social & rich results | Open Graph title/image, Twitter card, JSON-LD structured data types |

Each page gets `issues` (code, severity, message) and a `score` from 0 to 100. The site summary in `RUN_SUMMARY` has the average score, issue counts, every broken link target, duplicate titles and pages missing from the sitemap. `REPORT` is the same thing as a readable HTML page.

### Who uses this?

- **SEO agencies and freelancers** running monthly audits for many client sites at a fraction of the cost of SaaS seats.
- **Developers and site owners** checking a release for broken links, noindex mistakes and missing tags (schedule it or call it from CI via the API).
- **Lead-gen teams** auditing prospects' websites to open a sales conversation with concrete issues.
- **AI agents** that need structured, machine-readable SEO data.

### How to use it

1. Add one or more websites to **Websites to audit**.
2. Set **Max pages per site** (you pay per audited page).
3. Click **Start**. Open the **Pages** or **Broken links** tab, download the dataset, or open the `REPORT` record in the key-value store.

#### Input example

```json
{
  "startUrls": [{ "url": "https://books.toscrape.com" }],
  "maxPagesPerSite": 100,
  "useSitemaps": true,
  "followLinks": true,
  "checkBrokenLinks": true,
  "checkExternalLinks": false,
  "onlyPagesWithIssues": false
}
```

#### Output example (one page)

```json
{
  "site": "books.toscrape.com",
  "url": "https://books.toscrape.com/catalogue/category/books/religion_12/index.html",
  "statusCode": 200,
  "responseTimeMs": 244,
  "title": "Religion | Books to Scrape - Sandbox",
  "titleLength": 36,
  "metaDescription": null,
  "h1": ["Religion"],
  "h1Count": 1,
  "canonical": null,
  "isNoindex": false,
  "lang": "en-us",
  "hasViewport": true,
  "wordCount": 179,
  "imagesMissingAlt": 0,
  "hasMixedContent": true,
  "brokenLinks": [],
  "issueCodes": ["missing_meta_description", "missing_canonical", "thin_content", "missing_og_tags", "no_structured_data", "mixed_content"],
  "issues": [{ "code": "missing_meta_description", "severity": "warning", "message": "Missing meta description" }],
  "score": 80
}
```

### How much does it cost?

Pay per event:

| Event | Price |
|---|---|
| Page audited | $0.003 ($3 per 1,000 pages) |

Link checks, sitemap reads and robots.txt requests are **free**. Pages skipped by **Only output pages with issues** are free. Examples: a 100-page site costs **$0.30**; a 2,000-page site costs **$6**. Set **Maximum cost per run** in run options and the Actor stops cleanly at that amount.

### Tips and limits

- It reads the HTML the server sends. Pages that render all content with JavaScript (some single-page apps) will show low word counts and missing tags. Server-side rendering is also what most search engines see first.
- It's polite by default: robots.txt is respected, 2 requests per second per host, Crawl-delay honoured. If you're auditing **your own** site you may raise the rate or turn off robots.txt.
- Response time is server response time for the HTML only, not a Lighthouse/Core Web Vitals score.
- Use **Exclude URLs matching** to skip faceted or paginated URLs (for example `\?sort=`).

### Is it legal? Responsible use

The Actor fetches publicly available pages the way a search engine crawler does, identifies itself with a clear user agent, respects robots.txt and rate-limits itself. It doesn't log in or bypass any protection. Only audit sites you own or are allowed to crawl, and follow each site's terms.

### FAQ

**Does it render JavaScript?** No, it's an HTTP crawler, which keeps it fast and cheap.

**Can I schedule it?** Yes. Create a Task with your sites and add a Schedule; compare scores over time from the dataset.

**Found a false positive or want another check?** Open an issue on the Actor page.

# Actor input Schema

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

Homepage or any start URL per site. A bare domain (example.com) is fetched over HTTPS. The crawl stays on the same domain (www and non-www count as the same site).

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

How many HTML pages to audit per site. You pay per audited page.

## `maxPagesTotal` (type: `integer`):

Stop after this many pages across all sites. 0 = no limit.

## `useSitemaps` (type: `boolean`):

Read sitemaps listed in robots.txt (or /sitemap.xml), including sitemap indexes and .gz files, to find pages.

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

Discover pages by following links on the same site.

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

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

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

Optional regular expressions. Matching URLs are not crawled, e.g. /tag/ or ?page=

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

Check the status of internal link targets that weren't crawled, so broken links are reported on the page that contains them.

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

Check outgoing links to other domains too (HEAD request, robots.txt respected).

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

Cap on extra status checks for link targets per site (most-linked first). Not charged.

## `onlyPagesWithIssues` (type: `boolean`):

Skip pages with a perfect score (you are not charged for skipped pages).

## `includeLinkLists` (type: `boolean`):

Add internalLinks and externalLinks arrays (up to 500 each) to every row. Bigger output.

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

Parallel requests per site.

## `maxConcurrentSites` (type: `integer`):

Sites in parallel.

## `maxRequestsPerSecondPerHost` (type: `number`):

Politeness cap. A stricter robots.txt Crawl-delay wins.

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

Skip URLs that robots.txt disallows. Leave on unless you are auditing your own site.

## `siteTimeoutSecs` (type: `integer`):

Timeout per site (seconds).

## `maxRetries` (type: `integer`):

Max retries per request.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://books.toscrape.com"
    }
  ],
  "maxPagesPerSite": 50,
  "maxPagesTotal": 0,
  "useSitemaps": true,
  "followLinks": true,
  "maxDepth": 10,
  "checkBrokenLinks": true,
  "checkExternalLinks": false,
  "maxLinkChecksPerSite": 300,
  "onlyPagesWithIssues": false,
  "includeLinkLists": false,
  "maxConcurrency": 4,
  "maxConcurrentSites": 2,
  "maxRequestsPerSecondPerHost": 2,
  "respectRobotsTxt": true,
  "siteTimeoutSecs": 1800,
  "maxRetries": 2
}
```

# Actor output Schema

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

No description

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

// Run the Actor and wait for it to finish
const run = await client.actor("berryish_pillar/seo-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://books.toscrape.com" }],
    "maxPagesPerSite": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("berryish_pillar/seo-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://books.toscrape.com"
    }
  ],
  "maxPagesPerSite": 50
}' |
apify call berryish_pillar/seo-site-audit --silent --output-dataset

```

## MCP server setup

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