# Toll402 Sitemap Parser

> Toll402 Sitemap Parser is a paid API for AI agents from toll402.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Fetches and parses a sitemap.xml or sitemap index URL, returning all discovered URLs up to a configurable limit

## Facts

- Endpoint: POST https://toll402.dev/v1/t/sitemap_parse
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toll402-sitemap-parser-7109b10f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w4AsgOURC-OcHbmWyqrVH

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 toll402-sitemap-parser-7109b10f -d '<json body>'
```

Example prompt: Can you fetch the sitemap at https://example.com/sitemap.xml and give me all the URLs listed there, up to 500?

## When to prefer this

Use this endpoint when you need a structured list of all URLs on a website and that site publishes a sitemap.xml or sitemap index. It is faster and more reliable than crawling pages manually, and it respects the site's own declared page inventory. Prefer it over general web-scraping when you want URL discovery rather than page content extraction.

## Known failure modes

- Sitemap URL is unreachable or returns a non-200 HTTP status
- URL does not point to a valid XML sitemap (e.g. HTML page returned instead)
- Sitemap is malformed or unparseable XML
- maxUrls exceeds the maximum allowed value of 2000
- Required 'url' field missing from request body
- Network timeout fetching a large sitemap index

## How this service works

The OpenRouter for AI-agent tools: one gateway, one wallet, every capability. Built-in tools, forged tools, a global verified business directory and 2,000+ aggregated x402 services, all paid per call in USDC via x402 (HTTP 402). No signup, no API key.

## Output

A JSON object with ok: true and an array of URLs discovered from the sitemap or sitemap index, up to the specified maxUrls limit (default 2000). Each entry typically includes the page URL and may include metadata present in the sitemap such as last-modified dates or priority values.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "URL of the sitemap.xml or sitemap index to fetch"
      },
      "maxUrls": {
       "type": "integer",
       "default": 2000,
       "maximum": 2000,
       "minimum": 1
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toll402-sitemap-parser-7109b10f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toll402.dev](https://www.zero.xyz/host/toll402.dev/llms.txt)
