# SEO Site Audit: Technical and On-Page Checker (`ledgerwright/seo-site-audit`) Actor

Crawl a website and get every on-page and technical SEO issue with the evidence and a plain fix: broken links, redirects, titles, descriptions, headings, canonicals, hreflang, sitemap gaps and more. Returns a shareable report, a CSV issue list and one row per URL.

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

## SEO Site Audit: Technical and On-Page Checker

Point it at a website and get a prioritized list of what is holding the site back in search: broken pages and links, redirect chains, missing or duplicated titles and descriptions, canonical and hreflang mistakes, sitemap gaps, thin or duplicated content, and more.

Every finding names the URLs involved, shows the evidence, and gives a one-line fix. More than 60 checks run on every audit.

### What you get

| Output | Where | Use it for |
|---|---|---|
| **Audit report** | Key-value store, record `REPORT_HTML` (a web page you can open, print or save as PDF) and `REPORT` (Markdown) | Reading, sending to a client, pasting into a ticket |
| **All URLs** | Dataset, one row per URL | Sorting and filtering in a spreadsheet: status, indexability, score, title, description, H1, canonical, word count, response time, inlinks, depth, issues |
| **Issue list** | Key-value store, records `ISSUES_CSV` and `ISSUES` (JSON) | One row per issue per URL, ready for a spreadsheet or a tracker |
| **Summary** | Key-value store, record `SUMMARY` (JSON) | Dashboards and scheduled comparisons |

The report opens with a site score, the few things to read first, site-wide findings, issues by priority with example URLs, and the pages to fix first.

### What it checks

| Area | Checks |
|---|---|
| Status and redirects | 4xx and 5xx pages, failed requests, redirect chains and loops, temporary redirects, redirects that end at an error. Refused (401, 403) and rate-limited (429) URLs are listed separately |
| Titles and descriptions | Missing, more than one, shared between pages, very short, too long |
| Headings | Missing H1, several H1s, H1 shared between pages, skipped heading levels |
| Indexability | Noindex pages, canonical missing, duplicated, relative, outside the head, or pointing at a page that is broken or cannot be indexed, URLs blocked by robots.txt |
| Content | Thin pages, pages with identical body text, pages that look client-rendered |
| Links | Broken internal links, internal links that pass through redirects, links with no anchor text, broken outbound links (optional) |
| Sitemap | Indexable pages missing from the sitemap, pages found only in the sitemap, sitemap entries that redirect, fail or are noindex |
| Hreflang | Invalid values, missing return links, missing self-reference |
| Structured data and sharing | JSON-LD that does not parse, missing Open Graph title or image |
| Page basics | Language attribute, viewport, character encoding, meta refresh, mixed content, pages served over HTTP, slow responses, HTML over 500 KB, images without alt, long or uppercase URLs |
| Whole site | robots.txt missing or blocking everything, sitemap missing or not referenced, HTTP not redirecting to HTTPS, www and non-www not resolving to one address, missing pages that return 200, HSTS, favicon |

### How to use it

1. Put the site's address in **Website to audit**.
2. Set **Maximum pages**. You pay per page audited, so this is also your spending cap.
3. Start the run. When it finishes, open the **Audit report** from the Output tab.

A 100-page site usually takes under a minute.

### Input

| Field | Default | Notes |
|---|---|---|
| Website to audit | | The first URL decides which site is audited |
| Maximum pages | 100 | 1 to 2,000 per run |
| Scope | Same site | The host with and without `www`. Choose "same domain" to include subdomains |
| Use the XML sitemap | On | Finds pages and enables the sitemap checks |
| Respect robots.txt | On | Blocked URLs are listed, not fetched |
| Check outbound links | Off | Also tests external links and linked files. Slower |
| Skip URLs containing | | Plain text or a `/regular expression/` |
| Parallel requests, requests per minute | 5, 300 | Lower them for small servers |
| User agent | `LedgerwrightSiteAudit` | Set your own if the site blocks unknown crawlers |

### Output example

One dataset row, shortened:

