# Broken Link Checker (`snappytools/broken-link-checker`) Actor

Give it a public page URL and it pulls every link from that page, requests each one and tells you which links return a 4xx or 5xx error or don't respond at all. You pass a list of page URLs. You get back one row per page, in the order you gave them. Pages that can't be fetched still get a row.

- **URL**: https://apify.com/snappytools/broken-link-checker.md
- **Developed by:** [Snappy](https://apify.com/snappytools) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 results

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

## Broken Link Checker – find 404 and dead links on any page

Broken link checker that pulls every link from a public page, requests each one and lists the links returning 4xx or 5xx errors or no response at all.

You give it a list of page URLs. You get back one row per page, in the order you gave them, with `pageStatusCode`, `linksFound`, `linksChecked`, `brokenCount`, a `brokenLinks` list and the full `links` list with each link's `statusCode`. Pages that can't be fetched still get a row with a plain reason, so one bad URL never spoils the rest.

Schedule it weekly on your key pages and you'll hear about dead links before your visitors or search engines do.

### Why this one

- **One row per page, always.** Every input URL gets a result with a `status` of `ok`, `invalid`, `not_found` or `error`, so you can match output to input without guessing.
- **Real HTTP checks.** Each link is requested live and redirects are followed, so you see the final status and `finalUrl`.
- **Polite by design.** Requests are paced, and a few links are checked at a time.
- **Stable ids.** Each row's `id` is a hash of the normalised page URL, so repeat runs line up for change tracking.
- **No login, no browser.** It reads public HTML pages with plain HTTP requests.
- **Cheap.** $1.50 per 1,000 results, and runs with no results cost nothing.

### Quick start

```json
{
  "urls": ["https://www.iana.org/help/example-domains", "https://example.com", "https://www.w3.org/"],
  "maxLinksPerPage": 5,
  "includeExternal": true
}
```

This returns three rows, one per page, each listing the links checked and which of them are broken.

### What you can use it for

| Who | What for |
| --- | --- |
| SEO consultants | Find 404s on client landing pages before an audit call |
| Content teams | Check old blog posts for links to pages that no longer exist |
| Web developers | Run a link check on key pages after a release or migration |
| Documentation owners | Catch broken references to external docs and specs |

### How to use it

1. Click **Try for free**.
2. In **Page URLs**, add the pages to scan, one per line, e.g. `https://example.com`. Up to 50 pages per run.
3. Set **Max links per page** if you want more or fewer than 50 links checked per page (1 to 200).
4. Untick **Check external links** if you only want links on the same host as the page.
5. Click **Start**.

Tip: add the run to **Schedules** to recheck your pages every week.

### What data you get

Each row describes one input page and the links found on it.

| Field | What it is | Example |
| --- | --- | --- |
| `id` | Stable hash of the normalised page URL | `7630c14a6e2b99f6` |
| `input` | The value you passed, unchanged | `https://www.iana.org/help/example-domains` |
| `status` | `ok`, `invalid`, `not_found` or `error` | `ok` |
| `reason` | Plain explanation when status isn't `ok`, otherwise null | `null` |
| `url` | The URL that was fetched | `https://example.com/` |
| `pageStatusCode` | HTTP status of the page itself | `200` |
| `linksFound` | Links found on the page | `26` |
| `linksChecked` | Links actually checked (capped by your limit) | `5` |
| `brokenCount` | Links with a 4xx, 5xx or network error | `0` |
| `brokenLinks` | The broken links with status code and error | `[]` |
| `links` | Every checked link with `url`, `statusCode`, `ok`, `finalUrl`, `error` | `{"url":"https://www.iana.org/domains","statusCode":200,"ok":true}` |
| `checkedAt` | When the page was checked, ISO 8601 | `2026-11-15T10:01:43.905Z` |
| `source` | Where the data came from, with the page URL | `{"name":"Live HTTP request","url":"https://example.com/"}` |

In a test run on 15 Nov 2026 with 3 pages, the tool returned 3 rows. On the IANA page it found 26 links and checked 5, with none broken.

### Pricing

| Event | Price |
| --- | --- |
| Result (one per page) | $0.0015 |

There is no start fee, and runs with no results cost nothing.

| Run | Cost |
| --- | --- |
| 100 results | $0.15 |
| 1,000 results | $1.50 |
| 10,000 results | $15.00 |

### Good to know

- **Limits:** up to 50 pages per run and 1 to 200 links per page. Links beyond your limit are skipped.
- **Where the data comes from:** live HTTP requests to the public pages and links you give it, made at run time.
- **Single pages, not a full crawl:** it checks links on the pages you list. To cover a site, pass the pages you care about.
- **Some sites block bots:** a few servers answer automated requests with an error even when the link works in a browser, so double-check those.
- **Not affiliated:** this tool isn't affiliated with or endorsed by the owners of the sites you check.

### FAQ

**How do I check a page for broken links in bulk?** Paste up to 50 page URLs into **Page URLs** and click **Start**. You get one row per page.

**What counts as a broken link?** Any link answering 4xx or 5xx, or one that doesn't respond.

**Can I check only internal links?** Yes. Untick **Check external links** to check only links on the same host as the page.

**What if a page URL is wrong?** You get a row for it with a `status` and `reason`, and the other pages still run.

### Getting the data out

Download results as Excel, CSV or JSON from the Output tab. Send them to Google Sheets, Slack, Zapier, Make or webhooks from the **Integrations** tab. Every run is also available through the Apify API, and you can run it on a timetable from **Schedules**.

### Questions or problems

Open an issue on the **Issues** tab and include the run link. I reply within one business day.

### Related tools

- [Bulk Email Syntax and MX Validator](https://apify.com/snappytools/email-syntax-mx-validator): checks email syntax and mail servers in bulk
- [TED Europa Tender Scraper](https://apify.com/snappytools/ted-europa-tender-scraper): exports European tender notices
- [Companies House Company Scraper](https://apify.com/snappytools/companies-house-uk-scraper): exports UK company records

# Actor input Schema

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

Public web page URLs to scan for broken links, one per line, e.g. https://www.iana.org/help/example-domains. Up to 50 pages per run. One result row per URL, in the same order.

## `maxLinksPerPage` (type: `integer`):

Most links to check on each page, e.g. 50. Links beyond this number are skipped. Between 1 and 200.

## `includeExternal` (type: `boolean`):

Set to true to also check links pointing to other domains, false to check only links on the same host as the page.

## Actor input object example

```json
{
  "urls": [
    "https://www.iana.org/help/example-domains",
    "https://example.com",
    "https://www.w3.org/"
  ],
  "maxLinksPerPage": 50,
  "includeExternal": true
}
```

# Actor output Schema

## `results` (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": [
        "https://www.iana.org/help/example-domains",
        "https://example.com",
        "https://www.w3.org/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("snappytools/broken-link-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://www.iana.org/help/example-domains",
        "https://example.com",
        "https://www.w3.org/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("snappytools/broken-link-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://www.iana.org/help/example-domains",
    "https://example.com",
    "https://www.w3.org/"
  ]
}' |
apify call snappytools/broken-link-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,snappytools/broken-link-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/2qompk2TFZbrbHBEm/builds/V6sNFqhcjqjoNaarn/openapi.json
