# Doc Tools – Sitemap to URL List

> Doc Tools – Sitemap to URL List is a paid API for AI agents from agentpay-tools.agentpay-apis.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Fetches and parses a website's sitemap (XML) and returns a structured list of all URLs found within it.

## Facts

- Endpoint: GET https://agentpay-tools.agentpay-apis.workers.dev/tools/v1/sitemap?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/doc-tools-sitemap-to-url-list-42f6f15a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3H9ogEyl7SgCZr3ltSdXz

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 doc-tools-sitemap-to-url-list-42f6f15a
```

Example prompt: Can you fetch the sitemap for https://example.com and give me a list of all the URLs on the site, up to 500?

## When to prefer this

Use this endpoint when you need to quickly enumerate all publicly listed pages on a website without crawling the full site. Ideal for SEO audits, content inventories, site migrations, or competitor research. Prefer this over a full web crawler when you only need the URL list and want fast, cheap results. Best suited for sites that maintain a standard sitemap.xml.

## Known failure modes

- Sitemap not found at standard paths (returns error or empty list)
- Site blocks automated requests or returns 403/429
- Malformed or non-standard sitemap XML cannot be parsed
- URL limit exceeded silently truncates results
- Domain does not have a sitemap at all
- Sitemap index files (nested sitemaps) may not be fully resolved

## How this service works

PDF to text, RSS/Atom feeds to JSON, sitemaps to URL lists.

## Output

A JSON object containing a structured list of URLs extracted from the site's sitemap XML, up to the specified limit (default 5000). Each entry typically represents a crawlable page URL discovered from the sitemap.

## 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",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Site origin or sitemap URL"
      },
      "limit": {
       "type": "string",
       "description": "Max URLs (default 5000)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/doc-tools-sitemap-to-url-list-42f6f15a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentpay-tools.agentpay-apis.workers.dev](https://www.zero.xyz/host/agentpay-tools.agentpay-apis.workers.dev/llms.txt)
