# payai.agentstools.dev Sitemap Fetcher

> payai.agentstools.dev Sitemap Fetcher is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-16).

Fetches and parses a website's sitemap (via robots.txt discovery or direct XML URL), returning all URLs with lastmod and priority metadata, including one level of sitemapindex resolution.

## Facts

- Endpoint: GET https://payai.agentstools.dev/sitemap
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payai-agentstools-dev-sitemap-fetcher-95846fda
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MFTjScRc9S_ViQmm7ceMI

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 payai-agentstools-dev-sitemap-fetcher-95846fda
```

Example prompt: Can you fetch and parse the sitemap for https://example.com — I want to see all the URLs it lists along with their last-modified dates and priority scores?

## When to prefer this

Use this endpoint when you need to enumerate all indexed pages of a website, discover content structure, or build a crawl list from a known domain. It is ideal for SEO analysis, content auditing, or pre-crawl planning. Prefer it over manual HTTP scraping when the site exposes a standard sitemap.

## Known failure modes

- Site has no sitemap.xml or robots.txt entry pointing to one — returns empty or error
- Sitemap is malformed XML — parse error returned
- Sitemapindex goes more than one level deep — only one level is resolved
- Site blocks the request with 403 or rate-limiting — HTTP error propagated
- URL parameter missing or invalid — request validation error

## How this service works

Discover and parse a site's sitemap: pass a site root (found via robots.txt or /sitemap.xml) or a direct .xml. Returns URLs with lastmod/priority; handles <sitemapindex> (one level).

## Output

Returns a list of URLs found in the site's sitemap along with lastmod timestamps and priority values. If a sitemapindex is encountered, it resolves one level deep to return the combined set of URLs from child sitemaps.

## 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 root URL or a direct sitemap .xml URL"
      }
     }
    }
   },
   "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/payai-agentstools-dev-sitemap-fetcher-95846fda/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
