# Audit the pages listed in a sitemap

**Use case:** 

Point this Actor at a sitemap.xml and audit those pages: a 0-100 SEO score, ranked fixes, broken links and an HTML report. This example audits up to 20 pages from the Apify docs sitemap. $2 per 1,000 pages; failures free.

## Input

```json
{
  "startUrls": [
    "https://docs.apify.com/sitemap.xml"
  ],
  "maxPagesPerSite": 20,
  "maxPages": 1000,
  "auditWholeSite": true,
  "includePatterns": [],
  "excludePatterns": [],
  "checkBrokenLinks": true,
  "maxLinksPerPage": 20,
  "htmlReport": true,
  "respectRobotsTxt": true,
  "maxConcurrency": 10,
  "maxConcurrencyPerSite": 4,
  "requestTimeoutSecs": 20
}
```

## Output

```json
{
  "rowType": {
    "label": "Row type",
    "format": "string"
  },
  "url": {
    "label": "Page",
    "format": "string"
  },
  "score": {
    "label": "Score",
    "format": "integer"
  },
  "grade": {
    "label": "Grade",
    "format": "string"
  },
  "criticalCount": {
    "label": "Critical",
    "format": "integer"
  },
  "warningCount": {
    "label": "Warnings",
    "format": "integer"
  },
  "noticeCount": {
    "label": "Notices",
    "format": "integer"
  },
  "topIssue": {
    "label": "Biggest issue",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "titleLength": {
    "label": "Title length",
    "format": "integer"
  },
  "metaDescriptionLength": {
    "label": "Meta description length",
    "format": "integer"
  },
  "h1Count": {
    "label": "H1count",
    "format": "integer"
  },
  "canonicalStatus": {
    "label": "Canonical status",
    "format": "string"
  },
  "indexable": {
    "label": "Indexable",
    "format": "boolean"
  },
  "imagesMissingAlt": {
    "label": "Images missing alt",
    "format": "integer"
  },
  "wordCount": {
    "label": "Word count",
    "format": "integer"
  },
  "responseTimeMs": {
    "label": "Response time ms",
    "format": "integer"
  },
  "statusCode": {
    "label": "Status code",
    "format": "integer"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "errorCode": {
    "label": "Error code",
    "format": "string"
  },
  "siteScore": {
    "label": "Site score",
    "format": "integer"
  },
  "topFixes": {
    "label": "Top fixes (site rows)",
    "format": "array"
  }
}
```

## How it works

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

The SEO Audit Tool: Bulk Website Audit with Scores & Fixes Actor is ready to run with the inputs already set for "Audit the pages listed in a sitemap". [Sign up or log in](https://console.apify.com/create-task-from-example/4QtrEuBwn1s2jykB7) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Audit the pages listed in a sitemap" task

The SEO Audit Tool: Bulk Website Audit with Scores & Fixes Actor will start running based on the input automatically. You can also change all the input fields, like websites, sitemaps or page urls, max pages per website, and more, to match your specific use case.

### 3. Receive the "Audit the pages listed in a 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 row type, page, 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 the pages listed in a sitemap" task via API](https://apify.com/hillcountrybots/seo-audit.md).

## FAQ

### How much does this example cost?

Up to 20 successful page audits cost $0.04. Failed, blocked and broken pages are free. The Actor price is $2.00 per 1,000 audited pages.

### Does a sitemap URL audit only those pages?

Yes. A sitemap.xml or sitemap index is audited as the pages it lists, up to your page cap. You can also paste a homepage to audit a whole site.

### Are broken links checked?

Yes, broken-link checking is on by default and included in the same $0.002 per audited page. Turn it off if you only want on-page tags.

## About this Actor

This example demonstrates how to use [SEO Audit Tool: Bulk Website Audit with Scores & Fixes](https://apify.com/hillcountrybots/seo-audit.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/hillcountrybots/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/hillcountrybots/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`).
