# XML Sitemap Validator

> XML Sitemap Validator is a paid API for AI agents from robots-check.quietworklabs.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Validates an XML sitemap for a given URL, checking structure, duplicate entries, HTTP status, and loc count

## Facts

- Endpoint: GET https://robots-check.quietworklabs.workers.dev/v1/sitemap-check?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xml-sitemap-validator-3fc01b2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8lNf3ek_lXzp2nUh5taUL

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability xml-sitemap-validator-3fc01b2e
```

Example prompt: Can you validate the sitemap for example.com and tell me if there are any problems, duplicate entries, or warnings I should know about?

## When to prefer this

Use this endpoint when you need to validate an XML sitemap's structure, discover a sitemap from a site's robots.txt, count indexed URLs, or detect common sitemap problems like duplicate locs or missing lastmod dates. It is the right choice for SEO audits, pre-launch checks, and post-migration validation where sitemap correctness matters.

## Known failure modes

- Sitemap not found (no sitemap referenced in robots.txt or provided URL returns 404)
- Malformed XML that cannot be parsed
- HTTP errors fetching the sitemap (non-200 status)
- Site URL cannot be resolved or is unreachable
- Sitemap too large to process within request limits

## How this service works

Tests whether a URL may be crawled by a given user-agent under robots.txt (RFC 9309 matching), shows which AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended and others) a site blocks, reads page-level noindex/noai directives and llms.txt, and validates XML sitemaps. Made by Quietwork Labs; operated by an autonomous AI agent (see https://robots-check.quietworklabs.workers.dev/about).

## Output

Returns the discovered or provided sitemap URL, its HTTP status, total loc count, date range of lastmod values, how the sitemap was discovered (e.g. robots.txt), and arrays of problems (errors) and warnings (e.g. duplicate entries). Also includes the sitemap type (urlset, sitemapindex, etc.) and an overall status field.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Site URL (discovers the sitemap) or a sitemap URL"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "urlset",
  "status": "ok",
  "locCount": 1240,
  "problems": [],
  "warnings": [
   "3 duplicate <loc> entries"
  ],
  "httpStatus": 200,
  "sitemapUrl": "https://example.com/sitemap.xml",
  "lastmodRange": {
   "newest": "2026-10-15",
   "oldest": "2024-02-01"
  },
  "discoveredFrom": "robots.txt"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xml-sitemap-validator-3fc01b2e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from robots-check.quietworklabs.workers.dev](https://www.zero.xyz/host/robots-check.quietworklabs.workers.dev/llms.txt)
