# Bulk URL Status, Redirect Chain and SSL Expiry Checker (`evenwork/bulk-url-status-redirect-ssl-checker`) Actor

Check thousands of URLs for HTTP status, every redirect hop, http to https, HSTS and SSL certificate expiry. Each URL gets a plain list of problems.

- **URL**: https://apify.com/evenwork/bulk-url-status-redirect-ssl-checker.md
- **Developed by:** [Evenwork](https://apify.com/evenwork) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 url checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Bulk URL Status, Redirect Chain and SSL Expiry Checker

Paste in a list of URLs or domains. For each one you get the HTTP status, every redirect hop with its code, whether the http:// address moves to https://, the SSL certificate's issuer and days left, and a plain list of anything wrong.

It sends a GET request for each hop, reads the response headers and closes the connection. Page bodies are not read, so large lists run quickly and cheaply.

### What it checks

| Check | What you get |
|---|---|
| Status | Final HTTP status code, final URL, and problems for 4xx and 5xx responses |
| Redirects | Every hop with its status code and target, redirect count, loops, chains of 3 or more hops, temporary redirects (302, 303, 307) and HTTPS to HTTP downgrades |
| http to https | Whether the http:// version of each https:// URL ends on HTTPS |
| SSL | Whether the certificate is trusted, the issuer, the expiry date, days left, and a warning at 30 days or fewer |
| Headers | HSTS (Strict-Transport-Security), X-Robots-Tag noindex, Content-Type and Server |

### Input

```json
{
  "urls": ["https://example.com/old-page", "example.co.uk", "http://shop.example.org/"],
  "checkHttpRedirect": true,
  "maxRedirects": 10,
  "timeoutSecs": 15,
  "concurrency": 10
}
```

A bare domain is checked as `https://domain/`. Duplicates are removed. Entries that are not web addresses (including bare IP addresses) are skipped. The log gives the count and names the first 10.

### Output

One row per URL:

```json
{
  "url": "https://chain.example.com/",
  "finalUrl": "https://www.chain.example.com/home/",
  "finalStatus": 200,
  "redirectCount": 3,
  "redirectChain": [
    {"url": "https://chain.example.com/", "status": 301, "location": "https://www.chain.example.com/", "elapsedMs": 84},
    {"url": "https://www.chain.example.com/", "status": 302, "location": "https://www.chain.example.com/home", "elapsedMs": 61},
    {"url": "https://www.chain.example.com/home", "status": 301, "location": "https://www.chain.example.com/home/", "elapsedMs": 58},
    {"url": "https://www.chain.example.com/home/", "status": 200, "elapsedMs": 97}
  ],
  "httpRedirectsToHttps": true,
  "sslValid": true,
  "sslIssuer": "Let's Encrypt",
  "sslExpires": "Jun  1 12:00:00 2027 GMT",
  "sslDaysLeft": 188,
  "sslError": null,
  "hsts": false,
  "xRobotsTag": null,
  "contentType": "text/html; charset=utf-8",
  "server": "nginx",
  "ok": false,
  "issues": [
    "Long redirect chain: 3 hops",
    "Temporary redirect (302) in the chain; use 301 or 308 if the move is permanent"
  ],
  "error": null,
  "checkedAt": "2026-11-25T12:00:00+00:00"
}
```

`ok` is true when the list of problems is empty. Download the results as CSV, Excel or JSON, or use the Overview table in the run.

### Pricing

$1 per 1,000 URLs checked ($0.001 a URL). The extra http:// request is included. A URL that does not resolve, refuses the connection or times out still counts as checked, because that is the answer. If the actor itself hits an unexpected error on a URL, the row says so and you are not charged for it. Apify also charges $0.00005 each time a run starts (once per GB of memory; this actor's default is under 1 GB).

Set a maximum charge for the run and the actor stops when it reaches it.

### Limits

- Requests come from Apify's servers. Some sites block data-centre traffic or answer bots differently from browsers, so a 403 or 429 here may not be what a visitor sees.
- Only HTTP redirects are followed. Redirects done with JavaScript or a meta refresh tag inside the page are not seen, because the page body is not read.
- The SSL details come from the first HTTPS address in the chain. If the certificate is not trusted, the reason is reported but the issuer and dates are not.
- If the http:// address can't be reached, `httpRedirectsToHttps` is left empty and not counted as a problem.
- Only addresses on the public internet are checked. A domain that resolves to a private, loopback or reserved IP (an office intranet name, for example), or a redirect to one such as 127.0.0.1 or 10.x.x.x, comes back as an error row.

# Actor input Schema

## `urls` (type: `array`):

Web addresses to check. A bare domain such as example.com is checked as https://example.com/. Duplicates are removed.

## `checkHttpRedirect` (type: `boolean`):

For every https:// URL, also request the http:// version and report whether it ends on HTTPS. This is a second request to the same site and is not charged separately.

## `maxRedirects` (type: `integer`):

1 to 20.

## `timeoutSecs` (type: `integer`):

3 to 60.

## `concurrency` (type: `integer`):

1 to 30.

## `userAgent` (type: `string`):

Optional. The User-Agent header sent with each request.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "http://example.com",
    "gov.uk"
  ],
  "checkHttpRedirect": true,
  "maxRedirects": 10,
  "timeoutSecs": 15,
  "concurrency": 10
}
```

# Actor output Schema

## `results` (type: `string`):

One row per URL: final status, redirect chain, SSL validity and expiry, HSTS and problems.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://apify.com",
        "http://example.com",
        "gov.uk"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("evenwork/bulk-url-status-redirect-ssl-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [
        "https://apify.com",
        "http://example.com",
        "gov.uk",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("evenwork/bulk-url-status-redirect-ssl-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://apify.com",
    "http://example.com",
    "gov.uk"
  ]
}' |
apify call evenwork/bulk-url-status-redirect-ssl-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,evenwork/bulk-url-status-redirect-ssl-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/kPL0sSPuOfZJrgir1/builds/eDfKSe6CZhZ0a4k2w/openapi.json
