# SEO Site Audit Crawler: Technical SEO & Broken Link Checker (`actorfactory/seo-site-audit`) Actor

Technical SEO website audit: crawls any site like a search engine and returns one row per URL with status, redirects, indexability, canonical, title and meta checks, duplicates, hreflang, JSON-LD, orphan pages and broken links. Each issue gets a priority and fix hint. $4 per 1,000 pages.

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

## Pricing

from $2.80 / 1,000 audited pages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Crawler: Technical SEO & Broken Link Checker

Run a **technical SEO site audit** (a full **website audit**) of any website, the way a search engine sees it. This **SEO crawler** follows a site's internal links and XML sitemaps and returns **one flat row per URL** with its HTTP status, **redirect chains**, **indexability** (noindex, canonicals, robots), title and meta description checks, **duplicate titles** and descriptions, headings, word count, schema.org types with **JSON-LD checks**, hreflang, inlinks, crawl depth, **sitemap** coverage and **orphan pages**. It is also a **broken link checker**: every broken internal and external link is listed with the pages that link to it. Each row gets a list of issue codes, each with a priority and a plain-English fix hint, and a 0–100 SEO score, so the dataset works straight away as a site audit report in a spreadsheet, BI tool or AI agent.

HTTP-only (no headless browser), so it is fast and cheap: about **$4 per 1,000 pages**.

### What the SEO site audit returns

One row per audited URL. The main fields (the full list is in the Output tab):

| Field | Description |
|---|---|
| `site` | Site origin, e.g. `https://example.com` |
| `url` / `final_url` | Audited URL and where it ended up after redirects |
| `status_code` / `error` | HTTP status, or a fetch error: `dns_error`, `connection_error`, `timeout`, `too_many_redirects`, `blocked_by_bot_protection`, `body_too_large` |
| `redirect_hops` / `redirect_chain` | Number of redirects and the chain of URLs and statuses |
| `response_time_ms` / `page_size_kb` | Server response time and HTML size |
| `depth` / `found_via` / `inlinks` / `linked_from_sample` | Clicks from the start URL, how the URL was found (`start`, `link`, `sitemap`, `redirect`), internal pages linking to it, and up to 3 of them |
| `in_sitemap` | Whether the URL is listed in the site's XML sitemaps (null when the site has none) |
| `indexable` / `indexability_reason` | Whether search engines can index it, and why not: `noindex`, `canonicalised`, `redirect`, `client_error`, `server_error`, `fetch_error`, `non_html`, `blocked_by_bot_protection` |
| `meta_robots` / `x_robots_tag` | Robots directives from the page and from the HTTP header |
| `canonical_url` / `canonical_type` | Canonical link and whether it points to the page itself or another URL |
| `title`, `title_length`, `duplicate_title_count` | Title tag, length, and how many other audited pages share it |
| `meta_description`, `meta_description_length`, `duplicate_description_count` | Same for the meta description |
| `h1`, `h1_count`, `h2_count`, `word_count` | Headings and visible text size |
| `lang`, `has_viewport`, `hreflang_count`, `hreflang_langs` | Language, mobile viewport, hreflang alternates |
| `og_title`, `og_image`, `twitter_card`, `schema_types` | Social tags and structured data types |
| `structured_data_types`, `structured_data_blocks`, `jsonld_problems` | JSON-LD: the schema.org types detected, how many blocks the page has, and missing required properties (e.g. `Product: missing offers or review or aggregateRating`) |
| `images_count`, `images_missing_alt` | Images and how many have no alt text |
| `broken_resources`, `broken_resource_urls` | Broken images, scripts and stylesheets on the page (when `checkResources` is on) |
| `hreflang_missing_return`, `hreflang_missing_return_urls` | hreflang alternates (crawled in this run) that don't link back to the page; search engines ignore one-way hreflang pairs |
| `mixed_content_count`, `mixed_content_urls` | Insecure `http://` images, scripts, stylesheets, iframes or media on an `https` page (up to 10 URLs listed) |
| `internal_links`, `external_links`, `nofollow_links` | Outgoing link counts |
| `broken_internal_links`, `broken_external_links`, `links_to_redirects`, `broken_link_urls` | Broken links on this page and up to 10 of them with their status |
| `meta_refresh_url` | Target of a meta refresh redirect |
| `issues`, `issue_count`, `top_severity`, `seo_score` | Issue codes (below), worst severity, and a 0–100 score |
| `issue_details` | One `{code, priority, hint}` object per issue: priority is `high`, `medium` or `low` by SEO impact, and the hint says how to fix it |
| `change_type`, `changed_fields` | With `compareWithPreviousRun`: `new`, `changed` or `unchanged` since the last run, and which fields changed |
| `scraped_at` | When the URL was audited |

