# Bulk URL Status Checker & Broken Link Finder (`kj_ais/bulk-url-status-checker`) Actor

Check thousands of URLs or a whole sitemap for 404s, redirect chains, server errors and noindex headers. Separates blocked from broken. $0.30 per 1,000 URLs.

- **URL**: https://apify.com/kj_ais/bulk-url-status-checker.md
- **Developed by:** [Yoseob Lee](https://apify.com/kj_ais) (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

Pay per event

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 URL Status Checker & Broken Link Finder

**Bulk URL Status Checker** checks thousands of URLs, or every URL in a website's sitemap, and tells you which ones are broken (404/410), redirected, erroring, timing out or marked `noindex`. Each result includes the HTTP status code, the full redirect chain, the final URL and the response time.

What it does differently:

- **Paste a website, get every sitemap URL checked.** No need to extract the sitemap first: give it `example.com` and it finds the sitemap through robots.txt or `/sitemap.xml`, follows sitemap indexes and `.gz` files, and checks every page.
- **"Blocked" is kept apart from "broken".** 401, 403, 429 and 451 answers usually mean a site refused an automated check, not that the page is gone. They get their own `blocked` result, so you don't "fix" working pages.
- **Redirects that end in a 404 count as broken**, with every hop listed.
- **No silent timeouts.** Results are saved every 100 URLs. If the run is about to hit its timeout, it stops cleanly, keeps everything checked so far and says how many URLs were left.
- **$0.30 per 1,000 URLs checked.**

### Who it's for

- SEO specialists auditing a site or a migration (find 404s and redirect chains in the sitemap).
- Website owners and agencies doing routine broken link checks.
- Developers checking a list of links, files or API endpoints before a release.
- Anyone cleaning a spreadsheet of URLs (paste a column, get the status of each).

### What data you get

| Field | What it means |
|---|---|
| `url` | The URL you asked for |
| `category` | `ok`, `redirect`, `broken`, `blocked`, `server_error`, `client_error`, `timeout`, `network_error`, `redirect_loop`, `too_many_redirects`, `redirect_unresolved`, `skipped_robots` |
| `status` | First HTTP status code (e.g. 301) |
| `finalStatus` | Status code after following redirects (e.g. 200 or 404) |
| `finalUrl` | Where the URL ends up |
| `redirectCount`, `redirectChain` | Number of redirects and every hop (`url`, `status`, `location`) |
| `responseTimeMs` | Total time for all hops |
| `contentType`, `contentLength` | From the response headers |
| `xRobotsTag`, `noindex` | The X-Robots-Tag header, and `true` when it says `noindex` |
| `method` | `HEAD` or `GET` (whichever gave the answer) |
| `sourceSitemap` | The sitemap file the URL came from (sitemap mode) |
| `error` | A plain-language note for anything that is not OK |
| `checkedAt` | When it was checked |

A **summary** (counts by result and by status code, sitemap report, invalid inputs) is saved in the `OUTPUT` record of the run's key-value store.

### How to use it

1. Click **Try for free**.
2. Paste URLs into **URLs to check**, paste a block of URLs into the text box, or add a website under **Check every URL in these sitemaps**.
3. Optional: turn on **Only save problem URLs** to get just the broken, blocked and redirected ones.
4. Click **Start**. Download the results as CSV, Excel or JSON, or send them to Google Sheets with an Apify integration.

**From code:** call the Actor through the Apify API or the Apify JavaScript/Python client with the same input as below, then read the dataset items.

### Input example

```json
{
  "urls": ["https://apify.com", "http://apify.com", "https://docs.apify.com/this-page-does-not-exist"],
  "sitemapUrls": ["https://docs.apify.com"],
  "maxUrls": 1000,
  "onlyProblems": false
}
```

### Output example (from a real test run)

```json
[
  { "url": "http://apify.com/", "category": "redirect", "status": 301, "finalStatus": 200, "finalUrl": "https://apify.com/", "redirectCount": 1, "method": "HEAD" },
  { "url": "https://docs.apify.com/this-page-does-not-exist", "category": "broken", "status": 404, "finalStatus": 404, "redirectCount": 0, "method": "GET" },
  { "url": "https://httpbin.org/status/429", "category": "blocked", "status": 429, "finalStatus": 429, "error": "The site refused the automated check (often bot protection or rate limiting). The page may still work in a browser." }
]
```

### Pricing

You pay **$0.30 per 1,000 URLs checked** plus a tiny start fee ($0.0005 per run). Checking a 3,000-page sitemap costs about $0.90. You can set a maximum cost per run in Apify; the Actor stops cleanly when it is reached and keeps the results so far.

### Limits (what it does not do)

- It checks the URLs you give it or that are listed in sitemaps. It does **not** crawl pages to discover links inside them.
- `noindex` is read from the `X-Robots-Tag` header only, not from `<meta name="robots">` tags in the HTML.
- It respects robots.txt by default; disallowed URLs are marked `skipped_robots`. Turn this off only for websites you own.
- Some sites block all automated checks. Those URLs show as `blocked`; it does not try to get around bot protection.
- Login-protected pages show as `blocked` (401/403).

### FAQ

**How do I check a list of URLs for 404 errors?**
Paste the URLs into "URLs to check" (or paste a whole column into the text box) and click Start. Every 404 and 410 shows up with category `broken`.

**How do I find broken links in my sitemap?**
Add your website or sitemap link under "Check every URL in these sitemaps" and turn on "Only save problem URLs". The Actor reads the sitemap and checks every page in it.

**What is the difference between "broken" and "blocked"?**
Broken means the server says the page does not exist (404 or 410). Blocked means the server refused the check (401, 403, 429, 451), which usually happens with bot protection or rate limits; the page may work fine in a browser.

**Does it follow redirects?**
Yes, up to 10 hops by default. You get every hop in `redirectChain`, the final URL and final status. Loops and chains that end in an error are flagged.

**How much does it cost to check 1,000 URLs?**
$0.30 plus a $0.0005 start fee.

**Is it fast?**
It runs 10 requests in parallel by default (at most 4 per website, to stay polite). In our tests, 3,000 URLs on one site took about two minutes.

**Can I export the results to Google Sheets or Excel?**
Yes. Download the dataset as CSV or Excel, or connect Google Sheets through Apify integrations.

**Can I run it on a schedule?**
Yes. Create a schedule in Apify (for example weekly) to catch new broken pages early.

### Related Actors

- **Sitemap URL Extractor & Change Monitor** (kj_ais): extract every URL from a sitemap and track new, updated and removed pages.
- **Steam Reviews Scraper** (kj_ais): export Steam game reviews to CSV.

# Actor input Schema

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

Pages, files or links to check. One per line. example.com works too (https:// is added).

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

Paste URLs separated by new lines, spaces or commas (for example a column copied from a spreadsheet).

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

A website (we find its sitemap through robots.txt or /sitemap.xml) or a direct sitemap link. Sitemap indexes and .gz files are followed.

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

Stop after checking this many URLs in total. 0 = no limit.

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

Save only broken, blocked, redirected, erroring or noindex URLs. All URLs are still counted in the summary.

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

Auto sends a light HEAD request and falls back to GET when a server answers HEAD badly. GET is slower but matches what a browser gets.

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

How many URLs are checked at the same time in total.

## `maxConcurrencyPerHost` (type: `integer`):

Keeps the load on any one website low, which also avoids rate-limit errors.

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

How long to wait for each answer before counting it as a timeout.

## `maxRetries` (type: `integer`):

Retries for timeouts, network errors, 429 and 5xx answers (with back-off and Retry-After).

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

Follow at most this many redirects per URL; more is reported as too_many_redirects.

## `respectRobotsTxt` (type: `boolean`):

Skip URLs the site's robots.txt disallows (marked skipped_robots). Turn off only for websites you own.

## `proxyConfiguration` (type: `object`):

Optional. Not needed for most sites.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://docs.apify.com/this-page-does-not-exist"
  ],
  "maxUrls": 1000,
  "onlyProblems": false,
  "method": "auto",
  "maxConcurrency": 10,
  "maxConcurrencyPerHost": 4,
  "requestTimeoutSecs": 20,
  "maxRetries": 2,
  "maxRedirects": 10,
  "respectRobotsTxt": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One row per checked URL (or only problem URLs).

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

Counts by result and status code, sitemap report, invalid inputs.

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

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

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

```

## MCP server setup

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