# Website SEO Audit – Site Crawler, Broken Links, Core Web Vitals (`oldjard/website-seo-audit`) Actor

Crawl a website and get a 0-100 SEO score per page with every issue and its fix: titles, meta, headings, canonicals, hreflang, redirects, every broken link and image, schema, Core Web Vitals and WCAG accessibility (axe-core). Site summary plus a shareable HTML report. Error pages are free.

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

## Pricing

from $8.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 – Site Crawler, Broken Links, Core Web Vitals

Crawl a website and get a **0-100 SEO score for every page**, every issue behind it with a fix, and a site summary
you can hand to a client. Technical SEO, on-page SEO, broken links, Core Web Vitals and accessibility in one run.

- **Every page scored** on nine categories: meta tags, headings, content, technical, structured data, links, images,
  performance and accessibility. Each issue has an ID, a severity, the page's own figures and a fix hint.
- **Every link and image checked**, not a sample: each unique URL once per run (HEAD, then GET when a server refuses
  HEAD), internal and external. Broken links, broken and oversized images, links to redirects.
- **Cross-page checks done right:** duplicate titles, descriptions and content are flagged on every page of a
  group; canonicals are followed to their target (broken, redirecting, noindex or blocked?); hreflang return links
  are checked between pages; each page is checked against the XML sitemap.
- **Core Web Vitals in Chrome:** LCP, CLS, FCP, Total Blocking Time, page weight and render-blocking files, plus what
  only JavaScript changes (titles, canonicals, robots tags, content that is missing from the server HTML).
- **Accessibility with axe-core:** WCAG 2.1 A and AA rules (contrast, link and button names, labels, ARIA).
- **A shareable HTML report** per run: site score, issues ranked by pages affected with the fix, every page with
  its score. Open it, print it to PDF or send it.
- **AI-search ready:** robots.txt access for OAI-SearchBot, Claude-SearchBot, PerplexityBot and the AI training
  crawlers, and whether the site has an `llms.txt`.
- **You pay only for pages audited.** Error pages, redirects, pages robots.txt blocks, bot walls and every link
  check are free.

**Try it:** the input is prefilled with a small test site and 10 pages. Click Start; the audit is ready in about a
minute.

### How to audit a website

1. Add the site's home page (or any start page) under **Websites to audit**. Several sites in one run work too.
2. Set **Max pages per site**: 10 for a quick look, 50 for a standard audit, 500+ for a deep one.
3. Click **Start**. When the run finishes, open the **HTML report** from the Output tab, or the **Page audits** table.

To audit a list of pages instead of crawling (landing pages, a sitemap export), paste them all and turn off
**Follow links**.

### What gets checked

