# SEO Site Audit – On-Page Checks & Change Alerts (`glidepath/seo-site-audit`) Actor

SEO audit of a website from its sitemaps: titles, meta descriptions, H1, canonical, noindex, hreflang, schema, broken links, duplicates. Input: site URLs. Output: one row per page with issue codes; monitor mode. $8.05/1k pages.

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

## Pricing

from $4.90 / 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.
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 – On-Page Checks & Change Alerts

**Audit every page of a website for on-page SEO problems, and see what got better or worse since the last audit.** Give it a website; it finds the pages through the site's sitemaps (or crawls the site's own links when there is no sitemap), checks each page with plain HTTP and returns one row per page: status and redirects, title, meta description, H1, canonical, noindex, hreflang, structured data, Open Graph, images without alt text, mixed content, word count, and a list of issues with stable codes such as `TITLE_TOO_LONG` or `SITEMAP_URL_NOINDEX`. Duplicate titles and descriptions are found across the whole site, and broken internal links on request.

Run it once for a full audit, or schedule it weekly or after every release with an **alert name**: it then reports only the issues that are new or fixed since the previous run.

### Who it is for

- **SEO agencies and freelancers:** a repeatable audit of each client site, with a weekly change report you can forward instead of a 500-row spreadsheet.
- **Site owners, developers and release managers:** run it after each deploy and catch a `noindex` left on a page, a broken canonical, a title template that went wrong, or pages that dropped out of the sitemap.
- **Content and marketing teams:** find missing or duplicate titles and descriptions, thin pages and images without alt text before search engines do.
- **Data teams and AI agents:** a structured, filterable audit (one JSON row per page) to feed dashboards, tickets or an LLM.

### How to use it

1. Enter one or more websites in **Websites or sitemap URLs** (the form is prefilled with `https://semver.org`, a small public site). Set **Max pages per site**.
2. Optionally narrow it down with **Only URLs matching** / **Skip URLs matching**, turn on **Check internal links and canonical URLs**, or give the audit an **Alert name** to start monitoring.
3. Run it. Open the **Overview** or **Issues** tab of the dataset, download the rows as JSON, CSV or Excel, and read the `SITE_SUMMARY` record for the totals per issue code and the duplicate groups.

### Input fields

