# SEO Site Auditor — On-Page Analysis, Broken Links & Scores (`igor_nersisian/seo-site-auditor`) Actor

Crawl a website and audit every page: title and meta checks, headings, canonical, indexability, Open Graph, structured data, image alt coverage, mixed content, thin content, redirect chains and broken links. Each page gets a 0-100 score, worst pages first.

- **URL**: https://apify.com/igor\_nersisian/seo-site-auditor.md
- **Developed by:** [Igor Nersisian](https://apify.com/igor_nersisian) (community)
- **Categories:** SEO tools, Marketing
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 page audits

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## SEO Site Auditor — Full On-Page Audit with Scores & Broken Link Checker

Crawl any website and get a **complete on-page SEO audit of every page**: a **0–100 SEO score**, a prioritized issue list (errors / warnings / notices), **broken link detection**, meta tag analysis, heading structure, structured data, Open Graph, mobile-readiness and basic performance signals — in clean JSON/CSV you can hand to a client or pipe into a dashboard.

Built for **agencies, freelancers, in-house SEO teams and site owners** who want repeatable, schedulable technical audits without a $100+/mo SaaS subscription.

### What it checks on every page

| Category | Checks |
|---|---|
| **Indexing** | HTTP status, noindex flags, canonical URL, redirect chains |
| **Meta tags** | Title presence & length, meta description presence & length, charset, viewport (mobile) |
| **Content** | H1/H2 structure, word count, thin content detection, text-to-HTML ratio, `lang` attribute |
| **Links** | Internal/external counts, **broken links (404/410/5xx/dead hosts)** — each unique link checked once per run |
| **Media** | Images missing alt text |
| **Social** | Open Graph (og:title/description/image), Twitter card |
| **Structured data** | JSON-LD blocks and their schema.org types |
| **Security** | HTTPS usage, mixed content on secure pages |
| **Performance** | Server response time, HTML document size |

Every issue comes with severity and a human-readable message; every page gets a score, and results are sorted **worst pages first** so you know where to start.

### Input example

```json
{
    "startUrls": ["https://your-website.com"],
    "crawlWebsite": true,
    "maxPages": 100,
    "checkBrokenLinks": true
}
````

### Output example (one page)

```json
{
    "url": "https://your-website.com/pricing",
    "score": 76,
    "statusCode": 200,
    "title": "Pricing",
    "titleLength": 7,
    "metaDescription": null,
    "h1Count": 1,
    "brokenLinkCount": 2,
    "brokenLinks": [{ "url": "https://your-website.com/old-page", "status": 404 }],
    "imagesWithoutAlt": 3,
    "wordCount": 420,
    "jsonLdTypes": ["Organization"],
    "issues": [
        { "severity": "error", "code": "missing-meta-description", "message": "Page has no meta description." },
        { "severity": "error", "code": "broken-links", "message": "2 broken links found on this page." },
        { "severity": "warning", "code": "short-title", "message": "Title is only 7 characters (recommended 30–60)." }
    ]
}
```

### Use cases

- **Client audits & reports** — run once, export CSV, deliver a prioritized fix list.
- **Continuous monitoring** — schedule weekly; diff scores over time and alert on regressions via Apify integrations (Slack, email, webhooks).
- **Pre-launch QA** — catch noindex flags, broken links and missing metas before a site goes live.
- **Migration verification** — crawl after a redesign/replatform and compare against the old baseline.

### Scheduling & integrations

Run on a [schedule](https://docs.apify.com/platform/schedules), export **JSON, CSV, Excel**, or connect **Google Sheets, Zapier, Make, Slack, webhooks** and the [Apify API](https://docs.apify.com/api/v2). MCP-compatible for AI agents.

### FAQ

**Does it render JavaScript?**
No — it audits server-rendered HTML, which is also what search engine crawlers parse first. This keeps audits fast and affordable. JS-only content will show as thin content, which is itself a useful SEO signal.

**How is the score calculated?**
Errors cost 12 points, warnings 6, notices 2, from a base of 100. The formula is consistent across runs, so scores are comparable over time.

**Will it crawl the whole site?**
It follows internal links from your start URLs up to `maxPages`. Subdomains are treated as separate sites (not followed).

# Actor input Schema

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

Pages to audit. With <b>Crawl website</b> enabled, the actor also follows same-domain links from these pages.

## `crawlWebsite` (type: `boolean`):

Follow internal links from the start URLs and audit every discovered page (up to <b>Max pages</b>). Disable to audit only the exact URLs provided.

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

Maximum number of pages to audit per run.

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

Verify every internal link found on audited pages and report dead links (404/410/5xx) per page. Each unique link is checked only once per run.

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

Extend the broken-link check to external (outbound) links. Slower on link-heavy sites.

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

Proxy for requests. Apify Proxy (automatic) is recommended for reliable crawling.

## Actor input object example

```json
{
  "startUrls": [
    "https://example.com"
  ],
  "crawlWebsite": true,
  "maxPages": 50,
  "checkBrokenLinks": true,
  "checkExternalLinks": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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://example.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("igor_nersisian/seo-site-auditor").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://example.com"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("igor_nersisian/seo-site-auditor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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://example.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call igor_nersisian/seo-site-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=igor_nersisian/seo-site-auditor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "SEO Site Auditor — On-Page Analysis, Broken Links & Scores",
        "description": "Crawl a website and audit every page: title and meta checks, headings, canonical, indexability, Open Graph, structured data, image alt coverage, mixed content, thin content, redirect chains and broken links. Each page gets a 0-100 score, worst pages first.",
        "version": "0.1",
        "x-build-id": "LtOpJLrGoXFNYJE3O"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/igor_nersisian~seo-site-auditor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-igor_nersisian-seo-site-auditor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/igor_nersisian~seo-site-auditor/runs": {
            "post": {
                "operationId": "runs-sync-igor_nersisian-seo-site-auditor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/igor_nersisian~seo-site-auditor/run-sync": {
            "post": {
                "operationId": "run-sync-igor_nersisian-seo-site-auditor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Pages to audit. With <b>Crawl website</b> enabled, the actor also follows same-domain links from these pages.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "crawlWebsite": {
                        "title": "Crawl website",
                        "type": "boolean",
                        "description": "Follow internal links from the start URLs and audit every discovered page (up to <b>Max pages</b>). Disable to audit only the exact URLs provided.",
                        "default": true
                    },
                    "maxPages": {
                        "title": "Max pages",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of pages to audit per run.",
                        "default": 50
                    },
                    "checkBrokenLinks": {
                        "title": "Check for broken links",
                        "type": "boolean",
                        "description": "Verify every internal link found on audited pages and report dead links (404/410/5xx) per page. Each unique link is checked only once per run.",
                        "default": true
                    },
                    "checkExternalLinks": {
                        "title": "Also check external links",
                        "type": "boolean",
                        "description": "Extend the broken-link check to external (outbound) links. Slower on link-heavy sites.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy for requests. Apify Proxy (automatic) is recommended for reliable crawling.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
