# SEO Audit & Broken Link Checker with llms.txt Generator (`bigkerm/website-health-ai-readiness-audit`) Actor

SEO audit and broken link checker in one run: a 0-100 score with fixes, verified broken links (404, 410, dead domains), an llms.txt draft, and which AI crawlers (GPTBot, ClaudeBot, PerplexityBot) robots.txt blocks. SSL, DNS, domain expiry, change tracking. About $0.27 for 25 pages.

- **URL**: https://apify.com/bigkerm/website-health-ai-readiness-audit.md
- **Developed by:** [Kerm Labs](https://apify.com/bigkerm) (community)
- **Categories:** SEO tools, Developer tools, AI
- **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.
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 Audit & Broken Link Checker with llms.txt Generator

SEO audit tool, broken link checker and llms.txt generator in one Actor. Enter a website and get a 0-100 score, a ranked fix list, verified broken links with the page each one is on, and a ready-to-edit llms.txt draft. See which AI crawlers (ChatGPT, Claude, Perplexity, Google AI) your robots.txt allows or blocks.

**Quick start:** 1) Put your website in "Websites to audit". 2) Click Start. 3) Open the HTML report in the run's key-value store, or read the dataset.

**Typical cost:** 25 pages: $0.02 + 25 x $0.01 = $0.27, plus a $0.00005 run start fee. Lower prices on paid Apify plans. Sites that are down or block the crawler are not charged.

| In one run | |
|---|---|
| Technical SEO checks on every crawled page, 0-100 score and fix list | Yes |
| Verified broken links (404, 410, dead domains, refused connections) | Yes |
| AI crawler access for 15 bots, read from robots.txt | Yes |
| llms.txt draft in the llmstxt.org format | Yes |
| SSL, DNS, domain expiry and security headers | Yes |
| Change tracking between scheduled runs | Yes |

**What you get from one run**

- A 0-100 score and band per site, with every issue ranked high, medium or low and a one-line fix.
- AI readiness: which of 15 AI crawlers robots.txt allows or blocks, llms.txt status, and a **ready-to-edit llms.txt draft**.
- Technical SEO on every crawled page: titles, meta descriptions, H1s, canonicals, noindex, viewport, images without alt, mixed content, JSON-LD, hreflang, thin content.
- Verified broken links (404, 410, dead domains, refused connections), with blocked or slow links kept separate so you do not chase false alarms.
- SSL certificate, DNS (SPF, DMARC, CAA), domain expiry and security headers.
- **Change tracking**: run it weekly and see only what changed (new issues, fixed issues, new broken links, AI bot changes, expiring certificates).
- An HTML report, a Markdown report, CSV issue lists and clean JSON for AI agents.
- Fair billing: sites that are down, blocked or broken are not charged.

### What it checks

Per site:

- **robots.txt**: exists, size, problem lines, sitemap lines, whole-site disallow, and allowed or blocked for each of 15 AI crawlers (GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-User, Claude-SearchBot, anthropic-ai, Google-Extended, PerplexityBot, Perplexity-User, CCBot, Bytespider, Applebot-Extended, Meta-ExternalAgent, Amazonbot).
- **llms.txt and llms-full.txt**: present, size, starts with an H1, has links (llmstxt.org format).
- **Sitemaps**: valid XML, index or urlset, URL count, lastmod, and a sample of up to 20 URLs checked for dead pages.
- **HTTPS**: http to https redirect, certificate issuer, days to expiry, TLS version, hostname match, www and non-www consistency.
- **Security headers** on the home page: HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy.
- **DNS**: A, AAAA, MX, SPF (flags more than one), DMARC policy, CAA.
- **Domain registration** via RDAP: registrar, expiry date. If RDAP does not answer, the result is "unknown", not an error.
- **Home page**: response time, compression, favicon.

Per page: status, redirects, response time, size, title, meta description, canonical (and whether it points to another URL), robots meta and X-Robots-Tag, H1, lang, JSON-LD types, Open Graph, link counts, broken links found on the page, and the new on-page checks below. Every page gets a `pageScore` (0-100, 100 minus the weight of its own issues) and a `pageIssues` list of codes.

On-page checks (HTML only, no extra requests):

