Skip to main content
Web CrawlerVersion: v3

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.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:knowledge-bases.readonly
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Body

locationIdstringrequired

Location ID

Example:tDtDnQdgm2LXpyiqYvZ6
knowledgeBaseIdstring

Knowledge base ID

Example:tDtDnQdgm2LXpyiqYvZ6
urlstringrequired

Website URL to preview sitemap for

Example:https://example.com
optionstringrequired

Crawl mode

Available optionsExactPathDomain
Example:Path
pagenumber

Page number (1-based)

Example:1
pageSizenumber

Number of URLs per page (10–200)

Example:100
searchstring

Substring filter applied to URLs

Example:/blog

Response

Sitemap preview fetched successfully

hasSitemapbooleanrequired

Whether a sitemap was found for the URL

Example:true
reasonstring

Machine-readable reason when the preview is empty or degraded

Available optionsNO_SITEMAPFETCH_FAILEDFILTERED_EMPTYSEARCH_EMPTY
Example:NO_SITEMAP
sourcestring

Where the sitemap URL list came from

Available optionssitemapcache
Example:sitemap
cachedboolean

Whether the raw sitemap URL list was served from preview cache

Example:false
urlsstring[]required

Paginated slice of matching URLs

Example:["https://example.com/page-1","https://example.com/page-2"]
totalnumberrequired

Total number of URLs after mode-filter and search

Example:42
pagenumberrequired

Current page number (1-based)

Example:1
pageSizenumberrequired

Page size used

Example:100
totalSitemapUrlsnumber

Total URLs found in the raw sitemap before mode/search filtering

Example:150
modeFilteredTotalnumber

Total URLs after Path/Domain mode filtering before search filtering

Example:80