# AgentReader Sitemap Parser

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

Parses an XML sitemap or sitemap index URL into structured JSON, returning up to 5000 URLs with lastmod and priority metadata, or the list of child sitemaps for a sitemap index.

## Facts

- Endpoint: GET https://agent-reader.agent-reader.workers.dev/sitemap
- 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/agentreader-sitemap-parser-07f21666
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B1LZZ9_TmzZ7HHKn9gEUg

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 agentreader-sitemap-parser-07f21666
```

Example prompt: Can you fetch and parse the sitemap at https://example.com/sitemap.xml and give me the full list of URLs with their lastmod dates and priorities?

## When to prefer this

Choose this endpoint when you need to programmatically discover the full URL inventory of a website from its XML sitemap, especially when planning a crawl, auditing SEO coverage, or mapping site structure. It handles both standard sitemaps and sitemap index files. Prefer it over manual HTML link-following when the site provides a well-maintained sitemap.xml.

## Known failure modes

- Invalid or malformed URL returns an error — URL must be an absolute http/https URL
- Non-XML or non-sitemap content at the URL may cause parse failure
- Sitemaps exceeding 5000 URLs are truncated at 5000 entries
- Unreachable or slow URLs may result in timeout errors
- Password-protected or bot-blocked sitemaps may return access denied

## How this service works

Parse an XML sitemap or sitemap index into JSON: up to 5000 URLs with lastmod and priority, or the list of child sitemaps. Useful for agents planning site crawls or auditing site structure.

## Output

A JSON object containing either: (1) a list of up to 5000 URL entries each with lastmod date and priority value when given a standard sitemap, or (2) a list of child sitemap URLs when given a sitemap index. The response is structured for easy programmatic use by agents planning crawls or auditing site structure.

## 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": "Absolute http(s) URL of the sitemap XML"
      }
     }
    }
   },
   "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/agentreader-sitemap-parser-07f21666/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-reader.agent-reader.workers.dev](https://www.zero.xyz/host/agent-reader.agent-reader.workers.dev/llms.txt)