| Category | Checks |
|---|---|
| **Meta tags** | Title and description: missing, empty, too long or short in characters *and* pixels (as Google draws them), more than one, duplicated across the site. Open Graph and Twitter/X cards, viewport, `lang`, charset, favicon. |
| **Headings** | H1 missing, empty or repeated; skipped levels (H2 → H4); empty headings; long pages without subheadings. The full outline with each heading's text (words split at `<br>` stay split). |
| **Content** | Word count of the main content (navigation, header, footer, sidebars and cookie banners left out), thin pages, duplicate content across the site, Flesch reading ease (English), top keywords with density, text-to-HTML ratio, placeholder text. |
| **Technical** | HTTP status, every redirect hop with its code (chains, temporary redirects, meta refresh, JavaScript redirects), noindex/nofollow from meta tags and `X-Robots-Tag` (per bot), canonical (missing, relative, outside `<head>`, conflicting with the Link header, and its target's status), hreflang (ISO codes, self-reference, x-default, return links, broken targets), HTTPS, mixed content, HSTS, compression, HTML size, server response time, URL hygiene, click depth, robots.txt rules for Googlebot and Bingbot, sitemap membership, AI crawler access. |
| **Structured data** | JSON-LD (parse errors with the parser's message), microdata and RDFa types, and the properties Google requires for each rich result (Product, Recipe, Event, FAQ, JobPosting, Breadcrumb, Video, Review, LocalBusiness and more). |
| **Links** | Internal and external counts, in navigation, footer or content; nofollow; broken internal and external links; links to redirects; links without `href` that crawlers cannot follow; non-descriptive text ("click here"); links to `http://` pages; dead-end pages. |
| **Images** | Missing alt text (decorative `alt=""` counted apart), broken images, images over 200 KB, missing width/height (layout shift), JPEG/PNG where WebP or AVIF would be smaller, lazy loading. |
| **Performance** | Largest Contentful Paint, Cumulative Layout Shift, First Contentful Paint, Total Blocking Time, load times, page weight, request count, render-blocking files, the largest files. Scored on Google's thresholds. |
| **Accessibility** | axe-core WCAG 2.1 A/AA violations with the number of elements, examples and a link to the fix. Without Chrome: link and button names, form labels, zoom blocking, duplicate ids, positive tabindex. |

### What you get

**One row per page** in the dataset. The table view shows the score, HTTP status, issue counts, title, description
length, H1, word count, broken links, images without alt, LCP, CLS and the top issues. Every row also holds the full
detail:

```json
{
  "url": "https://example.com/pricing",
  "statusCode": 200,
  "indexable": true,
  "score": 78,
  "categoryScores": { "meta": 76, "headings": 100, "content": 88, "technical": 84, "schema": 96, "links": 70, "images": 88, "performance": 100, "accessibility": 88 },
  "criticalIssues": 1, "warnings": 3, "notices": 4,
  "issues": [
    { "id": "BROKEN_INTERNAL_LINKS", "severity": "critical", "category": "links",
      "message": "1 broken internal link: https://example.com/old-plans (HTTP 404)",
      "fixHint": "Fix or remove links to pages that return 4xx/5xx; they waste crawl budget and frustrate visitors." },
    { "id": "TITLE_TOO_LONG", "severity": "warning", "category": "meta",
      "message": "Title is 68 characters (~612 px); optimal 30-60",
      "fixHint": "Shorten the title to 30-60 characters (under ~600 px) so Google shows it without cutting it off." }
  ],
  "meta": { "title": { "value": "…", "length": 68, "pixels": 612, "unique": true }, "canonical": { "href": "…" }, "robots": { "noindex": false } },
  "headings": { "counts": { "h1": 1, "h2": 6 }, "outline": [{ "level": 1, "text": "Pricing" }] },
  "content": { "wordCount": 812, "readability": { "score": 61, "level": "Standard" }, "topKeywords": [] },
  "technical": { "redirects": [], "hreflang": {}, "structuredData": { "types": ["Product"], "richResults": [] }, "inSitemap": true },
  "links": { "internal": { "count": 48 }, "broken": [{ "url": "https://example.com/old-plans", "status": 404 }] },
  "images": { "total": 12, "missingAlt": 1, "broken": 0, "large": 2 },
  "performance": { "largestContentfulPaintMs": 1840, "cumulativeLayoutShift": 0.02, "totalBlockingTimeMs": 120 },
  "accessibility": { "engine": "axe-core 4.14.1", "violations": [] }
}
```

**The run's OUTPUT record** has one summary per site: average score, category averages, score distribution, every
issue ranked by how many pages it hits (with those pages), crawl coverage (indexable, noindex, canonicalised, 4xx,
5xx, skipped by robots.txt), robots.txt, sitemaps, llms.txt and AI crawler access.

**The REPORT record** is the same as a one-page HTML report (link in the Output tab).

### Scoring

Each category starts at 100 and loses 30 points per critical issue, 12 per warning and 4 per notice (an issue
counts once per page, however many elements it hits). The page score is the average of its categories. Every point
lost comes with the issue that says why, so the score moves when you fix things.

| Score | Reading |
|---|---|
| 80-100 | Excellent |
| 60-79 | Good |
| 40-59 | Needs improvement |
| 0-39 | Poor |

### How much does it cost?

**$8 per 1,000 pages audited** ($0.008 a page), plus Apify's tiny start fee. A 50-page audit is $0.40.

- Only pages that answer with HTML and a 2xx status are charged. **Free:** 404 and 500 pages, redirects, pages
  robots.txt blocks, bot walls, logins, and all link and image checks. They are still reported.
- **Max pages per site** is your cost control. The run also never goes past the maximum cost you set for it: it
  audits only the pages that cost allows.

### Good to know

- **Polite crawling.** robots.txt is honoured for every page and every redirect hop, with its Crawl-delay; at most
  4 requests at a time per site, 150 ms apart; it backs off when a site answers 429. It identifies itself as
  `SEOAuditBot`. Public pages only: no logins, no paywalls.
- **Same site only.** A start URL that redirects (`example.com` → `www.example.com`) is crawled on the site it lands
  on. Turn on **Include subdomains** to add `blog.example.com` and the like.
- **Link checks** cover each unique URL once per run: internal links first, then images, then external links, up to
  40 per page audited and `maxLinkChecks` per run. A server that refuses all our checks (401, 403, 429) leaves its
  links "unverified", not "broken", so a bot wall is never reported as broken links.
- **Performance numbers are lab measurements** from one desktop Chrome (1920x1080) in the cloud, one page per CPU
  core. They show trends and outliers; they are not field data from real users (CrUX) and will differ from
  PageSpeed Insights. Give the run 4 GB of memory for faster, steadier numbers on big sites.
- **Accessibility checks** cover what automated rules can see (about a third of WCAG). A page that passes still
  needs a human review.
- **Sites behind a bot wall** (Cloudflare challenge, DataDome and similar) cannot be audited; the run says so and
  charges nothing for them.

### FAQ

**Does it render JavaScript?** Yes, with the Chrome checks on (default). It audits the HTML the server sends (what
every search engine and AI crawler reads first) and reports what JavaScript changes after it.

**Can I audit only some sections?** Use **Only URLs containing** (`/blog/`) or **Skip URLs containing** (`/tag/`,
or a regular expression in slashes).

**Can I run it on a schedule?** Yes: save the input as a task and schedule it in Apify. Compare runs to see what
changed.

**Can I use it from an AI agent or my own code?** Yes: through the Apify API or MCP server. Every issue has a stable
`id`, so results are easy to filter and diff.

# Actor input Schema

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

One or more start pages. Each site is crawled from its start page (same site only). An address without https:// is read as https://. To audit just a list of pages, add them all here and turn off "Follow links".

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

Pages audited per site, start page included. This is your cost control: you pay per page audited. Error pages and redirects are reported free and do not count.

## `crawlLinks` (type: `boolean`):

Follow internal links to find pages. Off: audit only the start URLs.

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

Read the sitemaps listed in robots.txt (or /sitemap.xml): pages only the sitemap lists are crawled after linked ones, and each page is checked against it (in the sitemap but noindex, or indexable but missing).

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

Also crawl subdomains of the start page (blog.example.com when starting at example.com).

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

Substrings ("/tag/") or regular expressions in slashes ("//page/\d+/"). Useful to keep archive, tag or search pages out of the crawl.

## `includeUrlPatterns` (type: `array`):

If set, only pages matching one of these are crawled (e.g. "/blog/"). Same syntax as above.

## `ignoreQueryStrings` (type: `boolean`):

Treat example.com/page?sort=price and example.com/page as one page.

## `browserChecks` (type: `boolean`):

Load each page in headless Chrome to measure LCP, CLS, FCP, Total Blocking Time, page weight and render-blocking files, and to catch titles, canonicals, robots tags and content that only JavaScript adds. Off: faster, HTML-only audit.

## `accessibilityChecks` (type: `boolean`):

Run axe-core's WCAG 2.1 A and AA rules on each page (contrast, link and button names, labels, ARIA). Needs the Chrome checks above.

## `checkLinks` (type: `boolean`):

Verify every link and image found (HEAD, then GET when a server refuses HEAD), once per run: broken links, broken and oversized images, links to redirects.

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

Also verify links to other sites. robots.txt of each site is honoured.

## `maxLinkChecks` (type: `integer`):

Each unique URL is checked once, however many pages link to it: internal links first, then images, then external links. Up to 40 checks per page audited, and never more than this number per run.

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

The crawler also keeps to 3 requests at a time per site, 250 ms apart, and to the site's Crawl-delay.

## `htmlReport` (type: `boolean`):

Save a one-page HTML report (REPORT in the key-value store) you can open, print to PDF or send to a client.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://books.toscrape.com/"
    }
  ],
  "maxPages": 10,
  "crawlLinks": true,
  "useSitemap": true,
  "includeSubdomains": false,
  "ignoreQueryStrings": false,
  "browserChecks": true,
  "accessibilityChecks": true,
  "checkLinks": true,
  "checkExternalLinks": true,
  "maxLinkChecks": 2000,
  "maxConcurrency": 5,
  "htmlReport": true
}
```

# Actor output Schema

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

One page per run you can open, print or send to a client: site score, issues ranked by pages affected with the fix for each, and every page with its score.

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

Score, category scores, every issue with its fix hint, and the full detail behind each check.

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

Per site: average score, category averages, issues ranked by pages affected, crawl coverage, robots.txt, sitemaps, llms.txt and AI crawler access.

# 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/"
        }
    ],
    "maxPages": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("oldjard/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": [{ "url": "https://books.toscrape.com/" }],
    "maxPages": 10,
}

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

```

## MCP server setup

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