# Check http to https redirects of a list of sites

**Use case:** 

Where does the http address of each site end up? Here six well-known sites: the final status, the final address, every redirect hop with its type, whether the URL moved to https and gained or lost www, and the HSTS header. Replace the list with your own pages after an https rollout.

## Input

```json
{
  "urls": [
    "http://github.com",
    "http://python.org",
    "http://wikipedia.org",
    "http://www.bbc.co.uk",
    "http://news.ycombinator.com",
    "http://www.iana.org/domains/example"
  ],
  "method": "HEAD",
  "followRedirects": true,
  "maxRedirects": 10,
  "readHtmlSignals": true,
  "maxItems": 0,
  "onlyNew": false,
  "stateName": "default",
  "notifyWhenEmpty": false,
  "requestIntervalMs": 1000
}
```

## Output

```json
{
  "url": {
    "label": "URL checked, as normalised from your list (lower-case host, no fragment, no credentials)",
    "format": "string"
  },
  "statusCode": {
    "label": "HTTP status code of the final response (null when no response came: see error)",
    "format": "integer"
  },
  "redirectPath": {
    "label": "The chain as text: the type of every redirect, then the final status code or the error (301 → 302 → 200; 200 when nothing redirected)",
    "format": "string"
  },
  "redirectLoop": {
    "label": "True when the chain came back to a URL it had already visited",
    "format": "boolean"
  },
  "httpsUpgrade": {
    "label": "True when the URL started on http and ended on https",
    "format": "boolean"
  },
  "wwwChange": {
    "label": "True when the host gained or lost the www. prefix on the way (same site)",
    "format": "boolean"
  },
  "trailingSlashChange": {
    "label": "True when the path gained or lost a trailing slash on the way (same site and query)",
    "format": "boolean"
  },
  "finalUrl": {
    "label": "URL of the last response (or of the last address reached when the check failed)",
    "format": "string"
  }
}
```

## How it works

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

The Bulk URL Status and Redirect Chain Checker API Actor is ready to run with the inputs already set for "Check http to https redirects of a list of sites". [Sign up or log in](https://console.apify.com/create-task-from-example/i9S41X1EhFv9gZEK9) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Check http to https redirects of a list of sites" task

The Bulk URL Status and Redirect Chain Checker API Actor will start running based on the input automatically. You can also change all the input fields, like URLs to check, request method, and more, to match your specific use case.

### 3. Receive the "Check http to https redirects of a list of sites" 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 checked, as normalised from your list (lower-case host, no fragment, no credentials), HTTP status code of the final response (null when no response came: see error), the chain as text: the type of every redirect, then the final status code or the error (301 → 302 → 200; 200 when nothing redirected), 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 http to https redirects of a list of sites" task via API](https://apify.com/rowcraft/url-status-redirect-checker.md).

## About this Actor

This example demonstrates how to use [Bulk URL Status and Redirect Chain Checker API](https://apify.com/rowcraft/url-status-redirect-checker.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/rowcraft/url-status-redirect-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/rowcraft/url-status-redirect-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`).
