Overview
generate_sitemap creates a complete sitemap:
- Automated crawling — discovers pages by following links
- Configurable depth — scan up to 200 URLs
- Spec-compliant XML — follows sitemap.xml standards
- Priority and frequency hints — helps search engines understand your site
- Ready to deploy — returns XML you can paste into /sitemap.xml
This tool is completely free and works without an API key.
Parameters
Your website URL (domain or full URL). The crawler starts here and follows internal links.
Maximum number of URLs to include in the sitemap. Set lower for faster generation or higher for comprehensive coverage.
Example prompts
Response structure
The tool returns a JSON object with:The complete sitemap.xml content, ready to deploy at /sitemap.xml
Number of URLs included in the sitemap
Breakdown of URLs by content type (homepage, blog posts, pages, etc.)
When the crawl was performed
Usage example
Generated sitemap format
Example sitemap.xml output:When to use
Usegenerate_sitemap when:
- audit_site shows sitemap is missing — most common trigger
- New site launch — ensure discoverability from day one
- Major site restructure — regenerate after adding/removing pages
- Dynamic content added — update when adding new sections
Deployment
After generating the sitemap:- Copy the
xmlfrom the response - Save it as
sitemap.xmlat your domain root - Deploy to
https://yourdomain.com/sitemap.xml - Verify it’s accessible publicly
- Add to your robots.txt:
- Submit to Google Search Console
The sitemap must be at your domain root (/sitemap.xml) or referenced in robots.txt.
Crawling behavior
The crawler:- Starts at the provided URL
- Follows all internal links (same domain)
- Respects robots.txt rules
- Stops at
max_urlslimit - Excludes common non-content paths (admin, login, search)
- Prioritizes important pages (homepage, main sections)
Sitemap best practices
- Update regularly — regenerate monthly or after major content changes
- Keep it focused — only include important, indexable pages
- Add to robots.txt — reference your sitemap location
- Submit to search engines — Google Search Console, Bing Webmaster Tools
- Monitor coverage — check search console for indexing issues
Next steps
- audit_site — verify sitemap check passes
- generate_robots_txt — add sitemap reference to robots.txt
- audit_freshness — use sitemap to check date markup