# Bulk URL Status & Redirect Chain Checker (`dvc-analytics/url-status-redirect-checker`) Actor

Check HTTP status codes and full 301/302 redirect chains for up to 10,000 URLs. Finds broken links, loops, HTTPS upgrades and final URLs for SEO audits.

- **URL**: https://apify.com/dvc-analytics/url-status-redirect-checker.md
- **Developed by:** [luc guerin](https://apify.com/dvc-analytics) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **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 result rows

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/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

## Bulk URL Status & Redirect Chain Checker

**Bulk URL Status & Redirect Chain Checker** is a bulk URL status checker and redirect checker in one: paste up to 10,000 URLs or bare domains and get, for each one, the HTTP status code, the complete 301/302/307/308 redirect chain, the final URL and its status, response time and key headers. Use it for broken link checks, SEO migration audits and monitoring. No login, no API key, no proxy needed.

### What does it do?

- **HTTP status code checker**: records the status code of the first response and of the final page.
- **Redirect checker with full chain**: redirects are followed hop by hop (not by the HTTP library), so every 301, 302, 303, 307 and 308 step is stored with its URL, status code and `Location` target.
- **Problem detection**: flags redirect loops, chains longer than your limit, `http` to `https` upgrades, DNS failures, timeouts and TLS/certificate errors. Unreachable URLs still get a row with an `error` field, so nothing silently disappears from your report.
- **Fast by default**: uses `HEAD` requests (no body download). If a server rejects `HEAD` (405/501) or the `HEAD` request fails, that hop is retried with `GET` automatically.
- **Optional page title**: switch on **Extract page title** to read the `<title>` of the final HTML page (at most 512 KB is downloaded per page).
- **Polite**: at most 2 parallel requests per host, configurable global concurrency, one retry with backoff on 429/5xx and timeouts.
- Export as JSON, CSV, Excel or HTML, or read the results through the Apify API, webhooks, Make, Zapier or MCP.

### Use cases

- **SEO migration audit**: after a domain move or URL restructure, verify that every old URL returns a single 301 to the right new page, and find 302s, chains and loops.
- **Broken link check**: find 404, 410 and 5xx pages in a list exported from a sitemap, CMS or crawler.
- **301 302 chain cleanup**: list URLs that need 2+ hops so internal links can point straight to the final URL.
- **HTTPS rollout check**: confirm that every `http://` URL upgrades to `https://`.
- **Link list validation**: clean up outreach lists, directories or backlink exports before using them.
- **Scheduled monitoring**: run daily on key URLs and alert when `isOk` turns false.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `urls` | list of strings | (required) | 1-10,000 URLs or bare domains. Bare domains get `https://`. Duplicates are removed, order is kept. |
| `method` | `HEAD` or `GET` | `HEAD` | `HEAD` with automatic `GET` fallback, or always `GET`. |
| `maxRedirects` | integer | 10 | Max hops followed per URL (0-20). |
| `timeoutSecs` | integer | 15 | Timeout per single request (1-60 s). |
| `maxConcurrency` | integer | 10 | URLs checked in parallel (1-50). Per-host cap is always 2. |
| `extractTitle` | boolean | false | Use `GET` and read the `<title>` of the final HTML page. |
| `userAgent` | string | empty | Custom User-Agent. Default: `Mozilla/5.0 (compatible; DVC-ApifyActor/1.0)`. |

```json
{
  "urls": ["https://example.com", "http://python.org", "https://www.python.org/this-page-does-not-exist"],
  "method": "HEAD",
  "maxRedirects": 10,
  "extractTitle": false
}
```

### Output example

One row per input URL. Example row for `http://python.org` (from a real run):

```json
{
  "url": "http://python.org/",
  "inputUrl": "http://python.org",
  "statusCode": 301,
  "finalUrl": "https://www.python.org/",
  "finalStatusCode": 200,
  "redirectCount": 1,
  "redirectChain": [
    {
      "url": "http://python.org/",
      "statusCode": 301,
      "location": "https://www.python.org/"
    }
  ],
  "redirectLoop": false,
  "httpsUpgrade": true,
  "responseTimeMs": 22,
  "contentType": "text/html; charset=utf-8",
  "contentLength": 11590,
  "server": "nginx",
  "lastModified": null,
  "pageTitle": null,
  "isOk": true,
  "error": null,
  "checkedAt": "2026-11-22T11:52:30+00:00"
}
```

| Field | Meaning |
|---|---|
| `url` / `inputUrl` | Normalised URL that was checked / the line exactly as you entered it |
| `statusCode` | Status of the first response |
| `finalUrl`, `finalStatusCode` | Where the chain ended and the status there |
| `redirectCount`, `redirectChain` | Number of hops and the list of `{url, statusCode, location}` |
| `redirectLoop` | `true` if a URL in the chain was visited twice |
| `httpsUpgrade` | `true` if an `http` to `https` redirect was seen |
| `responseTimeMs` | Total time for the whole chain, in milliseconds |
| `contentType`, `contentLength`, `server`, `lastModified` | Headers of the final response (null if absent) |
| `pageTitle` | `<title>` of the final HTML page (only with `extractTitle`) |
| `isOk` | `true` if the final status is 2xx |
| `error` | `DNS resolution failed`, `Timeout`, `TLS error: ...`, `Redirect loop`, `Too many redirects ...` or null |
| `checkedAt` | UTC timestamp of the check |

### How much does it cost?

Pay per result: **$1 per 1,000 URLs** ($0.001 per row) plus a $0.00005 actor start fee. Every input URL produces exactly one row, including unreachable ones. Checking 10,000 URLs costs about $10. You can cap the spend with the run's maximum charge setting; the actor stops cleanly when the limit is reached.

### Data source and legality

The actor sends ordinary `HEAD`/`GET` requests to the URLs you provide and reads only status codes, redirect headers, a few response headers and, optionally, the page title. It does not log in, solve captchas, use proxies or store page content. No personal data is collected. You are responsible for checking only sites you are allowed to access and for respecting their terms of service.

### Limits

- 10,000 URLs per run (after deduplication); run several times for larger lists.
- Only `http` and `https` URLs. Other schemes get a row with an `Invalid URL` error.
- JavaScript and `<meta http-equiv="refresh">` redirects are not followed; only HTTP 3xx redirects with a `Location` header.
- Some sites block datacenter IPs or bots and may answer 403/429 even though the page works in a browser.
- `HEAD` responses may omit `Content-Length`; switch to `GET` if you need it.
- TLS certificates are verified; invalid or expired certificates are reported as `TLS error`.

### FAQ

**What is the difference between `statusCode` and `finalStatusCode`?**
`statusCode` is the first answer for your URL (for example 301). `finalStatusCode` is the status at the end of the redirect chain (for example 200 or 404).

**Can I schedule it?**
Yes. Create an Apify Schedule (for example daily) with your URL list and connect a webhook or integration to get notified when a URL fails.

**Can I use it through the API or integrations?**
Yes. Start runs and fetch the dataset via the Apify API or the official clients, or connect Make, Zapier, n8n, Google Sheets and other integrations.

**Can AI agents use it?**
Yes. The actor is available through the Apify MCP server, so AI agents (Claude, ChatGPT and other MCP clients) can call it with a list of URLs and read the structured rows.

**Why do I see a 405 or a different result than in my browser?**
Some servers treat `HEAD` differently; the actor already falls back to `GET` on 405/501. Sites behind bot protection may answer differently to automated requests.

### Support

Found a bug or need a feature? Open an issue on the **Issues** tab of this actor page.

# Actor input Schema

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

One URL or bare domain per line (1-10,000). Bare domains get https:// added. Duplicates are removed, input order is kept.

## `method` (type: `string`):

HEAD is fastest and downloads no body. If a server answers HEAD with 405/501 or the HEAD request fails, the actor retries that hop with GET automatically.

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

Maximum number of redirect hops followed per URL (0-20). Longer chains are reported with an error.

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

Timeout for each single HTTP request (1-60 seconds). Timed-out URLs are still returned with an error.

## `maxConcurrency` (type: `integer`):

How many URLs are checked in parallel (1-50). Independently of this, at most 2 parallel requests go to the same host.

## `extractTitle` (type: `boolean`):

When enabled, every request uses GET and the <title> of the final HTML page is read (at most 512 KB of the body is downloaded). Slower than HEAD.

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

Optional custom User-Agent header. Leave empty to use 'Mozilla/5.0 (compatible; DVC-ApifyActor/1.0)'.

## Actor input object example

```json
{
  "urls": [
    "https://example.com",
    "http://python.org",
    "https://www.python.org/this-page-does-not-exist"
  ],
  "method": "HEAD",
  "maxRedirects": 10,
  "timeoutSecs": 15,
  "maxConcurrency": 10,
  "extractTitle": false
}
```

# Actor output Schema

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

Result rows in the default dataset.

# 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://example.com",
        "http://python.org",
        "https://www.python.org/this-page-does-not-exist"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dvc-analytics/url-status-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": [
        "https://example.com",
        "http://python.org",
        "https://www.python.org/this-page-does-not-exist",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("dvc-analytics/url-status-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": [
    "https://example.com",
    "http://python.org",
    "https://www.python.org/this-page-does-not-exist"
  ]
}' |
apify call dvc-analytics/url-status-redirect-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dvc-analytics/url-status-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/Rgi4F7O0rbmC5YlKm/builds/BJdKKCbaNsURPplOV/openapi.json
