# Sitemap Broken URL Checker: find 404s and redirects in sitemaps

**Use case:** 

Enter a website: finds its XML sitemaps via robots.txt, extracts every URL and sends each one an HTTP check (HEAD, GET fallback), so you see which sitemap URLs return 404, 5xx or a redirect instead of 200. Search engines want only live, canonical URLs in a sitemap. Pay per event: $0.001 per sitemap file parsed, $0.0003 per URL extracted and $0.0005 per status check.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://crawlee.dev"
    }
  ],
  "maxUrls": 100,
  "maxSitemapFiles": 200,
  "checkStatus": true,
  "statusSampleSize": 0,
  "sameHostOnly": true
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "string"
  },
  "sitemap": {
    "label": "Sitemap",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "integer"
  },
  "diff": {
    "label": "Diff",
    "format": "string"
  },
  "issues": {
    "label": "Issues",
    "format": "array"
  }
}
```

## About this Actor

This example demonstrates how to use [XML Sitemap Checker, Validator & URL Extractor](https://apify.com/lintlab/sitemap-doctor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/lintlab/sitemap-doctor.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/lintlab/sitemap-doctor.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`).
