Build a complete URL inventory before migrating
Before migrating a website, you need a complete list of all URLs to ensure nothing is lost. SitemapKit extracts every URL from sitemaps so you can plan redirects and verify post-migration coverage.
A repeatable workflow for site migration that turns sitemap data into a structured result your team can validate and reuse.
Start from this concrete goal: Build a complete URL inventory before migrating
Use the implementation example below from server-side code and pass the target domain or sitemap URL required by the workflow.
Check the returned sitemap URLs and page records against the expected outcome for site migration before sending the data to the next system.
# Pre-migration: get all current URLs
curl -X POST https://sitemapkit.com/api/v1/sitemap/full \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"url": "old-site.com"}' \
| jq -r '.urls[].loc' > old_urls.txt
# Post-migration: compare
curl -X POST https://sitemapkit.com/api/v1/sitemap/full \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "new-site.com"}' \
| jq -r '.urls[].loc' > new_urls.txt
diff old_urls.txt new_urls.txtInspect a sitemap structure before automating the workflow.
Review authentication, endpoints, response fields, and limits.
Connect sitemap discovery to the language or platform you use.
Understand XML sitemap fields and technical SEO terminology.
Free tier includes 100 API calls/month. No credit card required.