# Audit a website for broken links and SEO issues

**Use case:** 

Crawl a website for broken links, duplicate titles, missing meta and on-page health. This example audits books.toscrape.com, a public practice site, and caps the crawl at 25 pages. Most sites work without a proxy.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://books.toscrape.com/"
    }
  ],
  "maxPagesPerSite": 25,
  "useSitemaps": true,
  "crawlSitemapUrls": true,
  "maxSitemapUrls": 50000,
  "includeUrlPatterns": [
    "/blog/**"
  ],
  "excludeUrlPatterns": [
    "/tag/**",
    "/search*"
  ],
  "includeSubdomains": false,
  "stayInStartPath": false,
  "ignoreQueryParameters": false,
  "respectNofollow": false,
  "checkInternalLinks": true,
  "checkExternalLinks": true,
  "checkResources": true,
  "maxLinkChecksPerSite": 200,
  "siteChecks": true,
  "pageOutput": "all",
  "outputBrokenLinks": true,
  "htmlReport": true,
  "slowResponseMs": 1500,
  "thinContentWords": 200,
  "respectRobotsTxt": true,
  "maxConcurrency": 5,
  "requestTimeoutSecs": 30,
  "maxRetries": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "type": {
    "label": "Row type",
    "format": "string"
  },
  "url": {
    "label": "URL",
    "format": "string"
  },
  "statusCode": {
    "label": "HTTP status",
    "format": "integer"
  },
  "indexable": {
    "label": "Indexable",
    "format": "boolean"
  },
  "score": {
    "label": "Page or site score",
    "format": "number"
  },
  "errors": {
    "label": "Error count",
    "format": "integer"
  },
  "warnings": {
    "label": "Warning count",
    "format": "integer"
  },
  "notices": {
    "label": "Notice count",
    "format": "integer"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "titleLength": {
    "label": "Title length",
    "format": "integer"
  },
  "metaDescriptionLength": {
    "label": "Meta description length",
    "format": "integer"
  },
  "h1Count": {
    "label": "H1 count",
    "format": "integer"
  },
  "wordCount": {
    "label": "Word count",
    "format": "integer"
  },
  "depth": {
    "label": "Click depth",
    "format": "integer"
  },
  "inlinks": {
    "label": "Inlinks",
    "format": "integer"
  },
  "inSitemap": {
    "label": "In sitemap",
    "format": "boolean"
  },
  "canonical": {
    "label": "Canonical URL",
    "format": "string"
  },
  "responseTimeMs": {
    "label": "Response time (ms)",
    "format": "integer"
  },
  "site": {
    "label": "Site",
    "format": "string"
  }
}
```

## How it works

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

The SEO Audit Crawler: Broken Links, Duplicates & Site Health Actor is ready to run with the inputs already set for "Audit a website for broken links and SEO issues". [Sign up or log in](https://console.apify.com/create-task-from-example/tzpC74eizpc9iYjiP) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Audit a website for broken links and SEO issues" task

The SEO Audit Crawler: Broken Links, Duplicates & Site Health Actor will start running based on the input automatically. You can also change all the input fields, like websites to audit, max pages per site, and more, to match your specific use case.

### 3. Receive the "Audit a website for broken links and SEO issues" 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, URL, HTTP status, 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 a website for broken links and SEO issues" task via API](https://apify.com/steadyutil/seo-audit-crawler.md).

## FAQ

### What site should I start with?

Paste a homepage or any start URL. Each host is crawled separately. This example uses books.toscrape.com, a public practice site, capped at 25 pages so a first run stays cheap.

### What does it cost?

Each page audited is $8 per 1,000, and each extra link checked is $0.20 per 1,000. Higher Apify plans have lower prices. Set Max pages per site to cap the run.

## About this Actor

This example demonstrates how to use [SEO Audit Crawler: Broken Links, Duplicates & Site Health](https://apify.com/steadyutil/seo-audit-crawler.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/steadyutil/seo-audit-crawler.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/steadyutil/seo-audit-crawler.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`).
