# Xml Sitemap Generator — REST API endpoint `xml-sitemap-generator`

Generate a valid XML sitemap from a list of URLs and return the XML, the number of URLs written, the invalid URLs that were skipped, and the byte size. Each URL can carry its own priority, changefreq, and lastmod; defaults apply otherwise. Above 50,000 valid URLs a sitemap index is returned instead.

- Category: seo
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/xml-sitemap-generator/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/xml-sitemap-generator/
- Same tool on the other surface: https://findutils.com/mcp/xml-sitemap-generator/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/xml-sitemap-generator/execute \
  -H "Content-Type: application/json" \
  -d '{
    "urls": [
      "https://example.com/",
      "https://example.com/about"
    ]
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/xml-sitemap-generator
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `urls` | array | yes | URLs as plain strings or as { url, priority?, changefreq?, lastmod? } objects. Only http(s) URLs are written; others are reported in invalid_urls. |
| `default_priority` | string | no | Priority for URLs without one: "0.0" to "1.0" in steps of 0.1, or "" for none. Default "0.5". Default: `"0.5"`. |
| `default_changefreq` | string ( \| always \| hourly \| daily \| weekly \| monthly \| yearly \| never) | no | Change frequency for URLs without one. Default "weekly"; "" omits the tag. Default: `"weekly"`. |
| `default_lastmod` | string | no | Last-modified date (YYYY-MM-DD) for URLs without one. Default: omitted. |
| `remove_duplicates` | boolean | no | Drop repeated URLs (case-insensitive). Default true. Default: `true`. |
| `index_base_url` | string | no | Base name for child sitemaps when an index is needed. Default "https://example.com/sitemap". |

Example arguments (verified):

```json
{
  "urls": [
    "https://example.com/",
    "https://example.com/about"
  ]
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Then ask the client to call `findutils:xml_sitemap_generator`. Full MCP reference: https://findutils.com/mcp/xml-sitemap-generator/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
