---
title: "Generate Sitemap"
method: POST
path: "/v1/sitemap"
tags: ["Sitemap"]
---

# Generate Sitemap

`POST /v1/sitemap`

## Request body

- SitemapRequest
  - `website_url` string, required — The URL of the website to generate a sitemap for
  - `stream` boolean — Whether to return streaming response

## Response `200`

Successful Response

- SitemapResponse
  - `urls` string[], required — The URLs found in the sitemap
  - `request_id` string, required — The ID of the sitemap request for tracking

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/scrapegraphai/apis/fastapi.md) · [All operations](https://skmtc.dev/scrapegraphai/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scrapegraphai/fastapi/revisions/7583b63abb6e/schema)
