# agentstools.dev Sitemap Discovery & Parser

> agentstools.dev Sitemap Discovery & Parser is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Discovers and parses a website's sitemap from a root URL or direct .xml URL, returning all URLs with their lastmod and priority metadata, including handling of sitemap index files.

## Facts

- Endpoint: GET https://api.agentstools.dev/sitemap
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstools-dev-sitemap-discovery-parser-e39866fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_win87pIyS8bxbrRSa4d4C

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 agentstools-dev-sitemap-discovery-parser-e39866fd
```

Example prompt: Can you fetch the sitemap for https://example.com and give me a list of all the pages on the site along with when they were last updated?

## When to prefer this

Use this endpoint when you need to quickly enumerate all publicly indexed URLs of a website without crawling it page by page. Ideal for SEO analysis, content auditing, monitoring site structure, or seeding a web scraping workflow. It handles both direct sitemap URLs and auto-discovery via robots.txt, and resolves sitemap index files one level deep — making it more robust than a naive fetch of /sitemap.xml.

## Known failure modes

- No sitemap found at the given URL or via robots.txt — returns empty or error response
- Malformed XML sitemap — parsing may fail or return partial results
- Sitemap index with deeply nested levels beyond one — only one level is resolved
- URL is not accessible or returns non-200 status — fetch fails
- Invalid or missing url query parameter — request rejected

## 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

A structured list of URLs found in the sitemap, each accompanied by lastmod date and priority score where available. If the target URL is a sitemapindex, child sitemaps are followed one level deep and their URLs are aggregated into the response.

## 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/agentstools-dev-sitemap-discovery-parser-e39866fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
