# sitemap-validate

> sitemap-validate is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches and validates a sitemap or sitemap index for well-formedness, URL integrity, format compliance, and Sitemaps protocol limits

## Facts

- Endpoint: GET https://intel.rallylive.ca/dev/sitemap-validate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitemap-validate-5e06500b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7xCDuEOPm7N4_Z8Ye1ES-

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 sitemap-validate-5e06500b
```

Example prompt: Can you validate the sitemap at https://example.com/sitemap.xml and tell me if it's well-formed, whether any URLs are broken or duplicated, and if it exceeds the 50,000-URL or 50 MB limits?

## When to prefer this

Use this endpoint when you need to programmatically audit a sitemap for Sitemaps protocol compliance before submission to search engines, during CI/CD pipelines, or when diagnosing SEO crawl issues. Prefer this over generic XML validators because it enforces sitemap-specific rules: 50,000-URL cap, 50 MB limit, absolute URLs, same-host loc constraints, lastmod ISO 8601 format, valid changefreq/priority enumerations, gzip support, and correct namespace declarations.

## Known failure modes

- Sitemap URL is unreachable or returns non-200 HTTP status — returns error indicating fetch failure
- Sitemap URL points to non-XML or non-sitemap content — returns parse error
- Sitemap file exceeds 50 MB limit — flagged as error
- Network timeout when fetching large or slow sitemaps
- Gzip encoding errors if sitemap is malformed gzip

## How this service works

Sitemap validator: fetches a sitemap or index, checks well-formedness, namespace, type (urlset/sitemapindex), counts entries, validates loc URLs (absolute, same host, no duplicates), lastmod formats, changefreq/priority values, the 50,000-URL and 50 MB limits, gzip, and lists the first errors. Returns valid true/false with error and warning lists. $0.01 per sitemap.

## Output

Returns a JSON object with a top-level valid boolean, a list of errors (e.g. malformed XML, out-of-spec namespaces, non-absolute URLs, cross-host URLs, duplicate locs, bad lastmod formats, invalid changefreq/priority values, entries exceeding 50,000 or file size exceeding 50 MB), and a list of warnings. Also includes the detected sitemap type (urlset or sitemapindex), entry count, and gzip status.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitemap-validate-5e06500b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
