API ReferenceSitemap
Discover URLs on a domain
Crawls a domain to build a sitemap. Returns cached results if available within cache_ttl. Results delivered via webhook and downloadable from results_url. Webhook deliveries include `X-RapidCrawl-Event: sitemap.completed` or `X-RapidCrawl-Event: sitemap.failed` so receivers can dispatch on the header without parsing the body shape.
Authorization
AuthorizationRequiredBearer <token>API key. Obtain from POST /v1/account/api-keys.
In: header
Request Body
application/jsonRequiredurlRequiredstringFormat:
"uri"strategystringDefault:
"standard"Value in: "quick" | "standard" | "deep"max_depthintegerDefault:
2Minimum: 1Maximum: 5max_urlsintegerDefault:
10000Minimum: 1Maximum: 100000processobject | nullDefault:
nullwebhook_urlRequiredstringWebhook endpoint URL (HTTPS only; http:// rejected with HTTP 422)
Pattern:
"^https://"Format: "uri"webhook_secretstring | nullDefault:
nullcache_ttlstringMax 90 days.
Default:
"30d"Pattern: "^(0|\\d+[dh])$"compactbooleanDefault:
falsemetadataobjectArbitrary key-value metadata. Max 4096 bytes when JSON-serialized.
Sitemap job accepted (or cached result returned).