# Swift Bot Labs Toolbox – Web Sitemap Fetcher

> Swift Bot Labs Toolbox – Web Sitemap Fetcher is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-31).

Fetches and parses the XML sitemap of a given website URL, returning a structured list of all indexed URLs with optional last-modified dates.

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/web/sitemap?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-toolbox-web-sitemap-fetcher-f8d1a17e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qENwxxzN9ZEYQqJuI6N_M

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 swift-bot-labs-toolbox-web-sitemap-fetcher-f8d1a17e
```

Example prompt: Can you fetch the sitemap for cloudflare.com and give me the full list of URLs it contains?

## When to prefer this

Use this endpoint when you need to programmatically discover all indexed pages of a website without a full crawl. It is ideal for SEO analysis, site mapping, content auditing, or competitor research where the target site exposes a standard sitemap.xml. Prefer this over general web scrapers when you want structured page enumeration rather than page content extraction, and when you want a pay-per-call model with no API key setup.

## Known failure modes

- Target site has no sitemap.xml → returns error or empty result
- Site blocks automated requests → HTTP 403 or timeout
- Invalid or unreachable URL provided → network error
- Sitemap is extremely large and limit is not set → truncated results
- Malformed XML sitemap → parse error in response

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

A JSON object containing the sitemap type (urlset), a list of URL entries each with a 'loc' and optional 'lastmod' field, the total count of URLs found, and the resolved sitemap URL that was fetched.

## 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",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string"
      },
      "limit": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "web-sitemap",
  "result": {
   "type": "urlset",
   "urls": [
    {
     "loc": "https://www.cloudflare.com/",
     "lastmod": "2026-10-20"
    }
   ],
   "total": 4211,
   "sitemapUrl": "https://www.cloudflare.com/sitemap.xml"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-toolbox-web-sitemap-fetcher-f8d1a17e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
