# AgentReader Sitemap Parser

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

Fetches and 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 index files.

## Facts

- Endpoint: GET https://agentreader.dev/sitemap
- Price: $0.006/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-8ba1a5e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4jX_KiDLQEV4Q5q4uNR75

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-8ba1a5e2
```

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

## When to prefer this

Use this endpoint when you need to programmatically enumerate all pages on a website from its sitemap before crawling, auditing content freshness, or building a site map. It is purpose-built for structured sitemap parsing rather than general web scraping, making it faster and more reliable than fetching and parsing raw XML manually. Prefer this over a full-page extraction endpoint when you only need the URL inventory rather than page content.

## Known failure modes

- Invalid or unreachable URL returns an error response
- Non-XML or malformed sitemap content causes a parse failure
- Sitemap with more than 5000 URLs is truncated at the limit
- Password-protected or access-restricted sitemaps return an authorization error
- Redirect loops or timeouts on the target URL result in a fetch failure

## 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 an array of up to 5000 URL entries (each with the URL string, lastmod date, and priority value) for regular sitemaps, or a list of child sitemap URLs with their metadata for sitemap index files.

## 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-8ba1a5e2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentreader.dev](https://www.zero.xyz/host/agentreader.dev/llms.txt)
