# x402 Web Tools – Sitemap Parser

> x402 Web Tools – Sitemap Parser is a paid API for AI agents from web.kagurazaka.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Fetches and parses a sitemap (or sitemap index) at a given URL, returning all listed URLs with their last-modified dates, and can auto-discover the sitemap from a site's robots.txt or /sitemap.xml.

## Facts

- Endpoint: GET https://web.kagurazaka.dev/v1/sitemap?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-web-tools-sitemap-parser-55556d68
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T2gvZhaBTH0LVU7f3Klb5

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 x402-web-tools-sitemap-parser-55556d68
```

Example prompt: Can you pull all the URLs from https://www.cloudflare.com's sitemap — up to 500 URLs — and include their last-modified dates?

## When to prefer this

Choose this endpoint when you need to enumerate pages on a website for SEO auditing, content discovery, or crawl planning, and want automatic sitemap discovery without knowing the sitemap URL in advance. It handles gzipped sitemaps and sitemap indexes natively. Prefer it over generic web scrapers when you specifically want structured sitemap data rather than rendered page content.

## Known failure modes

- Sitemap not found: site has no robots.txt sitemap directive and no /sitemap.xml — returns an error
- Invalid URL: non-https or malformed URL input returns a validation error
- Timeout: very large or slow-loading sitemaps may time out before completion
- Unreadable format: malformed XML in the sitemap causes a parse error
- Gzip decode failure: corrupted .gz sitemap cannot be decompressed
- Limit exceeded: requesting more than 1000 URLs is rejected
- Private/auth-gated sitemap: returns an access error if the sitemap requires authentication

## How this service works

The URLs a sitemap lists, with last modified dates, or the sitemaps a sitemap index lists. Given a site instead of a sitemap, it finds the sitemap from robots.txt or /sitemap.xml. Gzipped sitemaps are read too.

## Output

A JSON object containing the resolved sitemap URL, the kind of sitemap ('urlset' for a regular sitemap or 'sitemapindex' for an index), an array of URL entries each with 'url' and optional 'lastmod' fields, the total URL count in the sitemap, and a 'truncated' boolean indicating whether the result was capped by the limit parameter.

## 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": "https URL of a sitemap, or of the site"
      },
      "limit": {
       "type": "integer",
       "description": "how many URLs (1-1000, default 200)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "url": {},
      "kind": {},
      "urls": {},
      "total": {},
      "truncated": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://www.cloudflare.com/sitemap.xml",
  "kind": "urlset",
  "urls": [
   {
    "url": "https://www.cloudflare.com/learning/",
    "lastmod": "2026-10-01T00:00:00.000Z"
   }
  ],
  "total": 1200,
  "truncated": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-web-tools-sitemap-parser-55556d68/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web.kagurazaka.dev](https://www.zero.xyz/host/web.kagurazaka.dev/llms.txt)
