# Bulk HTTP Status & Redirect Chain Checker - 301, 404, Timing (`wood-between-studio/http-status-redirect-checker`) Actor

Check thousands of URLs for HTTP status codes and full redirect chains: every hop with 301/302/307/308, final URL, loops, HTTP to HTTPS, response time and content type, with plain-English problems. $0.50 per 1,000 URLs.

- **URL**: https://apify.com/wood-between-studio/http-status-redirect-checker.md
- **Developed by:** [Wood Between Studio](https://apify.com/wood-between-studio) (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.50 / 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 HTTP Status Code & Redirect Chain Checker: 301, 302, 404 and Timing for Many URLs

**Check the HTTP status code and the full redirect chain of thousands of URLs in one run.** Every hop is reported (301, 302, 303, 307, 308) with its URL, status, response time and server, plus the final URL, final status, content type and a plain-English list of problems such as redirect loops, too many hops, temporary redirects, HTTPS-to-HTTP downgrades and broken pages.

### Why use it?

- **Full redirect chains.** Redirects are followed one hop at a time, so you see every URL along the way, not only the last one.
- **Problems spelled out.** Loops, more than N hops, 302/307 where a 301/308 belongs, http:// that never reaches https://, 4xx/5xx final pages, slow responses, and an optional "expected status" check.
- **Fast and light.** GET reads only the headers and cancels the body, or choose HEAD (with automatic GET fallback on 405/501).
- **Cheap and fair.** **$0.50 per 1,000 URLs**, no start fee. URLs that never answer (DNS errors, refused, timeouts) are reported but **not charged**.

### Use cases

- SEO site migrations: confirm every old URL 301s to the right new page in one hop
- Finding broken links and 404s in a list of URLs, sitemaps or backlinks
- Expanding shortened links (bit.ly, t.co, etc.) to their final destination
- Uptime and status checks on a schedule
- Checking affiliate and tracking links still land where they should

### Input

| Field | Default | Notes |
|---|---|---|
| `urls` | (required) | URLs or domains (domains get `https://`) |
| `method` | `GET` | `GET` or `HEAD` |
| `maxRedirects` | `10` | Hops to follow before flagging |
| `timeoutSecs` | `20` | Per hop |
| `userAgent` | bot UA | Optional custom User-Agent |
| `expectedStatus` | none | e.g. `200`; flags anything else |
| `maxConcurrency` | `10` | |

```json
{ "urls": ["http://github.com", "https://httpbin.org/redirect/3", "https://httpbin.org/status/404"], "expectedStatus": 200 }
```

### Output (one row per URL)

```json
{
  "inputUrl": "http://github.com", "status": "success", "finalUrl": "https://github.com/",
  "finalStatus": 200, "finalStatusText": "OK", "redirectCount": 1, "redirectTypes": [301],
  "chain": [
    { "url": "http://github.com/", "status": 301, "statusText": "Moved Permanently", "location": "https://github.com/", "timeMs": 41 },
    { "url": "https://github.com/", "status": 200, "statusText": "OK", "location": null, "timeMs": 180 }
  ],
  "timeMs": 221, "contentType": "text/html; charset=utf-8", "ok": true, "problems": []
}
```

A `SUMMARY` record in the key-value store counts final status codes across the run. Export the dataset as CSV, Excel or JSON from the Storage tab.

### Pricing

Pay per event: **$0.0005 per URL checked** ($0.50 per 1,000). No start fee. URLs with no HTTP response are free.

### Notes

Makes one ordinary request per hop, the same as a browser would. No crawling, no scanning. Built by Wood Between Studio. Questions or a feature request? Open an issue on the Issues tab.

# Actor input Schema

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

URLs to check. Domains without a scheme get https:// (or http:// if you turn on "Test http://").

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

GET reads only the headers and cancels the body, so it stays fast.

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

Stop following after this many hops (flagged as too many redirects).

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

Per hop.

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

Optional custom User-Agent header (default: a browser-like WoodBetweenStudioBot string).

## `expectedStatus` (type: `integer`):

Optional. Flags URLs whose final status is different (e.g. 200).

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

URLs checked in parallel.

## Actor input object example

```json
{
  "urls": [
    "http://github.com",
    "https://httpbin.org/status/404",
    "https://bit.ly/3XyZ8kK"
  ],
  "method": "GET",
  "maxRedirects": 10,
  "timeoutSecs": 20,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `results` (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://github.com",
        "https://httpbin.org/status/404",
        "https://bit.ly/3XyZ8kK"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("wood-between-studio/http-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://github.com",
        "https://httpbin.org/status/404",
        "https://bit.ly/3XyZ8kK",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("wood-between-studio/http-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://github.com",
    "https://httpbin.org/status/404",
    "https://bit.ly/3XyZ8kK"
  ]
}' |
apify call wood-between-studio/http-status-redirect-checker --silent --output-dataset

```

## MCP server setup

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