# Check Redirect Chains and Final URLs After a Site Migration

**Use case:** 

Paste your old URLs after a site migration and get the HTTP status code, every redirect hop, the final URL and response time for each one. Optional SEO signals show canonical, meta robots, X-Robots-Tag, hreflang and noindex. Plain HTTP requests, no browser.

## Input

```json
{
  "urls": [
    "http://github.com",
    "http://www.wikipedia.org",
    "https://httpbin.org/redirect/3",
    "https://httpbin.org/redirect-to?url=https%3A%2F%2Fexample.com&status_code=301",
    "https://httpbin.org/status/404",
    "https://example.com"
  ],
  "checkSeo": true,
  "checkWayback": false,
  "maxRedirects": 10,
  "timeoutSecs": 15,
  "maxHtmlKb": 128,
  "maxConcurrencyPerHost": 2,
  "maxConcurrency": 20
}
```

## Output

```json
{
  "inputUrl": {
    "label": "URL",
    "format": "string"
  },
  "verdict": {
    "label": "Verdict",
    "format": "string"
  },
  "verdictReason": {
    "label": "Verdict reason",
    "format": "string"
  },
  "statusCode": {
    "label": "Status",
    "format": "integer"
  },
  "finalUrl": {
    "label": "Final URL",
    "format": "string"
  },
  "waybackAvailable": {
    "label": "Wayback available",
    "format": "boolean"
  },
  "waybackUrl": {
    "label": "Wayback snapshot",
    "format": "string"
  },
  "redirectCount": {
    "label": "Redirects",
    "format": "integer"
  },
  "responseTimeMs": {
    "label": "Time (ms)",
    "format": "integer"
  },
  "contentType": {
    "label": "Content-Type",
    "format": "string"
  },
  "error": {
    "label": "Error",
    "format": "string"
  },
  "blocked": {
    "label": "Blocked",
    "format": "boolean"
  },
  "canonicalHtml": {
    "label": "Canonical",
    "format": "string"
  },
  "metaRobots": {
    "label": "Meta robots",
    "format": "string"
  },
  "xRobotsTag": {
    "label": "X-Robots-Tag",
    "format": "array"
  },
  "noindex": {
    "label": "Noindex",
    "format": "boolean"
  },
  "hreflang": {
    "label": "Hreflang",
    "format": "object"
  },
  "redirectChain": {
    "label": "Redirect chain",
    "format": "array"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The URL Status Checker: Redirect Checker & HTTP Status Codes Actor is ready to run with the inputs already set for "Check Redirect Chains and Final URLs After a Site Migration". [Sign up or log in](https://console.apify.com/create-task-from-example/Uf2bY96LLcEoh33IY) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Check Redirect Chains and Final URLs After a Site Migration" task

The URL Status Checker: Redirect Checker & HTTP Status Codes Actor will start running based on the input automatically. You can also change all the input fields, like URLs to check, check seo signals, and more, to match your specific use case.

### 3. Receive the "Check Redirect Chains and Final URLs After a Site Migration" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, verdict, verdict reason, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Check Redirect Chains and Final URLs After a Site Migration" task via API](https://apify.com/ondutylabs/url-status-checker.md).

## FAQ

### What does the site migration redirect checker report for each URL?

The site migration redirect checker returns the status code, every redirect hop with its own status, the final URL, redirect count, response time and content type. With SEO signals on, it adds canonical and noindex data.

### How do I find broken or looping redirects after a migration?

Run the site migration redirect checker on your old URLs. Redirect loops, too many redirects, DNS errors and timeouts appear in the error and errorType fields, and a 404 final status shows as statusCode 404.

### Does the redirect checker run JavaScript redirects?

The site migration redirect checker uses plain HTTP requests without a browser, so it follows HTTP redirects only. JavaScript or meta-refresh redirects are not followed.

### How is the site migration redirect checker charged?

The site migration redirect checker uses pay per event: one url-checked event per checked URL, including errors like DNS or timeout. Invalid and blocked URLs are free. Set a max cost per run to cap spending.

## About this Actor

This example demonstrates how to use [URL Status Checker: Redirect Checker & HTTP Status Codes](https://apify.com/ondutylabs/url-status-checker.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ondutylabs/url-status-checker.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/ondutylabs/url-status-checker.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