- **Images**: `<img>` count and images without an `alt` attribute (`alt=""` counts as decorative). `IMG_ALT_MISSING` (low).
- **Mobile viewport** meta tag. `VIEWPORT_MISSING` (medium).
- **Indexability**: noindex from the robots meta tag or the X-Robots-Tag header. `NOINDEX_PAGES` (medium) only for the start page and pages listed in the sitemap; other noindex pages are recorded, not flagged. A canonical pointing to another URL is reported in the record (`canonicalOther`), not flagged.
- **Mixed content** on https pages (http:// images, scripts, stylesheets, iframes). `MIXED_CONTENT` (medium).
- **hreflang**: invalid codes and a missing self-reference. `HREFLANG_INVALID` (low).
- **JSON-LD** blocks that do not parse. `JSONLD_INVALID` (medium).
- **Content**: visible word count without script, style, nav and footer. `THIN_CONTENT` (low) under 150 words on indexable pages.
- **Headings**: skipped levels such as h2 then h4. `HEADING_LEVEL_SKIP` (low).
- **Page weight and speed**: `SLOW_PAGES` (low, server response over 2000 ms on 2 or more pages), `LARGE_HTML` (low, over 1.5 MB by Content-Length or size read, or "over 8 MB" when the page was cut).
- **Duplicate meta descriptions** across pages. `DUPLICATE_META_DESCRIPTION` (low).
- **Score band** on each site: `scoreBand` is Excellent (90+), Good (75-89), Needs work (50-74) or Poor (below 50); Blocked for sites that block the crawler; "Site checks only" when robots.txt disallows crawling (the record and report then say that no pages were crawled and the score covers site-level checks only).

Blocked, error and bot-check pages are never audited, so none of these checks can create issues from them. A page cut at the 8 MB read limit is marked `truncated: true` and gets no "missing" issues (no title, H1, meta description, viewport, canonical, lang, Open Graph or thin content), because the missing part may be in the bytes we did not read. An HTML page that is only a meta refresh redirect (5 seconds or less, under 2 KB of text) is not a page: it is not billed and its target is crawled instead.

### AI readiness and the llms.txt generator

The report shows, for 15 AI crawlers, whether robots.txt allows or blocks them, and whether llms.txt exists and follows the llmstxt.org format.

**Download a ready-to-edit llms.txt.** Every audited site gets a draft `LLMS-<host>.txt` in the key-value store (and an `llmsTxtDraft` field in the site record, capped at 8 KB). It follows llmstxt.org: `# <site name>` (og:site_name or the home title), `> <home meta description>`, then `## Pages` with `- [title](url): description` for up to 50 crawled, indexable pages, home first, then by URL depth. If the site already has a valid llms.txt, the draft is still made and the report says "Compare with your current llms.txt".

If AI search or assistant bots (OAI-SearchBot, ChatGPT-User, Claude-User, Claude-SearchBot, PerplexityBot, Perplexity-User) are blocked, the record also has `robotsTxtSuggestion`: a short robots.txt snippet that allows those bots, keeps the site's own Disallow lines for them, leaves training bots as they are, and states the tradeoff. It is a suggestion only; blocking may be intentional.

### Monitor weekly: save a task, add an Apify Schedule, get only what changed

Change tracking is on by default (`trackChanges`). Each run stores a compact snapshot per site (score, issue codes, AI bot verdicts, llms.txt, certificate and domain days left, up to 200 broken links) in a named key-value store (`historyStoreName`, default `site-audit-history`) that survives between runs. From the second run on, the site record has `changes`: `previousRunAt`, `scoreDelta`, `newIssues`, `resolvedIssues`, `newBrokenLinks`, `fixedBrokenLinks`, `aiBotChanges` (bot, from, to), `llmsTxtChanged`, `certDaysLeft`, `domainDaysLeft`, `expiryWarnings`. The first run has `changes: null`. A certificate under 21 days or a domain under 30 days is shown at the top of the report.

To monitor: save your input as a task, add an Apify Schedule (weekly), and read `changes` or the "Changes since last run" section of the report. If the site cannot be audited on a run (unreachable, blocked, error), the last good snapshot is kept and `changes.unreachableSince` says since when. Use the same `historyStoreName` for the same task; use another name for a separate history.

Pages are crawled and links checked politely: at most 2 concurrent requests per site host and 1 per external host, with a 250 ms gap. robots.txt is obeyed for our crawler, also for link checks and the sitemap sample (those URLs are counted as "skipped by robots"). A Crawl-delay is honored up to 2 seconds. A 429 answer is retried once after its Retry-After (up to 10 seconds); if it is still 429 the link is "unverified (rate limited)". Pages answering 419, 420, 429, 430, 456, 509 or 999 are "rate limited (HTTP x)": not billed and never a PAGE_ERROR_STATUS; if more than half of the crawled pages are rate limited you get `PAGES_RATE_LIMITED` (try a lower maxConcurrency).

Broken links: only 404, 410, a dead domain (NXDOMAIN) or a refused connection count as broken. Blocked, rate-limited, server-error and timed-out links are listed as "unverified" and never reported as broken.

### Who it is for

SEO consultants and agencies, site owners checking whether AI crawlers can reach their content, and developers who want one JSON audit instead of running four tools.

### Input

| Field | Default | What it does |
|---|---|---|
| `startUrls` | `https://example.com` | Websites, one per line. Bare domains are treated as https. |
| `maxPagesPerSite` | 25 | Pages crawled per site (1 to 500). Each billed page is a billable event. |
| `maxCrawlDepth` | 5 | Link clicks from the start page (0 to 20). 0 audits only the start page. Sitemap URLs count as one click. |
| `excludeUrlPatterns` | none | Pages whose address contains one of these texts are not crawled. Put a regular expression between slashes, like `/\.pdf$\|/print/`. The start page is always audited. |
| `includeSubdomains` | false | Also crawl subdomains of the registrable domain. Each subdomain's own robots.txt is obeyed. |
| `checkBrokenLinks` | true | Check links found on crawled pages. |
| `maxLinksToCheck` | 300 | Unique links checked per site (0 to 5000). |
| `checkExternalLinks` | true | Also check links to other sites. |
| `includeAiCrawlerChecks` | true | AI crawler access report. |
| `maxConcurrency` | 10 | Requests in flight in total. |
| `maxSecondsPerSite` | 120 | Time budget per site. Bounds the crawl (stops at 75 percent), link checks and sitemap work (100 percent). See Limits. |
| `trackChanges` | true | Compare with the previous run (see Monitor weekly). |
| `historyStoreName` | `site-audit-history` | Named store that keeps the snapshots. |
| `useApifyProxy` | false | Send requests through Apify Proxy. |

Example:

```json
{
  "startUrls": ["https://example.com", "another-site.com"],
  "maxPagesPerSite": 25,
  "maxCrawlDepth": 5,
  "excludeUrlPatterns": ["/admin/", "?utm_"],
  "trackChanges": true
}
```

One website per line. Bare domains such as `another-site.com` are accepted and treated as https. Internationalized names such as `münchen.de` are converted automatically. The input schema accepts strings only (the platform validates it), so send plain strings through the API too. `maxSecondsPerSite` (default 120) is a time budget per site: the crawl stops at 75 percent of it, link checks and sitemap work (including the sitemap URL sample) stop at 100 percent, and the report is written with what was found. Links not checked in time are listed as unverified. `maxPagesPerSite` goes up to 500.

### Output

The dataset holds two record types, told apart by the `type` field. Trimmed real output for https://llmstxt.org (site record):

```json
{
  "type": "site",
  "status": "ok",
  "url": "https://llmstxt.org/",
  "score": 80,
  "issueCounts": { "high": 0, "medium": 2, "low": 5 },
  "aiBotsBlocked": 0,
  "llmsTxt": true,
  "brokenLinks": 0,
  "pagesCrawled": 9,
  "issues": [
    {
      "severity": "medium",
      "code": "META_DESCRIPTION_MISSING",
      "message": "4 page(s) have no meta description",
      "fix": "Add a 70 to 160 character description.",
      "urls": ["https://llmstxt.org/changes.html", "https://llmstxt.org/ed.html"]
    }
  ]
}
```

If the start page cannot be fetched (domain does not resolve, connection refused, timeout after one retry, TLS failure), the site record has `"status": "unreachable"`, `"score": null`, an `unreachableReason` (`dns`, `connection`, `timeout` or `tls`) and one high issue, `SITE_UNREACHABLE`. It also carries the DNS and domain registration results, which help with lapsed domains, and no other issues. The reports show an "unreachable" banner.

```json
{
  "type": "site",
  "status": "unreachable",
  "url": "https://example-gone.com/",
  "score": null,
  "unreachableReason": "dns",
  "issues": [{ "severity": "high", "code": "SITE_UNREACHABLE", "message": "The domain does not resolve (no DNS record). Check the spelling or the domain registration." }]
}
```

If robots.txt cannot be read as rules (it returns an HTML page, for example because of bot protection), it is not parsed, the issue `ROBOTS_NOT_TEXT` is raised, and AI crawler access is reported as unknown instead of allowed. An http:// address that answers with an error such as 403 is reported as "unknown" for the https redirect check, not as a problem.

A page record (trimmed):

```json
{
  "type": "page",
  "url": "https://llmstxt.org/intro.html",
  "status": 200,
  "redirectChain": 0,
  "responseMs": 40,
  "title": "Python module & CLI – llms-txt",
  "h1Count": 1,
  "canonical": null,
  "noindex": false,
  "jsonLdTypes": [],
  "brokenLinks": []
}
```

The key-value store holds, per site:

- `REPORT-<host>.html`: self-contained (no external assets, light and dark mode, print friendly): summary cards (score and band, issue counts, AI bots blocked, llms.txt, broken links, certificate and domain days), changes since last run, issues with fix hints, llms.txt draft, AI crawler table, page table.
- `REPORT-<host>.md`: the same content for AI agents.
- `ISSUES-<host>.csv`: one row per issue (severity, code, message, fix, affectedCount, sampleUrls joined by space). `ALL-ISSUES.csv` holds the issues of all sites with a leading `site` column.
- `LLMS-<host>.txt`: the llms.txt draft.
- `OUTPUT`: JSON summary of all sites, with the file keys (and download links when run on Apify) per site.

Dataset views: `overview` (one row per site, with scoreBand, scoreDelta and new issue count) and `pages` (url, status, pageScore, title, wordCount, issues).

### Use it from an AI agent

The output is plain JSON built for agents: one `site` record per website with a 0-100 score, a prioritized `issues` list (severity, code, message, fix hint) and an `aiBots` map, plus one `page` record per crawled page. Agents connected to Apify (for example through the Apify MCP server at mcp.apify.com) can call this Actor directly. A good prompt: "Run bigkerm/website-health-ai-readiness-audit on example.com and list the high and medium issues with their fixes."

For a quick, cheap check, set `maxPagesPerSite` to 1 and `checkBrokenLinks` to false: you get every site-level check (robots.txt, AI crawler access, llms.txt, sitemap, SSL, DNS, domain expiry, headers) for $0.03 per site ($0.02 per site plus $0.01 for the one page), plus the $0.00005 run start fee.

MCP clients (Claude Desktop, Cursor, VS Code): connect `https://mcp.apify.com?tools=bigkerm/website-health-ai-readiness-audit`, or run the server locally:

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": ["-y", "@apify/actors-mcp-server", "--tools", "bigkerm/website-health-ai-readiness-audit"],
      "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
    }
  }
}
```

### Use it from code: Python, JavaScript, HTTP API, n8n, Make, Zapier

**Python** (`pip install apify-client`): audit a site and print its fix list.

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("bigkerm/website-health-ai-readiness-audit").call(
    run_input={"startUrls": ["https://example.com"], "maxPagesPerSite": 25}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["type"] == "site":
        print(item["url"], item["status"], item.get("score"))
        for issue in item.get("issues") or []:
            print(" ", issue["severity"], issue["code"], "-", issue["fix"])
```