**Issue codes.** Errors: `http_4xx`, `http_5xx`, `fetch_failed`, `too_many_redirects`, `missing_title`, `broken_internal_links`, `canonical_to_error`. Warnings: `redirect_chain`, `duplicate_title`, `title_too_long`, `title_too_short`, `missing_meta_description`, `duplicate_meta_description`, `missing_h1`, `thin_content`, `images_missing_alt`, `missing_viewport`, `multiple_canonicals`, `canonical_outside_head`, `canonical_to_redirect`, `slow_response`, `meta_refresh`, `broken_external_links`, `noindex_in_sitemap`, `non_200_in_sitemap`, `orphan_page`, `hreflang_invalid`, `js_rendered_suspected`, `mixed_content`, `broken_resources`, `hreflang_missing_return`. Notices: `temporary_redirect`, `links_to_redirects`, `meta_description_too_long`, `meta_description_too_short`, `multiple_h1`, `missing_canonical`, `canonical_relative`, `noindex`, `nofollow_meta`, `missing_lang`, `hreflang_missing_self`, `not_in_sitemap`, `deep_page`, `url_too_long`, `large_html`, `blocked_by_bot_protection`.

**Structured data (JSON-LD) checks.** Added from the HTML already fetched, with no extra requests: `jsonld_invalid` (warning: a block is not valid JSON), `jsonld_missing_type` and `jsonld_missing_context` (notices: an item has no `@type`, or a block has no `@context`) and `jsonld_missing_required` (notice: a common type lacks a commonly required property: Article, NewsArticle and BlogPosting need `headline`; Product needs `name` plus `offers`, `review` or `aggregateRating`; Organization and LocalBusiness need `name`; BreadcrumbList needs `itemListElement`; FAQPage needs `mainEntity`). The check is deliberately lenient and covers only these types. It is not Google's Rich Results test, so a page can pass here and still be ineligible for rich results.

**Site summary.** The run's `OUTPUT` record (Storage → Key-value store) has one summary per site: status-code counts, indexable pages, average score, issue counts, a ranked `top_fixes` list (issue codes ordered by priority × pages affected, with the fix hint), the duplicate title and description groups, every broken link with its source pages, a sample of orphan pages (in the sitemap but not linked), URLs blocked by robots.txt, robots.txt and sitemap details, and why the crawl stopped.

**HTML report.** Every run also saves a shareable one-page report (the `REPORT` record in the key-value store, linked from the Output tab): scores, a top-fixes list, issue counts with priority, fix hints and example URLs, broken links and duplicate titles. Send it to a client or teammate as is.

### How to run a technical SEO audit

1. Add one or more **Start URLs** (a homepage audits the whole site; one site per URL).
2. Set **Max pages per site** (default 500).
3. Run, then export the dataset as CSV, Excel or JSON, or open the **Issues**, **Indexability**, **Links** and **Content** views.

To check a fixed list of URLs instead of crawling, turn off **Crawl links** and paste the URLs.

