---
title: "Sitemap Generator"
method: POST
path: "/v1/sitemapgenerator"
tags: ["Data Generation"]
---

# Sitemap Generator

`POST /v1/sitemapgenerator`

## Request

- Base URL: `https://api.apiverve.com`
- URL: `https://api.apiverve.com/v1/sitemapgenerator`
- Auth: API key in header `x-api-key`

Generate an XML sitemap from URLs

## Request body

- object
  - `urls` string, required: Array of URLs (strings or objects with url, priority, changeFreq, lastMod)
  - `baseUrl` string: Base URL to prepend to relative paths
  - `changeFreq` string: Default change frequency
  - `priority` number: Default priority
  - `includeLastMod` boolean: Include lastmod dates in sitemap

## Response `200`

Successful Response

- object
  - `status` string: status
  - `error` string: error
  - `data` object: data

## Other responses

- `401`: Your request was not authorized, or your API Key was invalid
- `404`: Requested resource was not found
- `500`: A server error has occurred, try again later

---

[API](https://skmtc.dev/apiverve/apis/apiverve-api.md) · [All operations](https://skmtc.dev/apiverve/apis/apiverve-api/llms.txt) · [OpenAPI document](https://skmtc.dev/apiverve/apis/apiverve-api/revisions/4b9a77598eb4?raw)
