Skip to content
Utilerio
All endpoints

XML Sitemap Generator

POST/api/v1/tools/sitemap-generator

Paste a list of URLs to generate a standard XML sitemap, with optional lastmod, changefreq and priority.

Authentication

Requires an API key in the X-API-Key header.

Try it

POST/api/v1/tools/sitemap-generator

Parameters

urlsstringrequired

Newline-separated list of URLs.

includeLastmodbooleanoptional

Include <lastmod>. Default true.

lastmodDatestringoptional

Date for <lastmod>, YYYY-MM-DD.

changefreqstringoptional

Value for <changefreq>. Default none.

alwayshourlydailyweeklymonthlyyearlynever
prioritystringoptional

Value for <priority>, 0.0–1.0. Default none.

Request body

{
  "urls": "https://example.com/\nhttps://example.com/about",
  "includeLastmod": true,
  "lastmodDate": "2026-09-06",
  "changefreq": "weekly",
  "priority": "0.8"
}

Response codes

  • 200Success.
  • 400Invalid request — check your body or parameters.
  • 401Missing or invalid API key.
  • 403The API key is not scoped to this endpoint.
  • 429Rate limit exceeded — retry after a short wait.

Language

cURL

Request

curl -X POST https://utilerio.com/api/v1/tools/sitemap-generator \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls":"https://example.com/\nhttps://example.com/about","includeLastmod":true,"lastmodDate":"2026-09-06","changefreq":"weekly","priority":"0.8"}'

Response

{ "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset...>...</urlset>", "urlCount": 2, "duplicateCount": 0 }