| Input | Description |
|---|---|
| `startUrls` | Sites or pages to audit. `example.com` is read as `https://example.com/` |
| `crawlLinks` | Follow internal links (default on). Off = audit only the listed URLs |
| `maxPagesPerSite` | Stop each site after this many pages (default 500) |
| `maxDepth` | Max clicks from the start URL, 0 = unlimited (default 0) |
| `useSitemaps` | Read the site's XML sitemaps to find pages and orphan pages (default on) |
| `respectRobotsTxt` | Obey robots.txt (default on). Turn off only for a site you own |
| `includeSubdomains` | Treat subdomains as part of the site (default off) |
| `includeUrlPatterns` / `excludeUrlPatterns` | Limit the crawl to (or skip) URLs containing a text such as `/blog/`, or matching a regex in slashes such as `/\/products\/\d+/` |
| `ignoreQueryStrings` | Treat `?a=1` variants as the same page (default off) |
| `checkExternalLinks` / `maxExternalLinksToCheck` | Check outgoing links for errors (default on, up to 500 per site) |
| `checkResources` / `maxResourcesToCheck` | Also check images, scripts and stylesheets for errors (default off, up to 500 per site, not charged) |
| `compareWithPreviousRun` | Mark each URL `new` / `changed` / `unchanged` against the previous run that had this option on |
| `maxConcurrency` / `requestTimeoutSecs` / `userAgent` | Politeness and fetch settings (defaults 5, 20 s, an identifying bot User-Agent) |
| `titleMinLength`, `titleMaxLength`, `descriptionMinLength`, `descriptionMaxLength`, `thinContentWords`, `slowResponseMs` | Issue thresholds (defaults 30, 60, 70, 160, 200, 2000) |

```json
{
    "startUrls": ["https://crawlee.dev/"],
    "maxPagesPerSite": 200,
    "excludeUrlPatterns": ["/tags/"],
    "maxExternalLinksToCheck": 100
}
```

### Output example

One row from an audit of crawlee.dev (trimmed):

```json
{
    "site": "https://crawlee.dev",
    "url": "https://crawlee.dev/python",
    "status_code": 200,
    "redirect_hops": 0,
    "response_time_ms": 49,
    "page_size_kb": 68.3,
    "depth": 1,
    "found_via": "link",
    "in_sitemap": false,
    "inlinks": 27,
    "indexable": false,
    "indexability_reason": "canonicalised",
    "canonical_url": "https://crawlee.dev/python/",
    "title": "Crawlee for Python · Fast, reliable Python web crawlers.",
    "title_length": 56,
    "meta_description_length": 144,
    "h1": "Build reliable web scrapers. Fast.",
    "h1_count": 1,
    "word_count": 521,
    "hreflang_langs": "en, x-default",
    "images_count": 30,
    "images_missing_alt": 0,
    "internal_links": 15,
    "external_links": 11,
    "broken_internal_links": 0,
    "broken_external_links": 0,
    "structured_data_types": null,
    "structured_data_blocks": 0,
    "issues": "hreflang_missing_self",
    "issue_count": 1,
    "top_severity": "notice",
    "seo_score": 99,
    "issue_details": [
        {
            "code": "hreflang_missing_self",
            "priority": "low",
            "hint": "Include a self-referencing hreflang entry."
        }
    ],
    "scraped_at": "2026-11-14T04:18:31.880Z"
}
```

### How much does an SEO site audit cost?

Pay per event, no subscription:

- **$4.00 per 1,000 audited pages** (`page` event, $0.004 each). Store discounts: Bronze $3.60, Silver $3.20, Gold $2.80 per 1,000.
- $0.00005 per run start.

Every row in the dataset is one charged page, including redirects and error pages (they are part of the audit). Robots-blocked URLs, unreachable sites and external link checks are never charged. Example: a 500-page site costs about **$2.00** per audit, so a weekly audit costs about $8.70 a month. Set **Max pages per site** to cap the cost.

### Use cases

