# Sitemap Integrity Auditor (`deyvison-md91/sitemap-integrity-auditor`) Actor

Checks a supplied list of public URLs or sitemap entries and returns HTTP status, redirect chain and timing. No proxies, no paid APIs, no private data.

- **URL**: https://apify.com/deyvison-md91/sitemap-integrity-auditor.md
- **Developed by:** [Deyvison Miguel](https://apify.com/deyvison-md91) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 url checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Sitemap Integrity Auditor

Check a list of URLs — or the URLs found in a public sitemap — and get evidence-based HTTP status, redirect chains, content type and response timing for every reference. Built for SEO agencies, site-maintenance teams, e-commerce operators and developers managing migrations or large URL catalogs.

No crawling of third-party platforms, no continuous monitoring, no authentication, no personal or applicant data, no proxies and no paid third-party APIs. You supply the references; the Actor checks only those.

### What it does

For every public `http`/`https` reference supplied, the Actor performs one on-demand check and returns:

| Field | Meaning |
|---|---|
| `inputUrl` | The URL you supplied |
| `finalUrl` | Final URL after redirects |
| `checkedAt` | UTC ISO timestamp of the check |
| `statusCode` | Final HTTP status code, or `null` on network failure |
| `status` | `ok`, `broken`, `redirect` or `network_error` |
| `redirectChain` | Ordered hops with `from`, `status`, `to` |
| `redirectCount` | Number of redirect hops |
| `contentType` | Response `Content-Type` header |
| `elapsedMs` | Time spent checking this URL |
| `error` | Present only for `network_error` |

Exact duplicate URLs are removed before checking. A `SUMMARY` record in the key-value store contains status counts, number of charges, sitemap errors and the finish timestamp.

### Input

| Field | Type | Default | Range | Description |
|---|---|---|---|---|
| `urls` | array | — | — | Public http/https URLs to check |
| `sitemapUrls` | array | — | — | Public `sitemap.xml` URLs; `<loc>` entries are added to the check list |
| `maxUrls` | integer | `200` | 1–200 | Hard cap on URLs checked per run — this controls your bill |
| `concurrency` | integer | `5` | 1–10 | Parallel HTTP requests |
| `timeoutMs` | integer | `8000` | 1000–30000 | Per-request timeout in milliseconds |

Simple input:

```json
{
  "urls": [
    "https://example.com/",
    "https://example.com/careers/123"
  ],
  "maxUrls": 50
}
```

Input from a public sitemap:

```json
{
  "sitemapUrls": ["https://example.com/sitemap.xml"],
  "maxUrls": 200
}
```

### Output

Results are written to the default dataset, one item per checked URL:

```json
{
  "inputUrl": "https://example.com/careers/123",
  "finalUrl": "https://example.com/careers/123",
  "checkedAt": "2026-11-18T21:40:44.544Z",
  "statusCode": 200,
  "status": "ok",
  "redirectChain": [],
  "redirectCount": 0,
  "contentType": "text/html; charset=utf-8",
  "elapsedMs": 105
}
```

A broken link looks like this:

```json
{
  "inputUrl": "https://example.com/old-page",
  "finalUrl": "https://example.com/old-page",
  "checkedAt": "2026-11-18T21:42:05.309Z",
  "statusCode": 404,
  "status": "broken",
  "redirectChain": [],
  "redirectCount": 0,
  "contentType": "text/html; charset=utf-8",
  "elapsedMs": 61
}
```

### Pricing — Pay per event

| Event | Price | When it is charged |
|---|---|---|
| `url-checked` (primary) | **$1.20 per 1,000 URLs** (US$ 0.0012 per URL) | One charge per URL verified |
| `apify-default-dataset-item` | $0.01 per 1,000 items | Platform minimum when a dataset item is written |
| `apify-actor-start` | $0.00005 | Actor start; covers the first 5 seconds of compute |

You pay only for the work you request. Platform usage costs are **included** — they are not billed separately to you. You can set a maximum charge per run in Apify Console; the Actor respects that limit.

Example: 200 URLs cost about **$0.24** (US$ 0.0012 × 200), plus negligible synthetic events.

### Limits and honest scope

- **Maximum 200 URLs per run.** Use `maxUrls` to cap cost; larger catalogs should be split into multiple runs.
- **On-demand only.** The Actor does **not** continuously monitor URLs, schedule checks, crawl websites, send alerts or webhooks.
- It does not collect job descriptions, applicant data or any private/authenticated content, and it does not resell third-party data.
- Network failures are reported as `network_error` and are distinct from a confirmed `broken` (HTTP error) result.
- Results reflect the moment of the check; a URL may change afterwards.

### Typical uses

- Find dead apply links in a job board after a migration.
- Validate URLs imported into a site or CMS from a spreadsheet.
- Audit a public sitemap before a launch or during routine maintenance.
- Verify that expected pages return 200 and that unexpected redirects are visible.

# Actor input Schema

## `urls` (type: `array`):

Public http/https URLs supplied by you. No private or authenticated URLs.

## `sitemapUrls` (type: `array`):

Optional public sitemap.xml URLs. Their <loc> entries are added to the check list.

## `maxUrls` (type: `integer`):

Hard cap on checked URLs per run (1-200). Controls your bill.

## `concurrency` (type: `integer`):

Parallel HTTP requests (1-10).

## `timeoutMs` (type: `integer`):

Per-request timeout (1000-30000).

## Actor input object example

```json
{
  "maxUrls": 200,
  "concurrency": 5,
  "timeoutMs": 8000
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing one result per supplied URL: inputUrl, finalUrl, checkedAt, statusCode, status (ok/broken/redirect/network_error), redirectChain, redirectCount, contentType, elapsedMs and optional error for network failures.

## `summary` (type: `string`):

Key-value store record SUMMARY with status counts, number of charges, sitemap errors and finishedAt timestamp.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("deyvison-md91/sitemap-integrity-auditor").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("deyvison-md91/sitemap-integrity-auditor").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 '{}' |
apify call deyvison-md91/sitemap-integrity-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,deyvison-md91/sitemap-integrity-auditor"
        }
    }
}
```

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/SHZRxdiaYjo31SKD7/builds/K4QZZHWYdBKUg6XMa/openapi.json
