# Bulk URL Status & Redirect Chain Checker (`nordic-data/bulk-url-status-redirect-checker`) Actor

Check HTTP status codes and full redirect chains for thousands of URLs. Finds 404s, 5xx errors, redirect loops, long chains, temporary redirects and HTTPS downgrades. $0.0009 per URL.

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

## Pricing

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

Check the **HTTP status code and the full redirect chain** of up to 50,000 URLs per run. Every hop is recorded (URL, status, `Location`, response time), and each result is flagged for the problems SEO teams and developers care about: 404s, 5xx errors, redirect loops, chains of 2+ hops, temporary (302/307) redirects and HTTPS-to-HTTP downgrades.

**$0.0009 per URL checked.** Invalid inputs, duplicates and hosts that cannot be reached at all (DNS or connection failure) are free.

### What you get

| Field | Meaning |
|---|---|
| `url`, `finalUrl` | The URL you gave and where it ends up |
| `statusCode`, `statusText`, `category` | Final status (`ok`, `redirect`, `client-error`, `server-error`) |
| `firstStatusCode`, `redirectCount`, `redirectChain` | Every hop: `url`, `statusCode`, `location`, `responseTimeMs` |
| `problems`, `hasProblems` | `client-error`, `server-error`, `redirect-chain`, `redirect-loop`, `too-many-redirects`, `temporary-redirect`, `https-to-http-downgrade`, `broken-redirect-target` |
| `redirectedToOtherDomain` | The final URL is on a different host |
| `totalTimeMs`, `contentType`, `contentLength`, `server`, `lastModified`, `xRobotsTag`, `hsts`, `httpVersion` | Response details |

### Use cases

- **SEO site migrations:** verify that every old URL 301s to the right new page in one hop.
- **Link and backlink audits:** find dead outbound links, expired campaign URLs and broken short links.
- **Uptime spot checks:** check a list of landing pages or API endpoints on a schedule.
- **Short-link expansion:** see where `bit.ly`-style links really go.

### Input example

```json
{
  "urls": ["http://apify.com", "https://github.com/apify/crawlee", "https://httpbin.org/redirect/3"],
  "maxRedirects": 15,
  "useHeadRequests": false,
  "userAgent": "browser",
  "onlyProblems": false,
  "maxConcurrency": 20
}
```

### Output example

```json
{
  "recordType": "url",
  "url": "https://httpbin.org/redirect/3",
  "finalUrl": "https://httpbin.org/get",
  "statusCode": 200,
  "category": "ok",
  "firstStatusCode": 302,
  "redirectCount": 3,
  "redirectChain": [
    {"url": "https://httpbin.org/redirect/3", "statusCode": 302, "location": "https://httpbin.org/relative-redirect/2", "responseTimeMs": 401},
    {"url": "https://httpbin.org/relative-redirect/2", "statusCode": 302, "location": "https://httpbin.org/relative-redirect/1", "responseTimeMs": 120},
    {"url": "https://httpbin.org/relative-redirect/1", "statusCode": 302, "location": "https://httpbin.org/get", "responseTimeMs": 118},
    {"url": "https://httpbin.org/get", "statusCode": 200, "location": null, "responseTimeMs": 121}
  ],
  "problems": ["redirect-chain", "temporary-redirect"],
  "totalTimeMs": 760,
  "checkedAt": "2026-11-12T06:40:00Z"
}
```

### How it works

Redirects are followed manually, hop by hop, so nothing is hidden: each response's status and `Location` header is stored. GET is used by default (only the first 64 KB of a body is read); switch on HEAD for lighter checks, with an automatic GET fallback when a server rejects HEAD. Loops are detected when a URL repeats.

Only the URLs you supply are requested. No login, no proxies, no browser.

### Related Actors

- [Website SEO Audit](https://apify.com/nordic-data/website-seo-audit)
- [Website Tech Stack Detector](https://apify.com/nordic-data/website-tech-stack-detector)
- [Domain WHOIS & DNS Lookup](https://apify.com/nordic-data/domain-whois-dns-lookup)

# Changelog

This Actor's version history is a separate document: https://apify.com/nordic-data/bulk-url-status-redirect-checker/changelog.md

# Actor input Schema

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

Full URLs or domains to check, e.g. http://apify.com or https://example.com/old-page. Up to 50,000 per run. Duplicates are skipped and never charged.

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

Stop following after this many hops (1-30) and flag 'too-many-redirects'.

## `useHeadRequests` (type: `boolean`):

Faster and lighter. Falls back to GET when a server rejects HEAD. Some servers answer HEAD differently than GET, so GET (off) is the most accurate.

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

Send a normal desktop browser user agent, or an identifiable bot user agent.

## `onlyProblems` (type: `boolean`):

Output only 4xx/5xx, redirect chains (2+ hops), loops, temporary redirects and HTTPS-to-HTTP downgrades. Every checked URL is still charged; leave off to see all results.

## `ignoreSslErrors` (type: `boolean`):

Check URLs even when the certificate is invalid or expired.

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

Per-hop timeout (3-60).

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

How many URLs are checked in parallel (1-50).

## Actor input object example

```json
{
  "urls": [
    "http://apify.com",
    "https://github.com/apify/crawlee",
    "https://httpbin.org/status/404"
  ],
  "maxRedirects": 15,
  "useHeadRequests": false,
  "userAgent": "browser",
  "onlyProblems": false,
  "ignoreSslErrors": false,
  "timeoutSecs": 15,
  "maxConcurrency": 20
}
```

# Actor output Schema

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

Main results (view: Overview).

## `runStats` (type: `string`):

Counts of delivered, hidden, invalid, duplicate and failed inputs.

# 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": [
        "http://apify.com",
        "https://github.com/apify/crawlee",
        "https://httpbin.org/status/404"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nordic-data/bulk-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": [
        "http://apify.com",
        "https://github.com/apify/crawlee",
        "https://httpbin.org/status/404",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("nordic-data/bulk-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": [
    "http://apify.com",
    "https://github.com/apify/crawlee",
    "https://httpbin.org/status/404"
  ]
}' |
apify call nordic-data/bulk-url-status-redirect-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nordic-data/bulk-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/jT9LRmWKaBulI67bS/builds/cdmXQus8zsz3d9THS/openapi.json