- **Technical SEO audits** for clients or your own sites: broken links, redirect chains, noindex pages, canonical problems and duplicate titles in one export.
- **Broken link checking** before and after a migration or redesign, with the source pages for every broken link.
- **Scheduled monitoring**: run weekly with `compareWithPreviousRun` and filter on `change_type` to see new pages and pages whose status, indexability or tags changed.
- **Sitemap hygiene**: orphan pages, sitemap URLs that redirect or fail, and indexable pages missing from the sitemap.
- **AI agents and reports**: flat snake_case rows and issue codes that an LLM or dashboard can read directly.

### Limits & notes

- **HTML only, no JavaScript rendering.** Pages that build their content in the browser are flagged `js_rendered_suspected`. Most SEO signals (status, robots, canonical, titles, links) are in the server HTML.
- **Polite by default**: robots.txt is respected (including Crawl-delay, up to 5 s), at most 5 parallel requests, and 429/5xx responses are retried once after a pause. If robots.txt fails with a server error, the site is treated as disallowed, as RFC 9309 requires.
- Sites behind strong bot protection may return a challenge page. Those URLs are marked `blocked_by_bot_protection` rather than broken, and score 0 so you can spot them.
- Only internal links that were crawled are status-checked: with `maxDepth` or `maxPagesPerSite` set, links that point past the limit are not checked.
- Pages over 5 MB are not parsed (`body_too_large`, issue `large_html`); their size is the transferred size.
- Sitemaps are read up to 50,000 URLs per site.
- Max run time 1 hour. Split very large sites with `includeUrlPatterns`.

### Integrations and API

