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

# Generate Sitemap

`POST /v1/sitemap`

## Request

- Base URL: `https://api.scrapegraphai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.scrapegraphai.com/v1/sitemap`
- Auth: none declared

## 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/scrapegraphai-api.md) - [All operations](https://skmtc.dev/scrapegraphai/apis/scrapegraphai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scrapegraphai/apis/scrapegraphai-api/revisions/a0e42195429f?raw)