| Field | Type | Default | Description |
|---|---|---|---|
| **What to audit** | | | |
| `startUrls` (required) | array | `["https://semver.org"]` (prefilled) | **Websites or sitemap URLs.** One per line, up to 50. A website (https://example.com) is audited from the sitemaps its robots.txt lists, else /sitemap.xml; a sitemap URL is read directly. |
| `maxPagesPerSite` | integer (1–5000) | `100` | **Max pages per site.** Stop after auditing this many pages of each site (each audited page is charged). |
| `discovery` | string (one of `auto`, `sitemap`, `crawl`) | `auto` | **How to find pages.** 'auto': the site's sitemaps (robots.txt Sitemap lines, /sitemap.xml, indexes, .gz), or a breadth-first crawl of same-site links from the start page when there is no sitemap. 'sitemap': sitemaps only. 'crawl': links only. |
| **Filters** | | | |
| `includeUrlPatterns` | array | – | **Only URLs matching (regex).** Audit only pages whose URL matches at least one of these regular expressions, e.g. '/blog/'. Up to 20. Filtered-out pages are not charged. |
| `excludeUrlPatterns` | array | – | **Skip URLs matching (regex).** Skip pages whose URL matches any of these regular expressions, e.g. '/tag/' or '?page='. Up to 20. |
| **Broken links** | | | |
| `checkInternalLinks` | boolean | `false` | **Check internal links and canonical URLs.** Also request every internal link found on the audited pages (HEAD, GET if HEAD is refused) to report broken links (4xx/5xx) and canonical URLs that do not return 200. Pages already audited are not requested again. |
| `maxLinkChecksPerSite` | integer (1–5000) | `500` | **Max link checks per site.** At most this many extra requests per site for the link check. Links over the limit are counted in SITE_SUMMARY as not checked. |
| **Monitor mode** | | | |
| `alertName` | string | – | **Alert name (monitor mode).** Remember this audit's issues under this name (letters, digits, '-' and '\_'). Each row then gets a 'change' field with the issue codes that are new or resolved since the last run with the same name. |
| `onlyChanges` | boolean | `false` | **Output only pages whose issues changed.** With an alert name: output only pages with new or resolved issues. Every audited page is still charged, also the ones not output. The first run outputs every page that has an issue. |

### Input example

```json
{
  "startUrls": ["https://www.example.com", "https://shop.example.com/sitemap_products_1.xml"],
  "maxPagesPerSite": 500,
  "excludeUrlPatterns": ["/tag/", "\\?page="],
  "checkInternalLinks": true,
  "maxLinkChecksPerSite": 1000,
  "alertName": "example-weekly",
  "onlyChanges": true
}
```

How pages are found: the `Sitemap:` lines of the site's robots.txt, otherwise `/sitemap.xml`, then `/sitemap_index.xml`, with sitemap indexes and `.gz` files followed. A site without any sitemap is crawled breadth-first from the start URL, following links to pages of the same site (with or without `www.`, `http` or `https`). Choose **How to find pages** to force one or the other.

### Output example

One row per audited page (some lists shortened):

```json
{
  "url": "https://semver.org/lang/tr/",
  "site": "semver.org",
  "finalUrl": null,
  "httpStatus": 200,
  "redirectCount": 0,
  "redirectChain": [],
  "responseTimeMs": 113,
  "contentType": "text/html; charset=utf-8",
  "htmlBytes": 28043,
  "discoveredBy": "sitemap",
  "indexable": true,
  "title": "Anlamsal Sürümleme 2.0.0 | Semantic Versioning",
  "titleLength": 46,
  "metaDescription": "Semantic Versioning spec and website",
  "metaDescriptionLength": 36,
  "h1": "Anlamsal Sürümleme 2.0.0",
  "h1Count": 1,
  "canonical": "https://semver.org/lang/tr/",
  "canonicalStatus": null,
  "metaRobots": null,
  "xRobotsTag": null,
  "noindex": false,
  "nofollow": false,
  "lang": "tr",
  "hasViewport": true,
  "hreflangCount": 0,
  "hreflangCodes": [],
  "jsonLdTypes": ["WebPage"],
  "jsonLdErrors": 0,
  "hasOgTitle": true,
  "hasOgDescription": true,
  "hasOgImage": false,
  "imageCount": 0,
  "imagesWithoutAlt": 0,
  "internalLinkCount": 39,
  "externalLinkCount": 4,
  "brokenInternalLinkCount": null,
  "brokenInternalLinks": null,
  "mixedContentCount": 0,
  "mixedContentUrls": [],
  "wordCount": 1930,
  "issues": [
    {"code": "META_DESCRIPTION_DUPLICATE", "severity": "warning", "message": "19 other audited pages have the same meta description."},
    {"code": "META_DESCRIPTION_TOO_SHORT", "severity": "notice", "message": "The meta description is only 36 characters long (under 50)."},
    {"code": "OG_IMAGE_MISSING", "severity": "notice", "message": "No Open Graph image (og:image); shared links show no picture."}
  ],
  "issueCount": 3,
  "errorCount": 0,
  "warningCount": 1,
  "noticeCount": 2,
  "change": null,
  "auditedAt": "2026-11-21T15:41:16Z"
}
```

### Output fields

| Field | Type | Description |
|---|---|---|
| `url` | string | The audited URL, as listed in the sitemap or found by the crawl |
| `site` | string | The website (host without `www.`) |
| `finalUrl` | string / null | Where the URL redirects to (null when it does not redirect) |
| `httpStatus` | integer | HTTP status of the final response (a 3xx when a redirect was not followed: loop, other site, robots.txt) |
| `redirectCount` | integer | Number of redirects before the final page |
| `redirectChain` | array | Each redirect hop: `{url, status}` |
| `responseTimeMs` | integer / null | Milliseconds until the final page's response headers arrived (measured from the Apify server) |
| `contentType` | string / null | Content-Type header of the final response |
| `htmlBytes` | integer / null | Size of the HTML in bytes (after decompression) |
| `discoveredBy` | string | `sitemap`, `crawl` (a link on an audited page) or `start` (a start URL of the crawl) |
| `indexable` | boolean | true for an HTML page with HTTP 200, no noindex, and a canonical URL that is missing or points to itself |
| `title` | string / null | The title element (e-mails and phone numbers removed) |
| `titleLength` | integer / null | Characters in the title |
| `metaDescription` | string / null | The meta description (e-mails and phone numbers removed) |
| `metaDescriptionLength` | integer / null | Characters in the meta description |
| `h1` | string / null | Text of the first H1 heading |
| `h1Count` | integer / null | Number of H1 headings |
| `canonical` | string / null | Canonical URL from `link rel=canonical` in the head or the HTTP `Link` header |
| `canonicalStatus` | integer / null | HTTP status of the canonical URL (with **Check internal links** only) |
| `metaRobots` | string / null | Content of the robots meta tag |
| `xRobotsTag` | string / null | `X-Robots-Tag` response header |
| `noindex` | boolean / null | true when the robots meta tag or `X-Robots-Tag` says `noindex` (or `none`) |
| `nofollow` | boolean / null | true when the robots meta tag or `X-Robots-Tag` says `nofollow` (or `none`) |
| `lang` | string / null | The html element's `lang` attribute |
| `hasViewport` | boolean / null | true when a viewport meta tag is present |
| `hreflangCount` | integer / null | Number of `link rel=alternate hreflang` tags |
| `hreflangCodes` | array / null | The hreflang codes declared (up to 50) |
| `jsonLdTypes` | array / null | Top-level `@type` values of the JSON-LD blocks (and their `@graph`) |
| `jsonLdErrors` | integer / null | JSON-LD blocks that are not valid JSON |
| `hasOgTitle` | boolean / null | `og:title` present |
| `hasOgDescription` | boolean / null | `og:description` present |
| `hasOgImage` | boolean / null | `og:image` present |
| `imageCount` | integer / null | img elements on the page |
| `imagesWithoutAlt` | integer / null | img elements without an `alt` attribute |
| `internalLinkCount` | integer / null | Distinct links to pages of the same site |
| `externalLinkCount` | integer / null | Distinct links to other websites |
| `brokenInternalLinkCount` | integer / null | Internal links that return 4xx or 5xx (with **Check internal links** only) |
| `brokenInternalLinks` | array / null | Up to 20 broken internal links: `{url, status}` |
| `mixedContentCount` | integer / null | Resources loaded over `http://` on an https page |
| `mixedContentUrls` | array / null | Up to 10 of those resource URLs |
| `wordCount` | integer / null | Words of visible text (scripts, styles and the head left out) |
| `issues` | array | Every issue found: `{code, severity, message}`, errors first |
| `issueCount` | integer | Number of issues |
| `errorCount` | integer | Issues with severity `error` |
| `warningCount` | integer | Issues with severity `warning` |
| `noticeCount` | integer | Issues with severity `notice` |
| `change` | object / null | Monitor mode only: `{newIssues, resolvedIssues, firstSeen, previousAuditAt}` compared with the last run of the same alert name |
| `auditedAt` | string | When the page was fetched (ISO 8601 UTC) |

On-page fields are `null` for pages that are not HTML or did not return a 2xx status (a 404 row has the status and its issues, nothing else).

**`SITE_SUMMARY`** (key-value store of the run): per site the discovery mode, sitemaps read, pages audited and not audited (robots.txt, filters, other site, errors), links the crawl did not follow because robots.txt disallows them, why the audit stopped (`maxPagesPerSite`, `spendingLimit`, `timeLimit`, `hostBlocked`, `rateLimited`), the number of pages per issue code and severity, the duplicate title and description groups (up to 100 groups of 20 URLs), site-level issues (`SITEMAP_URL_BLOCKED_BY_ROBOTS` with examples), the link-check counts and, in monitor mode, the number of pages with changes. **`ERRORS`** lists pages and sitemaps that could not be audited, with a code (`BLOCKED`, `FETCH_FAILED`, `SERVER_ERROR`, `REFUSED`, `SITEMAP_FAILED`, `SITEMAP_DISALLOWED`, `NO_SITEMAP`, `NO_PAGES`, `ROBOTS_UNREACHABLE`, `CRAWL_DELAY_TOO_LONG`, `TOO_MANY_SITEMAPS`, `HOST_BLOCKED`, `RATE_LIMITED`, `SKIPPED`, `ERROR`).

### Issue codes

Codes and severities never change meaning, so you can filter on them, count them over time and build alerts on them.

| Code | Severity | When |
|---|---|---|
| `HTTP_4XX` | error | The page returns 400-499 (e.g. 404, 410) |
| `REDIRECT` | notice | The URL redirects once |
| `REDIRECT_CHAIN` | warning | Two or more redirects before the final page |
| `REDIRECT_LOOP` | error | The redirects come back to a URL already visited |
| `TOO_MANY_REDIRECTS` | error | More than 10 redirects |
| `REDIRECT_OFF_SITE` | warning | The URL redirects to another website (not followed) |
| `REDIRECT_TARGET_DISALLOWED` | warning | The redirect target is disallowed by robots.txt (not followed) |
| `REDIRECT_INVALID` | error | A redirect without a valid target URL |
| `NOT_HTML` | notice | Not an HTML page (e.g. a PDF in the sitemap); on-page checks skipped |
| `HTML_TRUNCATED` | warning | HTML over 5 MB; only the first 5 MB were checked |
| `SITEMAP_URL_NOT_200` | error | Listed in the sitemap but the final status is not 200 |
| `SITEMAP_URL_REDIRECTS` | warning | Listed in the sitemap but redirects |
| `SITEMAP_URL_NOINDEX` | error | Listed in the sitemap but noindex |
| `SITEMAP_URL_NOT_CANONICAL` | warning | Listed in the sitemap but its canonical URL is another page |
| `NOINDEX` | warning | `noindex` in the robots meta tag or `X-Robots-Tag` |
| `NOFOLLOW` | notice | `nofollow` in the robots meta tag or `X-Robots-Tag` |
| `TITLE_MISSING` | error | No title, or an empty one |
| `TITLE_TOO_LONG` | warning | Title over 60 characters |
| `TITLE_TOO_SHORT` | warning | Title under 15 characters |
| `TITLE_MULTIPLE` | warning | More than one title element |
| `TITLE_DUPLICATE` | warning | Same title as another indexable page of the site |
| `META_DESCRIPTION_MISSING` | warning | No meta description, or an empty one |
| `META_DESCRIPTION_TOO_LONG` | notice | Meta description over 160 characters |
| `META_DESCRIPTION_TOO_SHORT` | notice | Meta description under 50 characters |
| `META_DESCRIPTION_MULTIPLE` | warning | More than one meta description |
| `META_DESCRIPTION_DUPLICATE` | warning | Same meta description as another indexable page of the site |
| `H1_MISSING` | warning | No H1 heading |
| `H1_MULTIPLE` | notice | More than one H1 heading |
| `LOW_WORD_COUNT` | notice | Fewer than 100 words of visible text (pages without noindex) |
| `CANONICAL_MISSING` | warning | No canonical URL in the head or the `Link` header |
| `CANONICAL_MULTIPLE` | warning | Several different canonical URLs |
| `CANONICAL_INVALID` | warning | The canonical is not a valid http(s) URL |
| `CANONICAL_POINTS_ELSEWHERE` | notice | The canonical URL is another page (fine for duplicates, a problem otherwise) |
| `CANONICAL_NOT_200` | error | The canonical URL does not return 200 (with **Check internal links**) |
| `LANG_MISSING` | warning | No `lang` attribute on the html element |
| `LANG_INVALID` | notice | The `lang` value is not a valid language code |
| `VIEWPORT_MISSING` | warning | No viewport meta tag (mobile display) |
| `HREFLANG_INVALID` | warning | hreflang codes that are not valid (e.g. `en-UK`, `pt_br`) |
| `JSON_LD_INVALID` | error | A JSON-LD block that is not valid JSON |
| `OG_TITLE_MISSING` | notice | No `og:title` |
| `OG_DESCRIPTION_MISSING` | notice | No `og:description` |
| `OG_IMAGE_MISSING` | notice | No `og:image` |
| `IMAGES_MISSING_ALT` | warning | Images without an `alt` attribute (`alt=""` for decorative images counts as present) |
| `BROKEN_INTERNAL_LINKS` | error | Internal links that return 4xx or 5xx (with **Check internal links**) |
| `MIXED_CONTENT` | warning | Scripts, styles, images or frames loaded over `http://` on an https page |

Site level, in `SITE_SUMMARY`: `SITEMAP_URL_BLOCKED_BY_ROBOTS` (error), URLs listed in the sitemap that robots.txt disallows (not fetched, not charged).

Duplicates are counted among indexable pages only (HTTP 200, no `noindex`, canonical missing or pointing to itself, one page per final URL), so translated pages that point their canonical elsewhere or `noindex` filter pages are not reported as duplicates.

### Monitor mode: only what changed

Give the audit an **Alert name** (e.g. `client-a-weekly`) and save it as a scheduled Task. Each page's issue codes are remembered under that name and site, in a key-value store named `glidepath-seo-audit-monitor` in your own Apify account. From the second run on, every row has a `change` field:

```json
"change": {"newIssues": ["SITEMAP_URL_NOINDEX"], "resolvedIssues": ["TITLE_TOO_LONG"], "firstSeen": "2026-11-02T06:00:11Z", "previousAuditAt": "2026-11-16T06:00:09Z"}
```

Turn on **Output only pages whose issues changed** to get just those pages: an empty dataset means nothing got better or worse. Changes are compared by issue code, so a page that goes from 3 to 5 images without alt text keeps the same code and is not reported again. The first run of a new alert name has nothing to compare with: every issue counts as new, so it outputs every page that has an issue.

**How the alert reaches you:** the Actor itself sends no e-mails or messages. Add a Slack, e-mail or webhook integration to the scheduled Task (the **Integrations** tab) so that each finished run sends you its dataset or a link to it. With **Output only pages whose issues changed**, the dataset holds only the changed pages, so the message is the change report. Integrations fire after every finished run, also when nothing changed (an empty dataset); if you only want a message when something changed, use a webhook or a Make/Zapier/n8n step that checks whether the dataset has items.

**Every audited page is charged, also the pages that are not output in "only changes" mode** (the work of fetching and checking them is the same). The `SITE_SUMMARY` record shows how many pages were audited and how many were output. Use one alert name per schedule: two different schedules with the same name would compare against each other.

### Pricing

Pay per audited page: **$8.05 per 1,000 pages** on the Apify Free plan; on paid plans **$7.00** (Starter), **$5.95** (Scale) and **$4.90** (Business and higher) per 1,000 (the price for your plan is shown on the Pricing tab). The examples below use the Free-plan price.

What is charged: one `page-audited` event per page that was fetched and checked, whether it is a dataset row or, in "only changes" monitor mode, a page that was checked but not output. The internal link check and the site-wide checks are included. Pages that answer with a 4xx status (e.g. 404) and non-HTML URLs from your sitemap (e.g. PDFs) count as audited pages and are charged: their row reports the status, redirects and the issue (`HTTP_4XX`, `SITEMAP_URL_NOT_200`, `NOT_HTML`). Never charged: pages that robots.txt disallows, pages removed by your filters, pages that could not be fetched (network error, bot check, server error), sitemap files and robots.txt.

| Audit | Pages | Cost |
|---|---|---|
| One 1,000-page site, once | 1,000 | $8.05 |
| A 500-page site, every week | about 2,000 / month | $16.10 / month |
| A 5,000-page shop after each of 4 releases a month | 20,000 / month | $161.00 / month |
| 10 client sites of 500 pages, every week | about 20,000 / month | $161.00 / month |

A small start fee of $0.00005 per run applies. Set a **maximum cost per run** in the run options: the Actor then audits only as many pages as that pays for and stops cleanly; **Max pages per site** caps each site.

### Limits and notes

- **No JavaScript is run.** Pages are fetched with plain HTTP and checked as a search engine sees them before rendering. Content, titles or tags that only appear after JavaScript runs (many single-page apps) are not seen. No Core Web Vitals or other browser measurements.
- **Up to 5,000 pages per site** and 50 start URLs per run; each site's pages are kept until the site is done, so duplicates are checked across the whole site before anything is saved. Up to 200 sitemap files and 5 index levels per site.
- **robots.txt is respected** (RFC 9309, including `*` and `$` rules), for pages, sitemaps, redirects and link checks. Its `Crawl-delay` is honoured; a site that asks for more than 60 seconds between requests is skipped. If robots.txt cannot be read (server error), the site is skipped to be safe.
- **Politeness:** at most 4 requests at a time per host and at most 4 per second, a fixed User-Agent that names this Actor (`GlidepathSeoAudit`), three sites in parallel.
- **No bot-check bypass, no proxies, no logins.** A Cloudflare/DataDome-style challenge, a 401/403 or a persistent 429 is reported as `BLOCKED` in `ERRORS` and not charged. Private and internal addresses are refused.
- **A site that blocks or rate-limits the Actor is stopped and reported, not charged.** After 10 refusals in a row, or 15 among the last 20 requests, the rest of that site is skipped (`HOST_BLOCKED`, or `RATE_LIMITED` for HTTP 429, in `ERRORS`); pages audited before that are kept and charged. A `Retry-After` header pauses all requests to the site; a site that asks to wait more than 60 seconds is stopped as `RATE_LIMITED`.
- The crawl (sites without a sitemap) follows `<a href>` links of the same site, skips links marked `nofollow` and pages with a `nofollow` robots directive, and does not follow links to images, scripts, documents or archives.
- Response times are measured from the Apify server, not from your visitors' location.
- The run stops fetching shortly before its timeout (60 seconds plus a little time per page still to save) so that every page audited so far is saved and charged correctly (`stoppedBy: timeLimit` in `SITE_SUMMARY`; link checks not made in time are counted as `notCheckedTimeLimit`). Large sites, and sites with a long `Crawl-delay`, need a run timeout that leaves room for them.

### FAQ

**Is it legal to audit a website with this Actor?** It reads public pages the way a search engine crawler does: only what robots.txt allows, at a polite rate, with an honest User-Agent, without logging in or getting around any protection. The output describes page structure (titles, tags, links, status codes); titles, descriptions and headings have e-mail addresses and phone numbers removed, and no personal data fields are output. Audit your own sites and your clients' sites; for other sites, check their terms. If in doubt, ask a lawyer.

**Why did my site get `NO_SITEMAP` or only a few pages?** With **How to find pages** set to `sitemap`, a site without a sitemap is skipped; with `auto` it is crawled instead. If the sitemap lists only some pages, only those are audited: enter the sitemap URL you want, or use `crawl`. `SITE_SUMMARY` shows how many sitemap URLs were read and why pages were not audited.

**How do I audit only one section of a site?** Enter the site and set **Only URLs matching**, e.g. `/blog/`. Pages outside the pattern are not audited or charged (a crawl may still read them to find links, without saving them).

**Can it find broken links?** Yes, internal ones: turn on **Check internal links and canonical URLs**. Links to pages that were audited anyway are not requested again; the others get a HEAD request (GET if HEAD is refused), up to **Max link checks per site**. External links are counted but not checked.

**What does "only changes" mode charge?** One event per audited page, also for the pages that are not output. See *Monitor mode* above.

**Why is a page that works in my browser reported with few words or a missing title?** The page is probably rendered with JavaScript. This Actor sees the HTML the server sends, like a search engine's first pass.

**Can I use it with Make, Zapier, n8n, Slack or an AI agent?** Yes: through the Integrations tab, the Apify API and clients, and the Apify MCP server (the input is a list of websites).

### Changelog

See [CHANGELOG.md](CHANGELOG.md).

### Support

Found a problem or need a feature? Open an issue on the Actor's Issues tab. We read every one and answer it there.

# Changelog

This Actor's version history is a separate document: https://apify.com/glidepath/seo-site-audit/changelog.md

# Actor input Schema

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

One per line, up to 50. A website (https://example.com) is audited from the sitemaps its robots.txt lists, else /sitemap.xml; a sitemap URL is read directly. URLs on the same site (with or without www.) are audited together.

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

Stop after auditing this many pages of each site (each audited page is charged).

## `discovery` (type: `string`):

'auto': the site's sitemaps (robots.txt Sitemap lines, /sitemap.xml, indexes, .gz), or a breadth-first crawl of same-site links from the start page when there is no sitemap. 'sitemap': sitemaps only. 'crawl': links only.

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

Audit only pages whose URL matches at least one of these regular expressions, e.g. '/blog/'. Up to 20. Filtered-out pages are not charged.

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

Skip pages whose URL matches any of these regular expressions, e.g. '/tag/' or '?page='. Up to 20.

## `checkInternalLinks` (type: `boolean`):

Also request every internal link found on the audited pages (HEAD, GET if HEAD is refused) to report broken links (4xx/5xx) and canonical URLs that do not return 200. Pages already audited are not requested again. Included in the page price.

## `maxLinkChecksPerSite` (type: `integer`):

At most this many extra requests per site for the link check. Links over the limit are counted in SITE_SUMMARY as not checked.

## `alertName` (type: `string`):

Remember this audit's issues under this name (letters, digits, '-' and '\_'). Each row then gets a 'change' field with the issue codes that are new or resolved since the last run with the same name. Use one name per schedule.

## `onlyChanges` (type: `boolean`):

With an alert name: output only pages with new or resolved issues. Every audited page is still charged, also the ones not output. The first run outputs every page that has an issue.

## Actor input object example

```json
{
  "startUrls": [
    "https://semver.org"
  ],
  "maxPagesPerSite": 100,
  "discovery": "auto",
  "checkInternalLinks": false,
  "maxLinkChecksPerSite": 500,
  "onlyChanges": false
}
```

# Actor output Schema

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

No description

## `siteSummary` (type: `string`):

No description

## `errors` (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://semver.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("glidepath/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://semver.org"] }

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

```

## MCP server setup

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