# URL Status & Redirect Checker – Bulk HTTP Status (`innovative_cookie/url-status-redirect-checker`) Actor

URL status checker and redirect checker in bulk: final HTTP status code, full redirect chain (301/302/307/308 and meta refresh), response time, Content-Type, canonical URL and X-Robots-Tag for thousands of URLs. Plain HTTP, respects robots.txt.

- **URL**: https://apify.com/innovative_cookie/url-status-redirect-checker.md
- **Developed by:** [Innovative Cookie](https://apify.com/innovative_cookie) (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

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

### What does URL Status & Redirect Checker do?

**URL Status & Redirect Checker** returns the **HTTP status code** and the **full redirect chain** (301, 302, 307, 308 and HTML meta refresh), the **response time**, **Content-Type**, **canonical URL** and **X-Robots-Tag** for each URL in a list. Paste a list (or the output of [Sitemap URL Extractor](https://apify.com/innovative_cookie/sitemap-extractor)) and export a clean table to **CSV, Excel or JSON**.

It is built for SEO migrations, redirect maps and bulk 404 audits. It uses **plain HTTP** only: no browser, no proxy, no captcha bypass. It **respects robots.txt** and spaces requests to the same host.

### Why use this Actor?

- 🗺️ **Redirect map in one run**: every hop is kept (URL, status, Location, time), including a short HTML meta refresh.
- 🔎 **SEO headers on the final page**: canonical (`<link rel=canonical>` or `Link` header), `X-Robots-Tag` and `<meta name=robots>`.
- 📉 **Find broken and risky URLs**: 404/410, 5xx, timeouts, DNS failures, and blocked hosts (401/403/429 or a captcha page) listed separately, never bypassed.
- ⚡ **Fast and cheap**: HEAD first, GET only when needed (servers that mishandle HEAD, or when SEO tags are requested). No browser.
- 🧩 **Works in pipelines**: API, webhooks, Make, Zapier, n8n, Google Sheets, or an AI agent through the Apify MCP server.

### How to check URL status and redirect chains

1. Click **Try for free**.
2. Paste the URLs in **URLs**, one per line (a scheme is added if missing).
3. Keep the default limits for a short test (a few URLs). Raise **Max URLs to check** for a migration list.
4. Click **Start**, then export the table as CSV, Excel or JSON. The **`SUMMARY`** record in the key-value store has the counts per status.

### Input

```json
{
    "urls": ["https://example.com", "https://example.com/this-page-does-not-exist"],
    "maxUrlsToCheck": 5,
    "maxRedirects": 10,
    "followMetaRefresh": true,
    "includeSeoTags": true,
    "useHeadFirst": true
}
```

The default input is small on purpose so Apify's daily quality check finishes in a few seconds. This Actor does **not** crawl a site: it only requests the URLs you give it. To check every URL of a website, run [Sitemap URL Extractor](https://apify.com/innovative_cookie/sitemap-extractor) first and pass its list here. To find broken links *from the pages themselves*, use [Broken Link Checker](https://apify.com/innovative_cookie/broken-link-checker).

### Output

One row per URL:

```json
{
    "url": "https://www.example.com/",
    "finalUrl": "https://example.com/",
    "status": "redirect",
    "statusCode": 200,
    "redirectCount": 1,
    "redirectChain": [
        {
            "url": "https://www.example.com/",
            "statusCode": 301,
            "location": "https://example.com/",
            "timeMs": 40,
            "contentType": null,
            "method": "HEAD"
        },
        {
            "url": "https://example.com/",
            "statusCode": 200,
            "location": null,
            "timeMs": 80,
            "contentType": "text/html; charset=UTF-8",
            "method": "HEAD+GET"
        }
    ],
    "responseTimeMs": 130,
    "contentType": "text/html; charset=UTF-8",
    "canonical": "https://example.com/",
    "xRobotsTag": null,
    "metaRobots": null,
    "metaRefreshFollowed": false,
    "error": null
}
```

`status` is one of: **ok**, **redirect**, **not_found** (404 or 410), **client_error**, **server_error**, **blocked** (401, 403, 429 or a captcha / bot challenge, never bypassed), **skipped** (robots.txt or a non-public address), **error** (timeout, DNS, TLS).

### How much does it cost to check URL status codes?

The Actor uses **pay-per-event pricing: $0.0003 per URL checked** (one URL actually requested: final status, redirect chain and SEO headers), i.e. $0.30 per 1,000 URLs. Starting **December 1, 2026**, this Actor fee applies; until then there is no Actor fee, you only pay Apify platform usage. Invalid, private or robots-skipped URLs are **free**, there is no start fee, and Apify platform usage is included in the price once the Actor fee applies. HTTP 4xx/5xx, timeouts and DNS errors are charged: the status is the result of the check. You can cap your spend with the maximum cost per run setting; the Actor stops checking new URLs when the cap is reached. The Apify Free plan includes $5 of monthly credit.

### Is it legal?

The Actor only requests **public http(s) URLs** that you provide, and it reads HTTP statuses, redirect targets, canonical URLs and robots directives. It does not target personal data. Only check websites you own or have the right to audit, and follow their terms of use. If unsure, consult a lawyer.

**Not affiliated with or endorsed by** the websites you check.

### Responsible use

- Only check websites you own or are otherwise allowed to check, and follow their terms of use.
- The Actor collects URLs, HTTP status codes, redirect targets, canonical URLs and robots directives, not personal data. If some URLs on a site do contain personal data, you are the data controller for those results and data-protection law (such as the GDPR) applies to how you store and use them.
- Politeness limits are built in and cannot be lowered: at least 250 ms between requests to the same host, robots.txt and `Crawl-delay` always respected, no captcha or bot-protection bypass, no paid proxy.
- Local, private and link-local addresses are rejected, including when a redirect would lead there.

### FAQ

#### Does it crawl my website?

No. It only requests the URLs in the input. Use [Sitemap URL Extractor](https://apify.com/innovative_cookie/sitemap-extractor) to build the list, or [Broken Link Checker](https://apify.com/innovative_cookie/broken-link-checker) to crawl pages and test the links they contain.

#### Does it respect robots.txt?

Yes. It reads robots.txt before requesting a host, re-checks it at every redirect, always honours `Crawl-delay` up to 30 s (configurable up to 60 s) and spaces requests to the same host by at least 250 ms. A host whose `Crawl-delay` is longer than that is skipped, never requested faster. If robots.txt answers with a captcha, 401, 403, 429 or 5xx, that host is treated as "no bots allowed".

#### Does it render JavaScript?

No. It reads HTTP headers and the HTML returned by the server. Redirects that only happen in JavaScript are not followed (HTML meta refresh with a short delay is).

#### What happens when a server blocks the request?

401, 403, 429 and captcha / bot-challenge pages are recorded as **blocked**. The Actor never tries to get around the protection.

#### Something does not work?

Open an issue in the **Issues** tab with a sample URL and the `SUMMARY` record.

### Related actors

More Actors by the same author ([innovative_cookie on Apify](https://apify.com/innovative_cookie)):

- [Sitemap URL Extractor](https://apify.com/innovative_cookie/sitemap-extractor): list every URL of a website from its XML sitemaps.
- [Broken Link Checker](https://apify.com/innovative_cookie/broken-link-checker): crawl a site and list broken links with their source page.
- [PageSpeed Insights Bulk Checker](https://apify.com/innovative_cookie/pagespeed-bulk): Core Web Vitals and Lighthouse scores for many URLs.
- [Website Image Extractor](https://apify.com/innovative_cookie/website-image-extractor): list every image of a page with size, format and missing alt text.

# Actor input Schema

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

One public http(s) URL per line (example.com or https://example.com/old). Each URL is requested; the Actor does not crawl the rest of the site. Use Sitemap URL Extractor first if you have a sitemap.

## `maxUrlsToCheck` (type: `integer`):

Safety cap. Only the first N URLs of the list are checked.

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

Stop following a chain after this many hops (HTTP Location and meta refresh combined).

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

Also follow a <meta http-equiv=refresh> with a short delay (5 s or less) as an extra hop in the chain.

## `includeSeoTags` (type: `boolean`):

On HTML responses, fetch the body (if only HEAD was used) and record the canonical URL, meta robots and the X-Robots-Tag header.

## `useHeadFirst` (type: `boolean`):

Send HEAD first, then GET if the server mishandles HEAD (405, 404, 501…) or if SEO tags are needed. Turn off to always GET.

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

URLs checked in parallel. Requests to the same host are always spaced out.

## `requestDelayMs` (type: `integer`):

Minimum pause between two requests to the same host (at least 250 ms). A larger robots.txt Crawl-delay is honoured.

## `maxCrawlDelaySecs` (type: `integer`):

Longest robots.txt Crawl-delay this Actor will wait between requests (30 to 60 s). Hosts asking for a longer delay are skipped, never requested faster.

## `requestTimeoutSecs` (type: `integer`):

A URL that does not answer within this time is reported as an error (timeout).

## Actor input object example

```json
{
  "urls": [
    "https://example.com",
    "https://example.com/this-page-does-not-exist"
  ],
  "maxUrlsToCheck": 5,
  "maxRedirects": 10,
  "followMetaRefresh": true,
  "includeSeoTags": true,
  "useHeadFirst": true,
  "maxConcurrency": 5,
  "requestDelayMs": 250,
  "maxCrawlDelaySecs": 30,
  "requestTimeoutSecs": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset with one row per checked URL

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

SUMMARY record with counts per status

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

// Run the Actor and wait for it to finish
const run = await client.actor("innovative_cookie/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",
        "https://example.com/this-page-does-not-exist",
    ],
    "maxUrlsToCheck": 5,
}

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

```

## MCP server setup

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