Run it from your own code with the [Apify API](https://docs.apify.com/api/v2) or the official Python and JavaScript clients:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("actorfactory/seo-site-audit").call(run_input={'startUrls': ['https://books.toscrape.com/'], 'maxPagesPerSite': 10})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

- **Schedule it** (hourly, daily, weekly) in Apify Console and send results to Google Sheets, Slack, email or a webhook, or connect it to Make, Zapier or n8n.
- **Use it from AI agents** (Claude, ChatGPT, Cursor) through the [Apify MCP server](https://mcp.apify.com).
- **Export** results as JSON, CSV, Excel or HTML from the Output tab, or read them from the dataset API.

### Related Actors

- [Sitemap URL Extractor](https://apify.com/actorfactory/sitemap-extractor): every URL from any website sitemap
- [Bulk Lighthouse Audit](https://apify.com/actorfactory/lighthouse-audit): Lighthouse performance, accessibility, best-practices and SEO scores plus Core Web Vitals lab metrics for a URL list or sitemap
- [App Store Scraper](https://apify.com/actorfactory/app-store-intelligence): App Store keyword rankings, app details and top charts

### FAQ

**Is it legal to crawl websites?** This actor reads only public pages, identifies itself with a bot User-Agent and obeys robots.txt by default. Audit sites you own or have permission to audit, and don't turn off robots.txt for other people's sites.

**Why is a URL with status 200 not indexable?** Check `indexability_reason`: usually a `noindex` meta tag or X-Robots-Tag header, or a canonical that points to another URL.

**How is the SEO score calculated?** It starts at 100 and loses 10 per error, 4 per warning and 1 per notice (minimum 0). Pages that couldn't be fetched score 0.

**Can I audit several sites in one run?** Yes, add one start URL per site. Each site gets its own page limit and summary.

**Can I export to Google Sheets or Excel?** Yes, with the dataset's export buttons or Apify's integrations.

**How many pages can it crawl?** 500 pages per site by default. Raise **Max pages per site** up to 10,000; you pay per page audited.

**Does it render JavaScript?** No. It audits the HTML the server returns, without a browser, which keeps it fast and cheap. Pages that build their content in the browser can look thin or show missing tags.

**Does it validate structured data?** It parses every JSON-LD block, flags invalid JSON, a missing `@type` or `@context`, and missing required properties on common types. It is a quick lenient check, not Google's Rich Results test.

# Actor input Schema

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

Websites to audit (each start URL is crawled as its own site), or the exact URLs to audit when "Crawl links" is off. Example: https://example.com/

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

Follow internal links to crawl the whole site. Turn off to audit only the listed URLs (no sitemap, inlinks or depth).

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

Most URLs to audit per site, including redirects and error pages. This is your cost control: each audited URL is one "page" event ($0.004).

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

Most clicks from the start URL. 0 = no limit.

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

Read the sitemaps listed in robots.txt (or /sitemap.xml): fills in_sitemap, finds orphan pages, and audits URLs listed only in the sitemap after the link-discovered ones.

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

Skip URLs that robots.txt disallows for ApifySEOAudit or \*. Turn off only for sites you own.

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

Treat subdomains such as blog.example.com as internal. www and the bare domain always count as the same site.

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

Crawl only URLs that contain one of these texts, or match a regex wrapped in slashes, e.g. /blog/ or //products/\d+/. The start URL is always audited.

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

Never crawl URLs that contain one of these texts or match a /regex/, e.g. /tag/ or /?page=\d+/

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

Drop ?query parameters from discovered links (stops faceted-navigation explosions).

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

Check outbound links for 404/410/5xx/DNS errors (HEAD, then GET).

## `maxExternalLinksToCheck` (type: `integer`):

Cap on unique external URLs checked per site. External checks are not charged.

## `checkResources` (type: `boolean`):

Also check every image, script and stylesheet the audited pages load and report broken ones (404/410/5xx/DNS). Same-site files obey robots.txt. Not charged, but adds requests and time.

## `maxResourcesToCheck` (type: `integer`):

Cap on unique image/script/stylesheet URLs checked per site. Resource checks are not charged.

## `compareWithPreviousRun` (type: `boolean`):

Compare with the last run for the same start URL(s) and fill change_type / changed_fields. Removed URLs appear in the OUTPUT summary. Useful on schedules.

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

Parallel requests per site. robots.txt Crawl-delay, when present, forces 1.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout.

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

Custom User-Agent, e.g. one your firewall allows. Empty = the built-in identifying ApifySEOAudit User-Agent.

## `titleMinLength` (type: `integer`):

Titles shorter than this get title_too_short (Google sets no hard limit).

## `titleMaxLength` (type: `integer`):

Titles longer than this get title_too_long.

## `descriptionMinLength` (type: `integer`):

Shorter descriptions get meta_description_too_short.

## `descriptionMaxLength` (type: `integer`):

Longer descriptions get meta_description_too_long.

## `thinContentWords` (type: `integer`):

Indexable pages with fewer words get thin_content.

## `slowResponseMs` (type: `integer`):

Responses slower than this get slow_response.

## Actor input object example

```json
{
  "startUrls": [
    "https://books.toscrape.com/"
  ],
  "crawlLinks": true,
  "maxPagesPerSite": 10,
  "maxDepth": 0,
  "useSitemaps": true,
  "respectRobotsTxt": true,
  "includeSubdomains": false,
  "includeUrlPatterns": [],
  "excludeUrlPatterns": [],
  "ignoreQueryStrings": false,
  "checkExternalLinks": true,
  "maxExternalLinksToCheck": 500,
  "checkResources": false,
  "maxResourcesToCheck": 500,
  "compareWithPreviousRun": false,
  "maxConcurrency": 5,
  "requestTimeoutSecs": 20,
  "userAgent": "",
  "titleMinLength": 30,
  "titleMaxLength": 60,
  "descriptionMinLength": 70,
  "descriptionMaxLength": 160,
  "thinContentWords": 200,
  "slowResponseMs": 2000
}
```

# Actor output Schema

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

The scraped items in the default dataset.

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

Shareable one-page audit report: scores, issues with example URLs, broken links, duplicate titles.

## `links` (type: `string`):

Dataset items shown in the 'Links' view.

## `indexability` (type: `string`):

Dataset items shown in the 'Indexability' view.

## `content` (type: `string`):

Dataset items shown in the 'Content' view.

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

Counts, stop reason and non-fatal errors for this run (OUTPUT record).

# 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://books.toscrape.com/"
    ],
    "maxPagesPerSite": 10
};

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

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

```

## MCP server setup

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