# Broken Link Checker & Bulk URL Status Checker (Redirects) (`argmaxed/url-status-checker`) Actor

Broken link checker and bulk URL status checker: check thousands of links, whole sitemaps or every link on your pages for HTTP status codes, 404s, 5xx, redirect chains, final URLs, response times and DNS/SSL/timeout errors. Fast, no browser.

- **URL**: https://apify.com/argmaxed/url-status-checker.md
- **Developed by:** [Jay Pokale](https://apify.com/argmaxed) (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

from $0.05 / 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

## Broken Link Checker & Bulk URL Status Checker (Redirects)

**Broken link checker** and **bulk URL status checker** that checks thousands of links in seconds (a list, a whole sitemap, or every link on your pages) and tells you, for each one, the HTTP status code, whether it is broken (404, 410, 5xx), every hop of its redirect chain, the final URL, the response time, and the exact error when a link can't be reached (DNS failure, timeout, expired SSL certificate, redirect loop). Plain HTTP, no browser, so it is fast and cheap.

### What can it do?

- ✅ Check HTTP status codes for a list of URLs in bulk (HEAD request, confirmed with GET when a server answers HEAD badly)
- 🔁 Trace full redirect chains (301, 302, 303, 307, 308) and catch redirect loops
- 💔 Find broken links: 404s, 5xx errors, dead domains, expired or invalid SSL certificates, timeouts
- ⏱️ Measure response time per URL
- 🗺️ **Check a whole site from its sitemap:** sitemap indexes and `.xml.gz` are followed automatically
- 🔎 **Broken link checker:** scan pages and check every link on them; each result lists the pages it was found on
- 🧾 Report every URL, including the failing ones. A run never "succeeds" with missing rows

### Use cases

- **SEO audits:** find broken links and redirect chains after a site migration
- **Link monitoring:** schedule a daily run over your important pages, backlinks or affiliate links
- **Data cleaning:** validate a list of website URLs before importing it into a CRM
- **AI agents:** let an agent verify links before citing them

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `urls` | array of strings | 4 sample URLs | URLs to check. `https://` is added when the scheme is missing. Duplicates are checked once. |
| `sitemapUrls` | array of strings | – | Sitemaps whose page URLs should be checked (indexes and `.gz` supported) |
| `checkLinksOnPages` | array of strings | – | Pages to scan: every link on them is checked |
| `linkScope` | `all` / `internal` / `external` | `all` | Which links to check on scanned pages |
| `maxUrls` | integer | 10,000 | Upper limit on URLs checked per run |
| `maxConcurrency` | integer | 10 | Parallel requests (1–50). |
| `timeoutSecs` | integer | 15 | Timeout per request. |
| `maxRedirects` | integer | 10 | Redirect hops to follow before reporting a loop. |
| `userAgent` | string | built-in | Optional custom User-Agent. |

```json
{
  "urls": ["https://apify.com", "http://apify.com", "https://example.com", "https://apify.com/this-page-does-not-exist-404"],
  "maxConcurrency": 10
}
```

#### Find broken links on your site

```json
{
  "checkLinksOnPages": ["https://example.com/", "https://example.com/blog/"],
  "linkScope": "all",
  "maxUrls": 2000
}
```

Or check every page in your sitemap:

```json
{ "sitemapUrls": ["https://example.com/sitemap.xml"], "maxUrls": 5000 }
```

Filter the results by `ok = false` to get the broken links; `foundOn` tells you which page to fix.

### Output

One dataset row per URL. Download it as JSON, CSV, Excel or HTML from the run's Storage tab, or through the API.

```json
{
  "url": "http://apify.com",
  "finalUrl": "https://apify.com/",
  "statusCode": 301,
  "finalStatusCode": 200,
  "ok": true,
  "redirectCount": 1,
  "redirectChain": [{ "url": "http://apify.com", "statusCode": 301, "location": "https://apify.com/" }],
  "responseTimeMs": 178,
  "contentType": "text/html; charset=utf-8",
  "contentLength": null,
  "server": null,
  "error": null,
  "errorType": null,
  "checkedAt": "2026-11-12T18:19:32+00:00",
  "source": "input",
  "foundOn": []
}
```

| Field | Description |
|---|---|
| `url` | The URL as checked |
| `finalUrl` | Where the URL ends up after all redirects |
| `statusCode` | Status of the first response (e.g. 301) |
| `finalStatusCode` | Status of the final URL (e.g. 200, 404) |
| `ok` | `true` when the final status is 2xx |
| `redirectCount` / `redirectChain` | Number of hops, and each hop's URL, status and Location |
| `responseTimeMs` | Total time for the whole chain |
| `contentType`, `contentLength`, `server` | Headers of the final response |
| `error`, `errorType` | Why a URL could not be reached: `dns_error`, `timeout`, `ssl_error`, `connection_error`, `too_many_redirects`, `blocked_address`, `request_error` |
| `checkedAt` | UTC time of the check |
| `source` | `input`, `sitemap` or `page` |
| `foundOn` | Pages where the link was found (page scans; up to 20) |

### Pricing

Pay per event, with no subscription:

- **$0.002 per run** (start fee)
- **$0.07 per 1,000 URLs checked** ($0.00007 per URL)
- Discounts on Apify paid plans: **$0.06 per 1,000** on Silver, **$0.05 per 1,000** on Gold and above

Checking 1,000 URLs costs about $0.07. Reading sitemaps and scanning pages is free: you only pay for URLs actually checked, and the run stops cleanly when it reaches the spending limit you set.

### Use it from AI agents (MCP)

This Actor is available through the [Apify MCP server](https://mcp.apify.com). Agents in Claude, Cursor, VS Code and other MCP clients can call it as a tool: pass a list of `urls` and read back one row per URL.

### Integrations and API

- **No-code:** send results to Google Sheets, Make, Zapier, n8n, Slack or webhooks from the Actor's **Integrations** tab, for example to get a message when any link breaks.
- **Schedule it:** check your key pages, backlinks or affiliate links every day (Console → Schedules).
- **API:** start runs and download results from any language.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("argmaxed/url-status-checker").call(run_input={
    "urls": ["https://example.com", "http://example.com/old-page"],
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["url"], row["finalStatusCode"], row["redirectCount"], row["errorType"])
```

```bash
curl -X POST "https://api.apify.com/v2/acts/argmaxed~url-status-checker/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://example.com", "http://apify.com"]}'
```

### FAQ

**Does it render JavaScript?** No. It checks HTTP responses, which is what status codes and redirects are. Client-side (JavaScript) redirects are not followed.

**Why did a page that works in my browser return 403?** Some sites block automated requests. The checker reports exactly what the server returned. Try a different `userAgent`.

**Can it check a whole website?** Yes, via its sitemap (`sitemapUrls`), or scan specific pages for broken links (`checkLinksOnPages`). It doesn't crawl link-by-link beyond the pages you list.

**Are private or internal addresses checked?** No. URLs that resolve to private, loopback or cloud-metadata addresses are refused (`blocked_address`), for security.

### Is it legal?

Yes. The checker sends ordinary HTTP requests to the URLs you provide and reads only the status line and headers of each checked URL. For sitemap and page scans it downloads the sitemaps and pages you list, only to extract their links; it stores the links, never the page content. Check only sites you own or have a legitimate reason to check, and keep `maxConcurrency` modest for small sites.

### Limitations

- No JavaScript or meta-refresh redirects
- Checked URLs' bodies are not downloaded, so there is no soft-404 detection or page content
- Sites behind aggressive bot protection may return 403/429

### Author

Built and maintained by **Jay Pokale**: AI tooling, RAG systems and data pipelines.

Need a custom scraper, an integration or a data pipeline? Get in touch via [jaypokale.me](https://jaypokale.me) or [LinkedIn](https://www.linkedin.com/in/JayPokale). Found a bug or want a feature? Open an issue on the Actor's **Issues** tab. Issues get a reply within 24 hours.

# Actor input Schema

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

Links to check, one per line. URLs without a scheme get https:// added. Duplicates are checked once. You can also (or instead) use a sitemap or pages to scan below.

## `sitemapUrls` (type: `array`):

Sitemap URLs (e.g. https://example.com/sitemap.xml). Every page URL listed is checked. Sitemap indexes and .xml.gz files are followed automatically.

## `checkLinksOnPages` (type: `array`):

Pages whose links should be checked. Every <a href> link on each page is checked once, and each result lists the pages it was found on (foundOn).

## `linkScope` (type: `string`):

For pages to scan: check all links, only internal links (same site) or only external links.

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

Upper limit on URLs checked in one run (after adding sitemap and page links). Keeps large sitemaps within budget.

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

How many URLs to check at the same time (1-50). Lower it if a site rate-limits you.

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

Give up on a request after this many seconds; the URL is reported with errorType "timeout".

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

Maximum redirect hops to follow before reporting "too_many_redirects" (catches redirect loops).

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

Custom User-Agent header. Leave empty to use the default checker User-Agent.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "http://apify.com",
    "https://example.com",
    "https://apify.com/this-page-does-not-exist-404"
  ],
  "linkScope": "all",
  "maxUrls": 10000,
  "maxConcurrency": 10,
  "timeoutSecs": 15,
  "maxRedirects": 10
}
```

# Actor output Schema

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

One row per URL: status code, final URL, redirect chain, response time and error, if any.

## `allFields` (type: `string`):

Full dataset with every field, as JSON, CSV or Excel.

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

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

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

```

## MCP server setup

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