**JavaScript** (`npm install apify-client`):

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('bigkerm/website-health-ai-readiness-audit').call({
    startUrls: ['https://example.com'],
    maxPagesPerSite: 25,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const sites = items.filter((i) => i.type === 'site');
console.log(sites.map((s) => [s.url, s.score, s.brokenLinks]));
```

**HTTP API**: one request that waits for the run (up to 5 minutes) and returns the dataset items. Keep `maxPagesPerSite` small for this call.

```bash
curl -X POST "https://api.apify.com/v2/acts/bigkerm~website-health-ai-readiness-audit/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"startUrls": ["https://example.com"], "maxPagesPerSite": 10}'
```

**No code (n8n, Make, Zapier):** add the Apify app, choose "Run Actor", enter `bigkerm/website-health-ai-readiness-audit` and the input JSON, then read the dataset items. A common flow: a weekly schedule, then new high issues or new broken links to Slack, email or a Google Sheet.

### Pricing

Pay per event: $0.00005 per run (start), plus $0.02 per site audited, plus $0.01 per billed page.

Volume discounts by Apify plan (per event, as listed in the Actor's pricing tab):

| Plan | Site audited | Page audited |
|---|---|---|
| Free | $0.02 | $0.01 |
| Starter (Bronze) | $0.018 | $0.009 |
| Scale (Silver) | $0.016 | $0.008 |
| Business (Gold) | $0.014 | $0.007 |
| Enterprise (Platinum, Diamond) | $0.014 | $0.007 |

Billed:

- **Site audited**: once per site where the site-level checks ran: the start page was fetched (status `ok`), it answered with something that is not a web page (status `not-html`), or robots.txt disallows our crawler (status `ok`, 0 pages, `stoppedReason` "robots.txt disallows crawling"). It is charged in the same step that stores the site record.
- **Page audited**: only for a page fetched successfully as HTML with a 2xx status. The same page reached by two URLs counts once, and a page whose canonical URL is an already recorded page (for example `/` and `/index.html`) is not billed again. A page that names itself as canonical is always kept: if a duplicate was recorded first, the canonical page replaces it before anything is billed.

Not billed (you only pay the run start fee, and the site fee only where noted above):

- Sites that are unreachable, have a certificate error (`tls-error`), return an error for the start URL (`error`, `server-error`) or block our crawler (`blocked`): no site fee and no pages.
- Sites whose audit took too long and was stopped (status `timeout`, high issue `SITE_AUDIT_TIMED_OUT`) or failed unexpectedly (status `error`, `SITE_AUDIT_FAILED`): they get a record and reports with no score, no site fee and no pages. Your last good change-tracking snapshot is kept.
- Internal links that redirect to another website (listed as "redirects off site to <host>").
- Pages that return 4xx or 5xx, bot-check pages, meta refresh redirect stubs, 401, 403 and rate-limit (419, 420, 429, 430, 456, 509, 999) answers, non-HTML files, pages disallowed by robots.txt, failed fetches and pages that could not be parsed. They are listed in the site record under `pagesNotBilled` (URL and reason) and in the reports.

Time: `maxSecondsPerSite` bounds the crawl, the link checks and the sitemap work for each site (the crawl stops at 75 percent of it, the rest at 100 percent), so a slow site cannot run past it by much. robots.txt (30 s), the start page probe (45 s), TLS (20 s), DNS (15 s) and the domain lookup (15 s) each have their own limit; a lookup that times out shows as "unknown". A site that runs out of time in the crawl or link checks is still recorded and billed for what was audited. If a site is still running `maxSecondsPerSite` + 90 seconds after it started, it is stopped and gets a `timeout` record that is not billed.

If you set a maximum cost per run, the Actor keeps room for the site fee, stops crawling when the limit is reached, still writes the site record and reports, and exits normally.

### FAQ

**Can ChatGPT and Claude crawl my website?** The report lists 15 AI crawlers (GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, PerplexityBot, Google-Extended and more) and whether your robots.txt allows or blocks each one. If AI search bots are blocked, you also get a suggested robots.txt snippet.

**How do I create an llms.txt file?** Run an audit. Each site gets a ready-to-edit `LLMS-<host>.txt` draft in the key-value store, built from up to 50 crawled pages in the llmstxt.org format. Review it, then upload it to your site root as `/llms.txt`.

**How do I find broken links on my website?** Leave "Check for broken links" on. Each broken link (404, 410, dead domain, refused connection) is listed with the page it was found on, up to `maxLinksToCheck` links per site (default 300).

**Why are blocked links not counted as broken?** Many sites block or rate limit bots. Those links are listed as "unverified", so you do not chase false alarms.

**How do I check my site every week?** Save your input as a task and add an Apify Schedule. From the second run on, each site record shows what changed since the last run.

**Does it run JavaScript?** No. It reads the HTML the server sends. Content added by scripts is not seen. Pages that look built by JavaScript are flagged `jsRendered`, and missing title, description or H1 on them is reported as low priority.

**Does it obey robots.txt?** Yes, for its own user agent (`SiteHealthAuditBot`): pages, link checks and sitemap samples it may not fetch are skipped. If robots.txt cannot be read because of a server error, only the start page is fetched. If robots.txt blocks everything for `*` but names Googlebot and others, the report says so (low issue `ROBOTS_DEFAULT_DISALLOW`) and no pages are crawled, because we follow the `*` rule.

**What if the site blocks the Actor?** If the start page answers 401, 403, 418, 503 or a rate-limit code (419, 420, 429, 430, 456, 509, 999), shows a bot-check page, or is a WAF challenge (AWS WAF, Cloudflare, DataDome and Akamai headers, an empty 202, an empty HTML page), the site gets status `blocked`, no score, and one high issue `SITE_BLOCKS_AUTOMATED_TOOLS`. The same happens when the start page passes the first check but every page the crawl then fetches is blocked. DNS, SSL and domain results are still shown. Not charged except the run start fee. Blocked pages and resources (robots.txt, llms.txt, sitemap) are reported as "blocked, not checked", never as missing, and AI crawler access is "unknown".

**Am I charged for sites that are down?** No, only the run start fee. Unreachable, blocked, certificate-error, error and timed-out sites get a record explaining why, with no site or page charges.

**What about a certificate error?** The site gets status `tls-error`: the certificate is read without verification and the issue says what is wrong (expired with dates, hostname mismatch with names, or not trusted), and what plain http does. DNS and domain results are included.

**What if the start URL redirects to another site?** The final site is audited and the record keeps both `requestedUrl` and `url` (low issue `START_REDIRECTS_OFFSITE`).

**How do I see what changed since last time?** Read `changes` in the site record, or the top of the report. See Monitor weekly.

**Does it log in or submit forms?** No.

**Which pages are crawled?** Same host only (plus the www or non-www twin), starting from the start URL, then the sitemap. Internal addresses (private, loopback, link-local) are never contacted.

### Limits

- At most 500 pages and 5000 links per site per run. Politeness: 2 concurrent requests per site host, 1 per external host, 250 ms gap.
- At most 10 sitemap files are fetched per site (every fetch counts, valid or not), within 60 seconds. Sitemap files up to 50 MB (also after unzipping) are read; larger ones are reported as "too large, not checked".
- Timeouts: 15 seconds per request, 25 seconds for the start page after one retry, 20 seconds for the TLS check. Up to 20 redirects are followed.
- Pages larger than 8 MB are cut off at 8 MB (marked `truncated`).
- Per-site time budget `maxSecondsPerSite` (default 120): bounds the crawl, link checks and sitemap work. It does not bound robots.txt, the start page probe, the TLS, DNS and domain lookups (each has its own short timeout), or requests already in flight when the budget ends (up to 15 seconds each). A site that runs out of time still gets its record, with `stoppedReason` "time budget reached".
- Change tracking needs the named store `historyStoreName` in your account. Sitemap child files get a 20 second timeout and one retry; a file that cannot be fetched is "not checked (fetch error)", never reported as invalid.
- Scores are a simple weighted count of issues, useful for comparing runs of the same site, not an industry standard.
- Blocking AI crawlers is often intentional. The report states what robots.txt says and does not judge it.

### Ready-made examples

Open one, change the website, and click Start:
[broken link checker](https://apify.com/bigkerm/website-health-ai-readiness-audit/examples/broken-link-checker),
[llms.txt generator](https://apify.com/bigkerm/website-health-ai-readiness-audit/examples/llms-txt-generator),
[llms.txt checker](https://apify.com/bigkerm/website-health-ai-readiness-audit/examples/llms-txt-checker),
[AI crawler access checker](https://apify.com/bigkerm/website-health-ai-readiness-audit/examples/ai-crawler-access-checker),
[SEO basics audit](https://apify.com/bigkerm/website-health-ai-readiness-audit/examples/seo-basics-audit),
[bulk website audit](https://apify.com/bigkerm/website-health-ai-readiness-audit/examples/bulk-website-audit),
[weekly website monitor](https://apify.com/bigkerm/website-health-ai-readiness-audit/examples/weekly-website-monitor),
[robots.txt and sitemap checker](https://apify.com/bigkerm/website-health-ai-readiness-audit/examples/robots-txt-sitemap-checker),
[SSL, DNS and domain expiry check](https://apify.com/bigkerm/website-health-ai-readiness-audit/examples/ssl-dns-domain-expiry-check),
[security headers checker](https://apify.com/bigkerm/website-health-ai-readiness-audit/examples/security-headers-checker).

### More from Kerm Labs

[PDF Text Extractor & PDF to Markdown](https://apify.com/bigkerm/document-to-markdown-tables-ocr): PDF, Word, PowerPoint, Excel and web pages to clean Markdown, tables as CSV and RAG chunks, with OCR for scans. Pairs with this audit when you build an AI search index of your own site and documents.

# Actor input Schema

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

One website per line, like https://example.com or example.com. A bare domain is treated as https. Pages are crawled on the same host only (plus its www or non-www twin).

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

How many pages to crawl on each site, starting from the start URL and the sitemap. Each crawled page is a billable event.

## `maxCrawlDepth` (type: `integer`):

How many link clicks away from the start page the crawl goes. 0 audits only the start page. Pages found in the sitemap count as one click.

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

Pages whose address contains one of these texts are not crawled, for example /admin/ or ?utm\_. To use a regular expression, put it between slashes, like /\\.pdf$|/print/. The start page is always audited.

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

Also crawl pages on subdomains of the site's registrable domain (blog.example.com for example.com). Each subdomain's own robots.txt is obeyed. Off by default: only the start host and its www or non-www twin are crawled.

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

Check the links found on crawled pages. Only 404, 410, dead domains and refused connections count as broken. Blocked or slow links are listed as unverified.

## `maxLinksToCheck` (type: `integer`):

Upper limit of unique links checked per site. Internal links are checked first.

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

Also check links that point to other websites (at most 2 requests at a time per external host).

## `includeAiCrawlerChecks` (type: `boolean`):

Report whether robots.txt allows or blocks GPTBot, ClaudeBot, PerplexityBot, Google-Extended and other AI crawlers.

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

Total requests in flight at once. Each site host still gets at most 2 at a time, each external host 1.

## `maxSecondsPerSite` (type: `integer`):

Time budget per site. The crawl stops at 75 percent of it. Link checks and sitemap work (including the sitemap URL sample) stop at 100 percent, then the report is written with what was found; links not checked in time are listed as unverified. Not covered: robots.txt, the start page probe, TLS, DNS and domain lookups (each has its own short timeout), and requests already in flight (up to 15 seconds each). Sites with a robots.txt Crawl-delay are capped at 2 seconds per request.

## `trackChanges` (type: `boolean`):

Compare each site with its previous run and report what changed (score, new and resolved issues, broken links, AI bot access, expiry dates). Needs a named storage that keeps the last snapshot per site. Set up an Apify Schedule to get a weekly change report.

## `historyStoreName` (type: `string`):

Name of the key-value store that keeps one snapshot per site between runs. Use only lowercase letters (a-z), digits (0-9) and hyphens, 1 to 63 characters (for example my-site-history). Other characters are replaced by hyphens. Use the same name on every run of a task to compare runs. Change it to start a separate history.

## `useApifyProxy` (type: `boolean`):

Send requests through Apify Proxy. Off by default. Most sites do not need it, and proxy traffic adds platform cost.

## Actor input object example

```json
{
  "startUrls": [
    "https://example.com"
  ],
  "maxPagesPerSite": 25,
  "maxCrawlDepth": 5,
  "includeSubdomains": false,
  "checkBrokenLinks": true,
  "maxLinksToCheck": 300,
  "checkExternalLinks": true,
  "includeAiCrawlerChecks": true,
  "maxConcurrency": 10,
  "maxSecondsPerSite": 120,
  "trackChanges": true,
  "historyStoreName": "site-audit-history",
  "useApifyProxy": false
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

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

No description

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

No description

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

No description

## `reports` (type: `string`):

No description

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

No description

## `llmsTxt` (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": [
        "https://example.com"
    ],
    "maxPagesPerSite": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigkerm/website-health-ai-readiness-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://example.com"],
    "maxPagesPerSite": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("bigkerm/website-health-ai-readiness-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://example.com"
  ],
  "maxPagesPerSite": 25
}' |
apify call bigkerm/website-health-ai-readiness-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigkerm/website-health-ai-readiness-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/tbg7YljuaJxbMf1Ua/builds/lmGnJH9g0cfHNVAf0/openapi.json
