# Redirect Checker: Full Chain, Status Codes, Loops & Timing (`arnaud437/redirect-checker`) Actor

Follow every redirect of a list of URLs: each hop with its status code and time, final URL, loops, HTTP to HTTPS, meta refresh and SEO issues. Up to 10,000.

- **URL**: https://apify.com/arnaud437/redirect-checker.md
- **Developed by:** [Open Data Tools](https://apify.com/arnaud437) (community)
- **Categories:** SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-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

## Redirect Checker: Full Chain, Status Codes, Loops & Timing

Give a list of **URLs**, see **every redirect** each one goes through: each **hop** with its **status code** (301, 302, 307, 308…), where it points, its **answer time** and server, then the **final URL** and its status. Loops, too many redirects, **HTTP to HTTPS**, HTTPS back to HTTP, change of domain and **meta refresh** are flagged, with the **SEO issues in plain words**. Fast and cheap: **$1.00 per 1,000 URLs**.

### What you get

One row per URL:

- **Final URL** and **final status** (200, 404, 410, 500…).
- **Every hop**: URL, status code, where it points, answer time in milliseconds, server.
- **Number of redirects**, **permanent** (301, 308) or **temporary** (302, 303, 307).
- **Loop**, **too many redirects**, a later hop that **does not answer**.
- **HTTP to HTTPS**, **HTTPS back to HTTP**, **change of domain**, **meta refresh**.
- **Issues**, worst first.

### Use cases

- **Site migrations**: check that every old URL lands on the right new page with one permanent redirect.
- **SEO audits**: find redirect chains, temporary redirects and redirects to 404 pages in a list of backlinks or a sitemap.
- **Link checks**: expand short links and tracking links to see where they really go.
- **HTTPS**: confirm that every domain of a group sends http:// visitors to https://.

### How to use

- **Without changing anything**: apify.com, http://github.com and an old Apify URL.
- **URLs**: one per line, up to 10,000 per run. Without `http://` or `https://`, the check starts from `http://` to show the whole chain.

### Input example

```json
{
  "urls": ["apify.com", "http://www.apify.com/store", "https://github.com/apify"]
}
```

### Output example

```json
{
  "recordType": "url",
  "id": "http://www.apify.com/store",
  "url": "http://www.apify.com/store",
  "input": "http://www.apify.com/store",
  "finalUrl": "https://apify.com/store",
  "finalStatus": 200,
  "redirectCount": 2,
  "statusCodes": [301, 301, 200],
  "permanent": true,
  "loop": false,
  "tooManyRedirects": false,
  "httpsUpgrade": true,
  "httpsDowngrade": false,
  "crossDomain": false,
  "metaRefreshUrl": null,
  "totalTimeMs": 195,
  "chain": [
    {
      "url": "http://www.apify.com/store",
      "status": 301,
      "location": "https://www.apify.com/store",
      "timeMs": 94,
      "server": "awselb/2.0",
      "error": null
    },
    {
      "url": "https://www.apify.com/store",
      "status": 301,
      "location": "https://apify.com/store",
      "timeMs": 90,
      "server": "awselb/2.0",
      "error": null
    },
    {
      "url": "https://apify.com/store",
      "status": 200,
      "location": null,
      "timeMs": 11,
      "server": null,
      "error": null
    }
  ],
  "issues": ["2 redirects in a row: link straight to the final URL"],
  "status": "ok",
  "sourceName": "HTTP answers of www.apify.com",
  "sourceUrl": "http://www.apify.com/store",
  "licence": "Status codes and redirect headers any visitor receives; page bodies are not kept",
  "sourceUpdatedAt": null,
  "actorVersion": "0.1.1",
  "retrievedAt": "2026-11-17T21:44:11.128Z"
}
```

### Issues found

- **Redirect loop**: the page never loads.
- **Too many redirects** (more than 15): browsers give up.
- **The chain ends on an error**: a later hop does not answer.
- **The final page answers 4xx or 5xx**.
- **HTTPS back to HTTP**.
- **Several redirects in a row**: each one slows visitors and wastes crawl budget.
- **Temporary redirect** (302, 303, 307): search engines may keep the old URL.
- **http:// does not end on https://**.
- **Meta refresh** on the final page.

### Pricing

Pay per event: **$1.00 per 1,000 URLs checked** (`url-checked`, $0.001 each), plus Apify's start fee of $0.00005 per run. A first URL that does not answer and text that is not a URL give a **free** error row.

| List        | Price |
| ----------- | ----- |
| 100 URLs    | $0.10 |
| 1,000 URLs  | $1.00 |
| 10,000 URLs | $10   |

### Data source

The answers each site gives any visitor: status codes and `Location` headers, one request per hop, without following redirects automatically. Only the first 256 KB of the final page is read, to find a meta refresh; page bodies are not kept. Times measure the site's answer only. Each site's robots.txt is respected at every hop.

### Is it legal?

Status codes and redirect headers are what every browser receives. The checker sends one ordinary request per hop, waits between requests to the same site, follows robots.txt, never visits private addresses and keeps no page content.

### FAQ

- **Why does my URL start with http://?** You gave it without a scheme: starting from http:// shows the redirect to https://.
- **Why is a hop's status empty?** That hop gave no answer (dead domain, timeout, or its robots.txt says no): the reason is in the hop's `error`.
- **Does it run JavaScript redirects?** No: only HTTP redirects and meta refresh, the ones search engines treat as redirects.

### Related Actors

- [SSL Certificate Checker](https://apify.com/arnaud437/ssl-certificate-checker): Expiry, Issuer, Chain, HSTS & Grade
- [Domain Checker](https://apify.com/arnaud437/domain-checker): Availability, Expiry, Registrar & Age (RDAP)
- [RSS Feed Reader](https://apify.com/arnaud437/rss-feed-reader): RSS & Atom to JSON, New Items Only
- [Structured Data Extractor](https://apify.com/arnaud437/structured-data-extractor): Schema.org, JSON-LD & Open Graph
- [Website to Markdown](https://apify.com/arnaud437/website-to-markdown): Fast Crawler for LLM & RAG (No Browser)

Every Actor here also works as a tool for AI agents (Claude, ChatGPT, Cursor…) through [Apify’s MCP server](https://mcp.apify.com).

### Changelog

See [CHANGELOG.md](CHANGELOG.md).

### En français

#### Toutes les redirections d'une adresse, étape par étape

Donnez des adresses, obtenez pour chacune toutes ses redirections avec leur code et leur temps, l'adresse et le code finaux, les boucles, le passage en https, les redirections temporaires et les problèmes en clair pour le référencement.

#### Prix

1,00 $ les 1 000 adresses. Les lignes d'erreur sont gratuites.

#### Source et légalité

Les réponses que chaque site donne à tout visiteur. Une requête par étape, robots.txt respecté, aucun contenu de page gardé.

# Changelog

This Actor's version history is a separate document: https://apify.com/arnaud437/redirect-checker/changelog.md

# Actor input Schema

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

One URL per line. Without http:// or https://, the check starts from http:// to show the whole chain (http to https, then www…). Up to 10,000 per run; each URL once.

## Actor input object example

```json
{
  "urls": [
    "apify.com",
    "http://github.com",
    "https://www.apify.com/store"
  ]
}
```

# Actor output Schema

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

One row per URL: every hop with its status code and time, final URL and status, loops, HTTPS and SEO issues.

## `summary` (type: `string`):

URLs checked, error rows, and dates of the run.

# 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": [
        "apify.com",
        "http://github.com",
        "https://www.apify.com/store"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("arnaud437/redirect-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": [
        "apify.com",
        "http://github.com",
        "https://www.apify.com/store",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("arnaud437/redirect-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": [
    "apify.com",
    "http://github.com",
    "https://www.apify.com/store"
  ]
}' |
apify call arnaud437/redirect-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,arnaud437/redirect-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/Y2SfGdODJ6FyXQe6i/builds/1Rg1A5TLIzqZE3qeZ/openapi.json
