Skip to main content
Marketing Agencies|SEO Specialist / Web Developer

Website Migration SEO Validation

Compare crawl and indexing signals before and after a migration

Compare crawl and indexing signals before and after a migration. Use the API workflow below to collect dated findings, review their scope, and decide which follow-up checks your team needs.

Implementation example by the EdgeDNS team · Updated

The Challenge

Redirect, canonical, robots, and sitemap changes can make migrated URLs harder to discover or index.

The Solution

Check redirects, canonical tags, metadata, robots rules, and sitemaps on representative public URLs before and after a migration. Keep your own before-and-after snapshots and validate sampled URLs. These checks do not crawl every URL or guarantee ranking preservation.

Endpoints Used

Combine these EdgeDNS endpoints to build this solution.

GET
/v1/domain/canonicalAPI reference

Canonical URL: Find canonical and hreflang URLs

GET
/v1/domain/metaAPI reference

Meta Tags: Extract SEO and social meta tags

GET
/v1/domain/sitemapAPI reference

Sitemap: Find and analyze XML sitemaps

GET
/v1/domain/robotsAPI reference

Robots.txt: Parse robots.txt rules and sitemaps

GET
/v1/domain/redirectAPI reference

Redirect Chain: Trace HTTP redirect chain

GET
/v1/domain/response-timeAPI reference

Response Time: Measure server response latency

What this workflow helps you do

Check representative URL mappings

Review redirect destinations and canonical signals.

Review crawler access

Inspect applicable robots rules and indexing directives.

Save migration evidence

Compare dated outputs and follow up in search-engine webmaster tools.

Code Example

Compare crawl and indexing signals before and after a migration

javascript
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const checks = [
  {
    "path": "/v1/domain/canonical",
    "params": {
      "domain": "https://example.com"
    }
  },
  {
    "path": "/v1/domain/meta",
    "params": {
      "domain": "https://example.com"
    }
  },
  {
    "path": "/v1/domain/sitemap",
    "params": {
      "domain": "https://example.com"
    }
  }
];

// Run sequentially to keep concurrency bounded. API tier restrictions apply.
for (const { path, params } of checks) {
  const url = new URL(path, 'https://api.edgedns.dev');
  url.search = new URLSearchParams(params).toString();
  const response = await fetch(url, { headers });
  const result = await response.json();
  if (!response.ok) {
    throw new Error(`${path}: ${response.status} ${result.error?.message ?? 'Request failed'}`);
  }
  // Keep the response metadata and any partial/unknown findings for review.
  console.log(path, result);
}

Learn More

Explore industry standards and best practices related to this use case.

Ready to build Website Migration SEO Validation?

Get started with 200 free API requests per month. No credit card required.

Other Use Cases

Website Migration SEO Validation | EdgeDNS