# Bulk URL Status & Redirect Checker (HTTP Codes, SSL Expiry) (`docsmith/url-status-checker`) Actor

Check thousands of URLs for HTTP status codes, broken links (404, 5xx), redirect chains, loops, response times and SSL certificate expiry. For SEO migrations, link audits and uptime checks. Pay per URL.

- **URL**: https://apify.com/docsmith/url-status-checker.md
- **Developed by:** [Docsmith Tools](https://apify.com/docsmith) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.60 / 1,000 urls checked

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/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 Codes, SSL Expiry)

Check **thousands of URLs** for **HTTP status codes**, **broken links**, **redirect chains** and **SSL certificate expiry** in one run. Export the results to CSV or Excel, or schedule it as a simple uptime and link monitor.

### Use cases

- **Site migrations and SEO:** confirm every old URL 301-redirects to the right place, and find chains and loops.
- **Broken link audits:** check lists of links from a sitemap, spreadsheet or CMS export for 404s and 5xx errors.
- **Uptime checks:** schedule it hourly or daily and alert on failures with an Apify integration.
- **Certificate expiry:** see days left on the SSL certificate of every HTTPS host.

### What you get for each URL

| Field | Meaning |
| --- | --- |
| `status`, `statusClass` | Final HTTP status and its class (ok, redirect, client-error, server-error, error) |
| `redirectChain` | Every hop with its status code and location |
| `finalUrl`, `redirectCount`, `httpsUpgrade` | Where it ends up, how many hops, and whether HTTP was upgraded to HTTPS |
| `responseTimeMs` | Total time across all hops |
| `contentType`, `contentLength`, `server`, `lastModified`, `xRobotsTag` | Useful response headers |
| `errorType`, `error` | dns, timeout, ssl, connection-refused, redirect-loop, too-many-redirects and more |
| `ssl` (optional) | valid, issuer, expiry date and days left |

### Example

```json
{
  "url": "http://github.com/",
  "ok": true,
  "status": 200,
  "statusClass": "ok",
  "finalUrl": "https://github.com/",
  "redirectCount": 1,
  "redirectChain": [{ "url": "http://github.com/", "status": 301, "location": "https://github.com/" }],
  "httpsUpgrade": true,
  "responseTimeMs": 182,
  "contentType": "text/html; charset=utf-8"
}
```

### Why use it

- **Fast.** HEAD requests first with automatic GET fallback, up to 50 URLs in parallel.
- **Accurate redirects.** Every hop is recorded, including relative Location headers. Loops are detected.
- **Only problems mode** for short reports.
- **No scraping.** Page content is not downloaded or stored, only status and headers.

### Pricing

Pay per URL checked. Set a maximum cost per run and the tool stops cleanly before going over it.

### How much does it cost to check URLs?

You pay **US$0.0006 per URL** (plus a small amount of Apify platform usage). **10,000 URLs cost about US$6.** There is no start fee.

### How to bulk check HTTP status codes

1. Click **Try for free**.
2. Paste URLs (one per line), or bare domains.
3. Optionally turn on **Check SSL certificate** and **Only output problems**.
4. Click **Start**, then export the **Overview** table to CSV or Excel.

### FAQ

**Can I check 301 redirects after a site migration?** Yes. Each result shows every hop with its status code, so you can confirm old URLs 301 to the right new URL in one hop, and spot 302s, chains and loops.

**Does it find broken links (404)?** Yes. Use *Only output problems* to get just the 4xx, 5xx, timeouts, DNS failures and SSL errors.

**Can I use it as an uptime monitor?** Yes. Save it as a Task, add an hourly schedule and an email or Slack integration that alerts when a run has problems.

**Does it download page content?** No. It reads status codes and headers only (HEAD first, GET only when a server refuses HEAD), so it is fast and light on the sites you check.

### Use it from code or AI agents

Call it with the Apify API, the JavaScript or Python client, or through Apify's MCP server.

### Other Docsmith tools

- [Document to Markdown](https://apify.com/docsmith/document-to-markdown): convert PDF, Word, Excel and PowerPoint files to Markdown and JSON for AI and RAG.
- [Email Security Audit](https://apify.com/docsmith/email-security-audit): check SPF, DKIM, DMARC and SSL for many domains, with a grade and fixes.
- [Image Converter & Compressor](https://apify.com/docsmith/image-converter): convert and resize images to WebP, AVIF, JPG or PNG.
- [RSS Feed Reader & Monitor](https://apify.com/docsmith/rss-feed-reader): turn RSS, Atom and JSON feeds into JSON, with only-new-items alerts.

# Actor input Schema

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

URLs to check. Bare domains get https:// added. Duplicates are removed.

## `checkSsl` (type: `boolean`):

Add certificate validity, issuer and days until expiry for each HTTPS host.

## `onlyProblems` (type: `boolean`):

Only save URLs that fail, return 4xx/5xx, have more than one redirect, or have an SSL problem. All URLs are still checked and charged.

## `useHead` (type: `boolean`):

Use fast HEAD requests and fall back to GET when a server refuses HEAD. Turn off to always use GET.

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

Give up on a URL if it does not answer within this time.

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

Stop following redirects after this many hops.

## `concurrency` (type: `integer`):

How many URLs to check at the same time.

## Actor input object example

```json
{
  "urls": [
    "http://github.com",
    "https://example.com/this-page-does-not-exist"
  ],
  "checkSsl": false,
  "onlyProblems": false,
  "useHead": true,
  "timeoutSecs": 15,
  "maxRedirects": 10,
  "concurrency": 10
}
```

# Actor output Schema

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

Every checked URL with status, redirects and timings.

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

Summary table of status codes and redirects.

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

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

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

```

## MCP server setup

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