# Broken Link & Image Checker \[$0.60/1K 💰] (`cybermax/broken-link-checker`) Actor

💰 $0.60 per 1,000 unique URLs + $0.002 per run. Bulk broken link checker: scan page URLs or whole sites for dead links and broken images (404, 410, 5xx, DNS errors, timeouts), with the page each one sits on, the anchor text and redirect targets. Pages that fail to load are free.

- **URL**: https://apify.com/cybermax/broken-link-checker.md
- **Developed by:** [CyberMax](https://apify.com/cybermax) (community)
- **Categories:** SEO tools, Developer tools, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## Linkpail: Broken Link & Image Checker

#### Find every dead link and broken image on your pages or your whole site: 404s, timeouts and DNS errors, with the page each one sits on

Linkpail is a **broken link checker**. Give it page URLs (and, if you like, tell it to follow internal links across the site); it reads every link and image on those pages, checks each unique URL once, and returns the broken ones with the page they appear on, the anchor text or alt text, the HTTP status and any redirect target. Pages that cannot be loaded and inputs that are not URLs are reported and never charged.

**[▶ Try it now](https://apify.com/cybermax/broken-link-checker)** (run it empty for a free demo) · $0.0006 per unique URL + $0.002 per run · Apify's free plan includes $5 of credit a month, enough for about 8,000 URLs

**Built for:** SEO agencies running a monthly link audit for client sites · content teams cleaning old blog posts after a migration · e-commerce managers finding product images that no longer load · developers and AI agents that need a broken-link report inside a workflow

**Real output** (run on Apify, 18 Nov 2026, the free demo on a public practice site; the first row is the demo's built-in dead link):

| type | pageUrl | url | anchorText | status | category |
|---|---|---|---|---|---|
| link | https://books.toscrape.com/ | https://books.toscrape.com/this-page-does-not-exist.html | Demo: a link to a page that does not exist | 404 | broken |

A larger run (4 start pages, 12 pages per site, CSS and JavaScript included, 5 s) checked 556 unique URLs and returned 20 redirects, among them:

```json
{
  "type": "link",
  "pageUrl": "https://quotes.toscrape.com/",
  "url": "https://quotes.toscrape.com/author/Albert-Einstein",
  "anchorText": "(about)",
  "status": 200,
  "category": "redirected",
  "finalUrl": "http://quotes.toscrape.com/author/Albert-Einstein/"
}
```

### How to use it

1. **Pages to check:** one URL per line. Use your own sites or pages you are allowed to check.
2. Optional: **Also scan the rest of each site** follows internal links up to **Max pages per site** (default 25).
3. Choose what to check: links, images (on by default), CSS / JavaScript / icons (off by default), links to other sites (on).
4. Run. By default only broken URLs are listed; turn off **Output broken URLs only** to see every result (`ok`, `redirected`, `blocked`, `broken`).
5. Leave the input empty for a free demo.

### Results

| Category | Meaning |
|---|---|
| `broken` | 404, 410, other 4xx/5xx, DNS failure, connection error or timeout |
| `redirected` | Works, but ends on a different URL (`finalUrl`) |
| `blocked` | The site refused automated checks (401, 403, 429): check by hand |
| `ok` | 2xx with no redirect |

Output fields: `type` (link / image / asset), `pageUrl`, `url`, `anchorText`, `status`, `category`, `finalUrl`, `error`. Each place a broken URL appears is its own row, so you know where to fix it.

### Ready-made inputs

| Job | Input |
|---|---|
| **Audit one page** | `{"startUrls": ["https://example.com/blog/post"]}` |
| **Audit a small site** | `{"startUrls": ["https://example.com/"], "crawlSite": true, "maxPagesPerSite": 100}` |
| **Internal links and images only** | `{"startUrls": ["https://example.com/"], "checkExternal": false}` |

### Integrations

- **API (curl):**
  ```bash
  curl -X POST "https://api.apify.com/v2/acts/cybermax~broken-link-checker/run-sync-get-dataset-items?token=YOUR_TOKEN" \
    -H "Content-Type: application/json" -d '{"startUrls": ["https://example.com/"], "crawlSite": true}'
  ```
- **Python:** `ApifyClient(token).actor("cybermax/broken-link-checker").call(run_input={"startUrls": urls})`
- **Schedule it:** save the input as an Apify Task and run it weekly; send results to Slack, Sheets or email.
- **AI agents (MCP):** `https://mcp.apify.com?actors=cybermax/broken-link-checker`.

### Pricing

| What | Price |
|---|---|
| Unique URL checked (a link used on 20 pages counts once) | **$0.0006** ($0.60 per 1,000) |
| Run (own input only) | $0.002 |
| Pages scanned, pages that fail to load, invalid inputs, demo runs | free |

Example: a 100-page site with 1,500 unique URLs costs **$0.90 + $0.002**. Apify's free plan includes $5 of credit a month.

### Why Linkpail

| | Linkpail | Other broken link checkers on the Store (18 Nov 2026) |
|---|---|---|
| Price | **$0.0006 per unique URL** + $0.002 per run | $0.001 to $0.0012 per link, or $0.02 per page + $0.002 per link |
| Where it is | Every page a broken URL appears on | Often one row per link only |
| Images | Checked by default | Often links only |
| Failed pages and bad input | Reported, free | Often charged |

### When NOT to use Linkpail

- **Pages that only build their links with JavaScript.** Linkpail reads the HTML the server sends; it does not run a browser.
- **Sites behind a login.** It never logs in.
- **Sites you do not run or have no right to check.** Use it on your own sites and pages you are allowed to scan; it identifies itself as `LinkpailBot` and checks at most 12 URLs at once by default.

### FAQ

**Why is a link marked `blocked`?** Some sites answer automated requests with 403 or 429 even though the page works in a browser. Linkpail lists them separately so you can check by hand.

**Does it check anchors (#section)?** No. Fragments are ignored.

**Is my data safe?** Only the URLs you give and the links on those pages are requested.

### Also from CyberMax

- [Picpail: Bulk Image Downloader](https://apify.com/cybermax/bulk-image-downloader) · download every image on the pages you just checked.
- [Bouncefern: URL Status & Redirect Checker](https://apify.com/cybermax/url-status-checker) · check a plain list of URLs and redirect maps.
- [Nameshuck: Bulk Domain Availability Checker](https://apify.com/cybermax/domain-availability-checker) · check domains for a new site.

Found this useful? A quick rating helps others find it.

© 2026 CyberMax. All rights reserved.

# Actor input Schema

## `startUrls` (type: `array`):

Page URLs, one per line. Every link and image on each page is checked. Use your own sites or pages you are allowed to check. Leave empty for a free demo.

## `crawlSite` (type: `boolean`):

Follow internal links from each start page and check those pages too, up to the page limit below.

## `maxPagesPerSite` (type: `integer`):

Page limit per start URL when scanning the rest of the site.

## `checkImages` (type: `boolean`):

Also check every image (img src and srcset) for broken files.

## `checkAssets` (type: `boolean`):

Also check stylesheet, script and icon files.

## `checkExternal` (type: `boolean`):

Turn off to check internal links and images only.

## `onlyBroken` (type: `boolean`):

Turn off to also list working, redirected and blocked URLs (all are counted in the run summary).

## `maxLinks` (type: `integer`):

Optional cap on unique URLs checked (and charged).

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

Give up on a URL after this many seconds (counts as broken: timed out).

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

How many URLs are checked at once.

## Actor input object example

```json
{
  "startUrls": [
    "https://books.toscrape.com/"
  ],
  "crawlSite": false,
  "maxPagesPerSite": 25,
  "checkImages": true,
  "checkAssets": false,
  "checkExternal": true,
  "onlyBroken": true,
  "timeoutSecs": 15,
  "concurrency": 12
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "startUrls": [
        "https://books.toscrape.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cybermax/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 = { "startUrls": ["https://books.toscrape.com/"] }

# Run the Actor and wait for it to finish
run = client.actor("cybermax/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 '{
  "startUrls": [
    "https://books.toscrape.com/"
  ]
}' |
apify call cybermax/broken-link-checker --silent --output-dataset

```

## MCP server setup

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