Preview Sitemap URLs
POST/knowledge-bases/crawler/sitemap-preview
Returns a paginated, searchable list of sitemap URLs without starting a crawl. WHEN TO USE: use this when you need to preview sitemap URLs before a crawl; use discoverWebsite to start discovery; use trainDiscoveredUrls after pages are found. RETURNS: a paginated list of sitemap URLs.
Request
API Version
v3- application/json
- Body
- Example (auto)
Bodyrequired
Location ID
Knowledge base ID
Website URL to preview sitemap for
Crawl mode
ExactPathDomainPage number (1-based)
Number of URLs per page (10–200)
Substring filter applied to URLs
{
"locationId": "tDtDnQdgm2LXpyiqYvZ6",
"knowledgeBaseId": "tDtDnQdgm2LXpyiqYvZ6",
"url": "https://example.com",
"option": "Path",
"page": 1,
"pageSize": 100,
"search": "/blog"
}
Sitemap preview fetched successfully
- application/json
- Schema
- Example (auto)
Schema
Whether a sitemap was found for the URL
Machine-readable reason when the preview is empty or degraded
NO_SITEMAPFETCH_FAILEDFILTERED_EMPTYSEARCH_EMPTYWhere the sitemap URL list came from
sitemapcacheWhether the raw sitemap URL list was served from preview cache
Paginated slice of matching URLs
Total number of URLs after mode-filter and search
Current page number (1-based)
Page size used
Total URLs found in the raw sitemap before mode/search filtering
Total URLs after Path/Domain mode filtering before search filtering
{
"hasSitemap": true,
"reason": "NO_SITEMAP",
"source": "sitemap",
"cached": false,
"urls": [
"https://example.com/page-1",
"https://example.com/page-2"
],
"total": 42,
"page": 1,
"pageSize": 100,
"totalSitemapUrls": 150,
"modeFilteredTotal": 80
}