# Audit every URL in a website's XML sitemap

**Use case:** 

Reads the site's robots.txt and XML sitemaps and audits each listed URL: status code, canonical, title and meta description length, H1, word count, noindex and response time. Shows sitemap URLs that redirect, return errors or are blocked from indexing. Replace the start URL with your own site.

## Input

```json
{
  "startUrls": [
    "https://docs.apify.com/"
  ],
  "maxPages": 30,
  "crawlMode": "sitemap",
  "checkExternalLinks": false,
  "onlyPagesWithIssues": false,
  "useSitemap": true,
  "includeSubdomains": false,
  "maxDepth": 0,
  "maxLinkChecks": 500,
  "maxConcurrency": 5,
  "slowPageMs": 2000,
  "timeoutSecs": 20
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "statusCode": {
    "label": "Status",
    "format": "number"
  },
  "seoScore": {
    "label": "Score",
    "format": "number"
  },
  "errorsCount": {
    "label": "Errors",
    "format": "number"
  },
  "warningsCount": {
    "label": "Warnings",
    "format": "number"
  },
  "issues": {
    "label": "Issues",
    "format": "array"
  },
  "title": {
    "label": "Title"
  },
  "titleLength": {
    "label": "Title len",
    "format": "number"
  },
  "metaDescriptionLength": {
    "label": "Desc len",
    "format": "number"
  },
  "h1Count": {
    "label": "H1s",
    "format": "number"
  },
  "canonicalUrl": {
    "label": "Canonical",
    "format": "link"
  },
  "indexable": {
    "label": "Indexable",
    "format": "boolean"
  },
  "inSitemap": {
    "label": "In sitemap",
    "format": "boolean"
  },
  "brokenLinksCount": {
    "label": "Broken links",
    "format": "number"
  },
  "responseTimeMs": {
    "label": "Response ms",
    "format": "number"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Website SEO Audit Crawler & Broken Link Checker Actor is ready to run with the inputs already set for "Audit every URL in a website's XML sitemap". [Sign up or log in](https://console.apify.com/create-task-from-example/QhZXekjvHA6JiSBVZ) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Audit every URL in a website's XML sitemap" task

The Website SEO Audit Crawler & Broken Link Checker Actor will start running based on the input automatically. You can also change all the input fields, like website or page urls, max pages, and more, to match your specific use case.

### 3. Receive the "Audit every URL in a website's XML sitemap" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, status, score, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Audit every URL in a website's XML sitemap" task via API](https://apify.com/teddythebuilder/website-seo-audit.md).

## About this Actor

This example demonstrates how to use [Website SEO Audit Crawler & Broken Link Checker](https://apify.com/teddythebuilder/website-seo-audit.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/teddythebuilder/website-seo-audit.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/teddythebuilder/website-seo-audit.md

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`).
