# URL Status & Redirect Checker - HTTP Codes, Chains & Headers (`lentic_labs/url-status-redirect-checker`) Actor

Bulk check HTTP status codes and redirect chains: each hop's status, method and timing, the final URL, loops, http-to-https, plus key headers (server, content-type, cache-control, x-robots-tag, HSTS). No crawling. $1 per 1,000 URLs.

- **URL**: https://apify.com/lentic_labs/url-status-redirect-checker.md
- **Developed by:** [Lentic Labs](https://apify.com/lentic_labs) (community)
- **Categories:** Developer tools, SEO 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 $1.00 / 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

## URL Status & Redirect Checker - HTTP Codes, Chains & Headers

**Does this URL work, where does it end up, and how many redirects does it take?** Give a list of URLs and get one row per URL:

- **Final HTTP status** and **final URL**, plus `ok` (2xx)
- **Every redirect hop**: URL, status, method, time in ms and `Location`
- **Redirect loops**, too many redirects, and **http-to-https** upgrades
- **Key headers** of the final response: `server`, `content-type`, `content-length`, `last-modified`, `cache-control`, `x-robots-tag` and HSTS

Useful for SEO migrations (301 vs 302 checks, chains to flatten), link and backlink checks, uptime spot checks and cleaning URL lists. **It checks only the URLs you give. There is no crawling or link-following beyond redirects.**

### Example output

```json
{ "url": "http://github.com/", "status": "ok", "finalStatus": 200, "finalUrl": "https://github.com/", "ok": true,
  "redirectCount": 1, "httpToHttps": true, "redirectLoop": false, "tooManyRedirects": false, "totalMs": 182,
  "chain": [ { "url": "http://github.com/", "status": 301, "method": "HEAD", "ms": 41, "location": "https://github.com/" },
             { "url": "https://github.com/", "status": 200, "method": "HEAD", "ms": 141 } ],
  "server": "github.com", "contentType": "text/html; charset=utf-8", "hsts": "max-age=31536000; includeSubdomains; preload" }
```

Values are illustrative.

### How to use

- `{"urls": ["http://example.com", "example.org/old-page"]}`, or paste a list into **URLs (bulk paste)**. Bare domains get `https://` added.
- **Request method:** `HEAD_THEN_GET` (default) sends a light HEAD, and if the server rejects or mishandles HEAD (e.g. 405, 403, 404, 5xx) it retries that hop with GET, reading no body. `GET` sends GET only.
- **Max redirects:** 0-10 (default 10). Each hop is timed and has its own timeout, and each URL has a 60-second total limit across all hops (`timeout: total time limit per URL reached`, free if no response arrived).

### How much does it cost?

**$0.001 per URL ($1 per 1,000).** No subscription and no start fee. You're charged once per URL that returned any HTTP response, including 404s and 5xx, since that is the answer you asked for. DNS failures, refused connections, timeouts and invalid input are free. Set a maximum total charge per run and the Actor stops at your budget.

On Apify's free plan, the $5 monthly usage credit covers up to about 5,000 URLs a month (less if you use other Apify Actors or services).

#### How it compares

Status-code and redirect-checker Actors in the Apify Store (checked Oct 26, 2026) range from about $0.0006 to $0.30 per URL, some with a per-run start fee. Most charge $0.001 to $0.0025. This Actor is at the low end with no start fee, records the method and timing for every hop, and doesn't charge for unreachable hosts.

### Polite and safe by design

- At most 2 concurrent requests per host; HEAD is used where possible and bodies are never downloaded.
- Requests identify themselves with a `LenticLabs-Actor` User-Agent.
- Private, loopback, link-local and cloud-metadata addresses are refused at every hop, in every IPv4 and IPv6 spelling (including IPv4-mapped, IPv4-compatible, 6to4 and Teredo forms) (`blocked`, free). The connection goes only to the address that was checked, so a DNS answer that changes between check and connect is refused too.
- Use it only on URLs you're allowed to check.

Every row has a `rowId`, stable per input item. In the rare case a dataset save times out after the row was stored, an uncharged `error` row with the same `rowId` follows; keep the non-error row for each `rowId`.

### Use from AI agents (Apify MCP)

Add `https://mcp.apify.com?tools=lentic_labs/url-status-redirect-checker` to your MCP client, or call `run-sync-get-dataset-items` through the Apify API with `{"urls": ["https://example.com"]}`. Agents without an Apify account can use Apify's agentic payments (experimental): buy a prepaid token with x402, or pay per request with Skyfire.

### Data sources

None: every result is a live HTTP request from Apify's servers to the URL you supplied. Results can differ from what a browser sees, for example with geo-redirects, bot protection or JavaScript redirects (which aren't followed).

### FAQ

**Why does a site return 403 here but work in my browser?** Some sites block non-browser clients or datacenter IPs. The row shows exactly what the server answered.

**Are meta-refresh or JavaScript redirects followed?** No, only HTTP 3xx redirects with a `Location` header.

### Related

[Tech Stack Detector Lite](https://apify.com/lentic_labs/tech-stack-detector-lite) and [SSL certificate expiry checker](https://apify.com/lentic_labs/ssl-certificate-expiry-checker) by Lentic Labs.

# Actor input Schema

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

URLs to check. Bare domains get https:// added.

## `urlsText` (type: `string`):

Optional: paste URLs separated by newlines or spaces.

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

Redirect hops to follow per URL (0-10).

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

HEAD is lighter; some servers mishandle it, so a GET retry on that hop is part of the same check.

## `timeoutMs` (type: `integer`):

Per-hop timeout.

## `maxUrls` (type: `integer`):

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

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

Parallel checks. Each host additionally gets at most 2 requests at a time.

## Actor input object example

```json
{
  "urls": [
    "http://github.com",
    "apify.com",
    "https://httpbin.org/redirect/3",
    "https://httpbin.org/status/404"
  ],
  "maxRedirects": 10,
  "method": "HEAD_THEN_GET",
  "timeoutMs": 10000,
  "maxUrls": 0,
  "maxConcurrency": 10
}
```

# Actor output Schema

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

Default dataset, overview view.

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

Counts per final status code, URLs not OK, URLs that redirected.

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

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

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

```

## MCP server setup

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