# Bulk URL Status & Redirect Checker: Chains, 404s, Canonicals (`data_factory_nerd/bulk-url-status-redirect-checker`) Actor

Check thousands of URLs at once: HTTP status code, full redirect chain with every hop (301, 302, 307, 308, meta refresh), final URL, loops, response time, canonical and noindex tags. Verify site-migration redirect maps against expected targets. Fast, no browser. $1 per 1,000 URLs.

- **URL**: https://apify.com/data_factory_nerd/bulk-url-status-redirect-checker.md
- **Developed by:** [Joe Pena](https://apify.com/data_factory_nerd) (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 $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.
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

### What is Bulk URL Status & Redirect Checker?

**Bulk URL Status & Redirect Checker** checks **thousands of URLs at once** and tells you, for each one, the **HTTP status code**, the **full redirect chain** (every hop with its 301, 302, 303, 307, 308 or meta-refresh type), the **final URL and final status**, **redirect loops**, **response time**, and the page's **title, canonical tag and noindex** status.

It's built for **SEO site migrations**: paste your **redirect map** (old URL → expected new URL) and every row gets `matchesExpected: true/false`, so you can verify thousands of 301s in one run. Redirects are followed **hop by hop** (no browser), so it's fast and cheap.

### What data can you get?

| Field | Example |
|---|---|
| `url` / `statusCode` | http://apify.com / 301 |
| `redirectChain` | `[{"url": "http://apify.com", "statusCode": 301, "location": "https://apify.com/", "type": "301", "timeMs": 41}]` |
| `redirectCount` / `redirectTypes` | 1 / \["301"] |
| `finalUrl` / `finalStatusCode` / `ok` | https://apify.com/ / 200 / true |
| `isPermanent` / `hasTemporaryRedirect` | true / false |
| `loopDetected` / `tooManyRedirects` / `httpsUpgrade` | false / false / true |
| `expectedUrl` / `matchesExpected` | https://apify.com/ / true |
| `title` / `canonicalUrl` / `canonicalMatchesFinal` | "Apify: Full-stack web scraping…" / https://apify.com/ / true |
| `metaRobots` / `xRobotsTag` / `noindex` | null / null / false |
| `responseTimeMs` / `contentType` / `server` | 212 / text/html; charset=utf-8 / cloudflare |
| `issues` | \["redirect chain of 3 hops (point the first URL straight to the final one)"] |
| `error` | "timeout after 20 s" (network problems only) |

`issues` explains every problem in plain words: 404/410, 5xx, 403/429 blocks, chains with more than one hop, temporary redirects used for permanent moves, meta refresh, https→http downgrades, loops, too many redirects, redirect-map mismatches, noindex pages and canonicals pointing elsewhere.

### Use cases

- 🚚 **Site migration QA**: verify every old URL 301s to the right new URL before and after launch
- 🔗 **Redirect chain cleanup**: find chains and loops that waste crawl budget and slow pages down
- 🧹 **404 audits**: check a list of URLs from analytics, backlinks or a sitemap and find dead pages
- 📣 **Link checks for campaigns**: make sure ad, email and QR-code links land on a live page
- 🤖 **Monitoring**: schedule the run daily and alert when a URL stops returning 200
- 🔎 **SEO**: spot noindex pages and wrong canonicals at scale

### How to check URL status codes and redirects in bulk

1. Paste URLs into **URLs to check** (one per line). Bare domains like `example.com` work too.
2. Optional: paste a **Redirect map** for a migration, one pair per line: `https://old.example.com/a -> https://example.com/a` (a space, tab or comma also works).
3. Click **Start**, then download the results as CSV, Excel or JSON from the **Output** tab. The `SUMMARY` record in the key-value store has totals (OK, redirected, 4xx, 5xx, unreachable, mismatches) and any invalid input lines.

#### Input example

```json
{
  "urls": ["http://apify.com", "https://apify.com/this-page-does-not-exist", "github.com/apify"],
  "redirectMap": ["https://www.apify.com/store -> https://apify.com/store"],
  "checkPageTags": true,
  "maxPerHost": 4
}
```

#### Output example

```json
{
  "url": "https://www.apify.com/store",
  "statusCode": 301,
  "redirectCount": 1,
  "redirectChain": [{"url": "https://www.apify.com/store", "statusCode": 301, "location": "https://apify.com/store", "type": "301", "timeMs": 38}],
  "finalUrl": "https://apify.com/store",
  "finalStatusCode": 200,
  "ok": true,
  "isPermanent": true,
  "expectedUrl": "https://apify.com/store",
  "matchesExpected": true,
  "title": "Apify Store",
  "noindex": false,
  "issues": []
}
```

### How much does it cost?

**Pay per result: $1.00 per 1,000 URLs** ($0.001 per URL). Every redirect hop, the page tags and the redirect-map check are included.

- 1,000 URLs = $1
- 100,000 URLs = $100
- Apify's free plan includes $5 of monthly usage, enough for about 5,000 URLs.

Many bulk status checkers charge $5 to $35 per 1,000 URLs. URLs that are unreachable (DNS failure, timeout) are still checked and reported, so they count as a result. Invalid input lines are skipped and **not** charged.

### API example

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("data_factory_nerd/bulk-url-status-redirect-checker").call(run_input={
    "urls": ["http://apify.com", "https://apify.com/does-not-exist"],
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["url"], row["statusCode"], "->", row["finalUrl"], row["finalStatusCode"], row["issues"])
```

### FAQ

#### Does it follow redirects like a browser?

It follows HTTP 3xx redirects and (optionally) `<meta http-equiv="refresh">` redirects, one hop at a time, and records each hop. It does not run JavaScript, so JavaScript-only redirects (`window.location`) are not followed.

#### GET or HEAD?

GET is the default because some servers answer HEAD differently (or not at all). Only the headers and, for HTML pages, the first 256 KB are downloaded. Choose HEAD for the fastest possible check when you only need status codes.

#### Some sites return 403 or 429. Why?

Some sites block automated or high-volume requests. Lower **Max parallel requests per host**, or set a custom **User-Agent**. The status you see is what that site returned to the checker.

#### Does it crawl my website?

No. It checks only the URLs you paste. To crawl a site and find broken links on every page, use our [Broken Link Checker](https://apify.com/data_factory_nerd/broken-link-checker).

#### How is the expected URL compared?

Scheme, host (case-insensitive), default ports and path are compared. Trailing slashes are ignored by default and the query string can be ignored too (both are options).

#### Does it collect personal data?

No. It reads HTTP status codes, headers and a few page tags (title, canonical, robots, hreflang). It doesn't store page content.

#### Found a bug?

Open an issue on the **Issues** tab with the URL and what you expected. We usually fix things within a day.

### Related Actors by data_factory_nerd

| Actor | What it does |
|---|---|
| [Broken Link Checker](https://apify.com/data_factory_nerd/broken-link-checker) | Crawl a website and find every broken link and image |
| [Sitemap URL Extractor](https://apify.com/data_factory_nerd/sitemap-url-extractor) | Every page URL from a website's sitemaps: feed it straight into this checker |
| [Wayback Machine Scraper](https://apify.com/data_factory_nerd/wayback-machine-scraper) | Find old URLs of a site from archived snapshots, to build a redirect map |
| [Website Tech Stack Detector](https://apify.com/data_factory_nerd/tech-stack-detector) | CMS, analytics, CDN and hosting of any website |

# Actor input Schema

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

One URL per line (full URLs or bare domains like example.com). Duplicates are removed.

## `redirectMap` (type: `array`):

For site migrations: one pair per line, old URL then the expected destination, separated by a space, tab, comma or ->. Example: https://old.example.com/a -> https://example.com/a. Each pair gets a matchesExpected true/false.

## `ignoreTrailingSlash` (type: `boolean`):

When comparing the final URL to the expected URL (and to the canonical tag), treat https://a.com/x and https://a.com/x/ as the same.

## `ignoreQueryString` (type: `boolean`):

Treat ?utm\_... and other parameters as irrelevant when matching the expected URL.

## `checkPageTags` (type: `boolean`):

For HTML pages, read the first 256 KB to extract title, rel=canonical, meta robots (noindex) and hreflang count.

## `followMetaRefresh` (type: `boolean`):

Treat <meta http-equiv=refresh content="0;url=..."> as a redirect hop (type meta-refresh).

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

Stop following after this many hops and flag the URL.

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

GET reads only headers plus up to 256 KB of HTML when page tags are on.

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

Per hop.

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

Leave empty for a standard desktop browser User-Agent with a DataFactory tag. Set e.g. a Googlebot string to see what crawlers get.

## `maxItems` (type: `integer`):

Stop after this many URLs (controls cost). 0 = no limit.

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

Total parallel requests.

## `maxPerHost` (type: `integer`):

Be gentle with a single site (useful when checking thousands of URLs on one domain).

## Actor input object example

```json
{
  "urls": [
    "http://apify.com",
    "https://github.com/apify/crawlee/issues/new",
    "https://apify.com/this-page-does-not-exist-2931",
    "github.com/apify"
  ],
  "ignoreTrailingSlash": true,
  "ignoreQueryString": false,
  "checkPageTags": true,
  "followMetaRefresh": true,
  "maxRedirects": 10,
  "method": "GET",
  "timeoutSecs": 20,
  "maxItems": 0,
  "maxConcurrency": 20,
  "maxPerHost": 4
}
```

# Actor output Schema

## `urls` (type: `string`):

No description

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

No description

# 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/issues/new",
        "https://apify.com/this-page-does-not-exist-2931",
        "github.com/apify"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("data_factory_nerd/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/issues/new",
        "https://apify.com/this-page-does-not-exist-2931",
        "github.com/apify",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("data_factory_nerd/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/issues/new",
    "https://apify.com/this-page-does-not-exist-2931",
    "github.com/apify"
  ]
}' |
apify call data_factory_nerd/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,data_factory_nerd/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/MrVdP7NkaW5ouHwnR/builds/BIYkHPBYXJNSzfNCT/openapi.json
