# Check redirect chains for a list of URLs

**Use case:** 

Checks the HTTP status and full redirect chain of every URL in a list: 301 and 302 hops, final status code, redirect loops and response time. Useful after a site migration or before you update links. Paste your own URLs to check them.

## Input

```json
{
  "mode": "urlList",
  "startUrl": "https://docs.apify.com/academy",
  "urlList": [
    "http://apify.com",
    "http://github.com",
    "https://httpbin.org/redirect/3",
    "http://www.wikipedia.org",
    "https://docs.apify.com/academy",
    "https://httpbin.org/status/404"
  ],
  "maxPages": 100,
  "respectRobotsTxt": true,
  "includeGlobs": [],
  "excludeGlobs": [],
  "maxConcurrency": 5,
  "requestTimeoutSecs": 30,
  "userAgent": "Mozilla/5.0 (compatible; SeoSiteAuditBot/1.0; +https://apify.com/rod_analytics/seo-site-audit)",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "string"
  },
  "seoScore": {
    "label": "SEO score",
    "format": "integer"
  },
  "mode": {
    "label": "Mode",
    "format": "string"
  },
  "source": {
    "label": "Discovered via",
    "format": "string"
  },
  "statusCode": {
    "label": "Status",
    "format": "integer"
  },
  "finalStatusCode": {
    "label": "Final status",
    "format": "integer"
  },
  "redirectCount": {
    "label": "Redirect hops",
    "format": "integer"
  },
  "redirectLoop": {
    "label": "Redirect loop",
    "format": "boolean"
  },
  "responseTimeMs": {
    "label": "Response (ms)",
    "format": "number"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "titleLength": {
    "label": "Title length",
    "format": "integer"
  },
  "metaDescriptionLength": {
    "label": "Meta desc. length",
    "format": "integer"
  },
  "h1Count": {
    "label": "H1 count",
    "format": "integer"
  },
  "canonicalStatus": {
    "label": "Canonical",
    "format": "string"
  },
  "indexable": {
    "label": "Indexable",
    "format": "boolean"
  },
  "brokenLinkCount": {
    "label": "Broken links",
    "format": "integer"
  },
  "issueCount": {
    "label": "Issues",
    "format": "integer"
  },
  "errorCount": {
    "label": "Errors",
    "format": "integer"
  },
  "warningCount": {
    "label": "Warnings",
    "format": "integer"
  }
}
```

## How it works

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

The SEO Audit Tool: Site Crawler, Broken Links & Score Actor is ready to run with the inputs already set for "Check redirect chains for a list of URLs". [Sign up or log in](https://console.apify.com/create-task-from-example/Ts8rWXSm2XkbtSpIK) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Check redirect chains for a list of URLs" task

The SEO Audit Tool: Site Crawler, Broken Links & Score Actor will start running based on the input automatically. You can also change all the input fields, like mode, start url, and more, to match your specific use case.

### 3. Receive the "Check redirect chains for a list of URLs" 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, SEO score, mode, 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 for a list of URLs" task via API](https://apify.com/rod_analytics/seo-site-audit.md).

## About this Actor

This example demonstrates how to use [SEO Audit Tool: Site Crawler, Broken Links & Score](https://apify.com/rod_analytics/seo-site-audit.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/rod_analytics/seo-site-audit.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/rod_analytics/seo-site-audit.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`).