```json
{
  "type": "page",
  "url": "https://example.com/blog/archive",
  "status": 200,
  "score": 91,
  "indexability": "indexable",
  "depth": 1,
  "inlinks": 4,
  "inSitemap": true,
  "title": "Archive | Example",
  "titleLength": 17,
  "wordCount": 255,
  "responseMs": 132,
  "issuesCritical": 0,
  "issuesWarning": 0,
  "issuesNotice": 1,
  "issues": [
    {
      "code": "description_short",
      "severity": "notice",
      "issue": "Meta description is very short",
      "details": "7 characters",
      "fix": "Expand it to roughly 70 to 160 characters."
    }
  ]
}
```

Rows with `type` set to `redirect`, `error` or `blocked` describe URLs that are not pages.

### What you pay for

Each HTML page audited is one charged event. Every run also carries Apify's standard start event, a fraction of a cent. Redirects, error URLs, URLs blocked by robots.txt and outbound link checks are not charged. Current prices are on the Pricing tab.

The audit never goes past **Maximum pages**, and it stops earlier if the run's maximum charge would be exceeded.

### Limits worth knowing

- It reads the HTML the server sends and does not run JavaScript. Pages that build their content in the browser are flagged as "looks client-rendered" so you know the findings for them are incomplete.
- Up to 2,000 pages per run.
- No Core Web Vitals, backlinks or keyword rankings.
- A finding is raised only on a clear answer from the server. Timeouts, refusals and rate limits are listed as not checked, never as missing or broken. When a server answers 429 or 503, the audit waits and tries again before recording anything.
- Length limits for titles and descriptions are conventions, not rules. Treat notices as a prompt to look, not as errors.
- Scores sort pages by how much needs fixing. They do not predict rankings.
- When a crawl stops at the page limit, pages found only in the sitemap are not reported as orphans, because the links to them may sit on pages the crawl did not reach.

### Good manners

The crawler identifies itself, follows robots.txt by default and keeps to a modest request rate. Audit sites you own or have permission to test.

### Found a wrong result?

Open an issue on the Issues tab with the URL and what you expected. False positives are fixed first.

# Actor input Schema

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

The address to start from, usually the home page. The first URL sets which site is audited.

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

The audit stops after this many HTML pages. You are charged per page audited, so this is also your spending cap.

## `crawlScope` (type: `string`):

Which hosts count as part of the site.

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

Read the sitemap to find pages and to report pages that are missing from it, orphaned, or listed but not indexable.

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

Skip URLs that robots.txt disallows and report them as blocked. Turn off only for sites you own or are allowed to audit.

## `checkOutboundLinks` (type: `boolean`):

Also request external links and linked files (PDFs, images) to find broken ones. Slower.

## `maxOutboundLinks` (type: `integer`):

Upper limit on outbound links to check.

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

URLs that contain any of these strings are not crawled. Wrap a value in slashes to use a regular expression, for example /?page=\d+/.

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

How many clicks from the start page to follow.

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

Lower this for small or slow servers.

## `maxRequestsPerMinute` (type: `integer`):

Ceiling on request rate, to stay polite to the audited server.

## `stripTrackingParams` (type: `boolean`):

Treat URLs that differ only by utm\_ and similar parameters as the same page.

## `userAgent` (type: `string`):

Leave empty to identify as LedgerwrightSiteAudit. Set your own if the site blocks unknown crawlers.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://crawlee.dev"
    }
  ],
  "maxPages": 25,
  "crawlScope": "same-site",
  "useSitemap": true,
  "respectRobotsTxt": true,
  "checkOutboundLinks": false,
  "maxOutboundLinks": 500,
  "maxDepth": 20,
  "maxConcurrency": 5,
  "maxRequestsPerMinute": 300,
  "stripTrackingParams": true
}
```

# Actor output Schema

## `reportHtml` (type: `string`):

No description

## `urls` (type: `string`):

No description

## `issuesCsv` (type: `string`):

No description

## `report` (type: `string`):

No description

## `issues` (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://crawlee.dev"
        }
    ],
    "maxPages": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("ledgerwright/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://crawlee.dev" }],
    "maxPages": 25,
}

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

```

## MCP server setup

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