# agent402.tools Sitemap Fetcher & Parser

> agent402.tools Sitemap Fetcher & Parser is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Fetches and parses a sitemap.xml or sitemap index URL, returning up to 500 URLs with lastmod timestamps, or the child sitemaps of a sitemap index.

## Facts

- Endpoint: POST https://agent402.tools/api/sitemap
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-sitemap-fetcher-parser-a0d08e93
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-QMrdgGKvbFrlPp8lF9qT

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 agent402-tools-sitemap-fetcher-parser-a0d08e93 -d '<json body>'
```

Example prompt: Can you fetch and parse the sitemap at https://example.com/sitemap.xml and give me all the URLs listed along with their last-modified dates?

## When to prefer this

Use this endpoint when you need to programmatically discover all pages or sections of a website via its sitemap.xml, especially when you want lastmod timestamps for freshness checking or need to enumerate child sitemaps from a sitemap index. Prefer this over manual HTML crawling when a structured sitemap is available.

## Known failure modes

- Invalid or unreachable sitemap URL returns an error
- Non-XML or malformed XML at the URL causes a parse failure
- Sitemap index with more than 500 child sitemaps may be truncated
- URLs inside sitemaps that themselves contain more than 500 entries will be capped
- Timeout if the remote sitemap server is slow to respond
- HTTP errors (404, 403) from the sitemap host propagate as failures

## How this service works

Fetch and parse a sitemap.xml (or sitemap index): returns up to 500 URLs with lastmod, or the child sitemaps of an index.

## Output

A list of up to 500 URLs extracted from the sitemap with their lastmod timestamps, or, if the target is a sitemap index, a list of child sitemap URLs contained within it.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Sitemap URL (xml)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "urlset",
  "urls": [
   {
    "loc": "https://agent402.tools/",
    "lastmod": "2026-06-01"
   }
  ],
  "count": 42
 }
}
```

## More

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