← All use cases
Use Case

Sitemap API for Site Migration

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.

Why use SitemapKit?

  • Complete pre-migration URL inventory
  • Map old URLs to new URLs for redirect planning
  • Verify post-migration sitemap coverage
  • Detect missing pages after migration

Example

# 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.txt

Start using SitemapKit for site migration

Free tier includes 100 API calls/month. No credit card required.

Other use cases