# Bulk URL Status & Redirect Checker (HTTP codes, broken links) (`quicktools/bulk-url-status-checker`) Actor

Check a list of URLs for HTTP status codes, broken links (404/5xx), full redirect chains (301/302/307/308), final URL, response time and honest error classes (DNS, timeout, TLS, bot protection). No crawling: only the URLs you supply. Pay per URL.

- **URL**: https://apify.com/quicktools/bulk-url-status-checker.md
- **Developed by:** [T O](https://apify.com/quicktools) (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

$0.80 / 1,000 urls

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 Checker — HTTP status codes, broken links, redirect chains

Paste a list of URLs and get, for each one, the **HTTP status code**, the **full redirect chain** (301 / 302 / 303 / 307 / 308 with every hop), the **final URL**, **response time** and an **honest error class** when something goes wrong. Perfect for **SEO migrations and redirect mapping, broken-link checks on sitemaps or spreadsheets, monitoring landing pages, affiliate/short-link validation and cleaning lead lists**.

**No crawling:** only the URLs you supply are requested, politely (per-host concurrency limit and delay). Response bodies are not downloaded.

### What you get

| Field | Details |
|---|---|
| `statusCode`, `ok` | Final status; `ok` = 2xx after redirects |
| `redirectChain` | Every hop: URL, status code, `location`, time in ms |
| `redirectCount`, `finalUrl` | Number of redirects and where the URL ends up |
| `totalTimeMs`, `ttfbMs` | Total time including redirects; time to first byte of the first request |
| `contentType`, `contentLength`, `server` | From the final response headers |
| `errorClass` | `http_4xx`, `http_5xx`, `rate_limited`, `bot_protection`, `auth_required`, `redirect_loop`, `too_many_redirects`, `dns_error`, `timeout`, `connect_timeout`, `tls_error`, `connection_refused`, `connection_reset`, `invalid_url`, … |
| `blockedHint` | Set when the response looks like a WAF/bot challenge (Cloudflare, Akamai, DataDome…) or rate limiting, so you don't mistake a block for a dead page |

### Input example

```json
{
  "urls": ["https://apify.com", "http://github.com", "https://httpbin.org/status/404", "example.com"],
  "followRedirects": true,
  "maxRedirects": 10,
  "timeoutSecs": 15
}
```

URLs without a scheme get `https://`. Duplicates are checked once.

### Output example

```json
{
  "url": "https://httpbin.org/redirect/3",
  "status": "checked",
  "ok": true,
  "statusCode": 200,
  "finalUrl": "https://httpbin.org/get",
  "redirectCount": 3,
  "redirectChain": [
    { "url": "https://httpbin.org/redirect/3", "statusCode": 302, "timeMs": 410, "location": "https://httpbin.org/relative-redirect/2" },
    { "url": "https://httpbin.org/relative-redirect/2", "statusCode": 302, "timeMs": 395, "location": "https://httpbin.org/relative-redirect/1" },
    { "url": "https://httpbin.org/relative-redirect/1", "statusCode": 302, "timeMs": 402, "location": "https://httpbin.org/get" },
    { "url": "https://httpbin.org/get", "statusCode": 200, "timeMs": 398 }
  ],
  "totalTimeMs": 2617,
  "ttfbMs": 410,
  "contentType": "application/json",
  "errorClass": null
}
```

### Pricing (pay per event)

| Event | Price |
|---|---|
| URL checked (server responded) | **$0.0008** |

10,000 URLs = **$8.00**. You pay when the server answered with any HTTP status — a 404 or 500 is a valid result. **Free:** invalid URLs and URLs with no HTTP response at all (DNS failure, timeout, refused connection, TLS error).

### Honest about blocks

Some sites block automated requests. This Actor does **not** use proxies or try to evade protection; it sends an honest User-Agent and reports `403`/`503` challenges as `bot_protection` and `429` as `rate_limited`. Treat those as "unknown", not "broken". You can set your own User-Agent if needed.

### FAQ

**HEAD or GET?** GET is default and most accurate (body is not downloaded). With HEAD, servers that reject HEAD (405/501) are automatically retried with GET.

**Private/internal URLs?** Requests to private, loopback and link-local addresses are refused for safety.

**Does it use an external API?** No — direct HTTP requests from the Actor.

### About

Built with AI assistance by QuickTools and tested against real public endpoints before release. Questions or a false result? Open an issue on the Issues tab.

# Actor input Schema

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

One URL per line (https:// is added if missing). Only these URLs are requested; pages are not crawled. Up to 50,000 per run.

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

GET is the most accurate (the body is not downloaded). HEAD is lighter; servers that reject HEAD are retried with GET.

## `followRedirects` (type: `boolean`):

Follows and records every hop of the redirect chain. Off = report only the first response.

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

Longer chains are reported as too_many_redirects.

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

URLs that don't answer in time are reported with errorClass timeout (not billed).

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

URLs checked in parallel across all hosts.

## `maxRequestsPerHost` (type: `integer`):

Keeps the checker polite to each website.

## `delayPerHostMs` (type: `integer`):

Minimum gap between request starts on one host.

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

Leave empty for the default, which identifies this checker honestly.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "http://github.com",
    "https://httpbin.org/status/404"
  ],
  "method": "GET",
  "followRedirects": true,
  "maxRedirects": 10,
  "timeoutSecs": 15,
  "maxConcurrency": 10,
  "maxRequestsPerHost": 2,
  "delayPerHostMs": 250
}
```

# Actor output Schema

## `overview` (type: `string`):

Status code, OK flag, redirects, final URL, timing and error class per URL.

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

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

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

```

## MCP server setup

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