Broken Link Checker: Crawl a Website for 404s & Dead Links avatar

Broken Link Checker: Crawl a Website for 404s & Dead Links

Pricing

$1.00 / 1,000 link checkeds

Go to Apify Store
Broken Link Checker: Crawl a Website for 404s & Dead Links

Broken Link Checker: Crawl a Website for 404s & Dead Links

Crawl your whole website and check every internal and external link. Get each broken link with the page it is on, anchor text, status code and redirect chain. Bot blocks (403, 429, Cloudflare) are labeled, not called broken. Pay per link checked. Works from AI agents via MCP.

Pricing

$1.00 / 1,000 link checkeds

Rating

0.0

(0)

Developer

Adam Schepis

Adam Schepis

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

Crawl your whole website and check every link on it. Give it your home page URL and it follows internal links page by page, collects every <a href>, and checks each unique link once: internal pages and outbound links to other sites. You get one row per broken link per page, with the page it is on, the anchor text, the HTTP status code, the error type and the full redirect chain, so you know exactly what to fix and where.

Links that bot protection refuses (403, 429, LinkedIn's 999, Cloudflare challenges) are labeled blocked, never broken, so your report is not padded with links that work fine in a browser.

Works from AI agents too: call it as a tool through Apify's MCP server when an agent is asked to "find and fix the dead links in our docs".

What you get

  • Every broken link, with where it is: source page, target URL, anchor text, status code, and whether it is internal or external. A link that is broken on 40 pages gives 40 rows, so each page can be fixed.
  • Clear error types: http-4xx, http-5xx, dns-error, timeout, tls-error, connection-error, redirect-loop, too-many-redirects and more, not just "failed".
  • Redirect chains: every hop with its status code, plus the final URL, so a link that 301s to a 404 is caught and you can see where it went wrong.
  • No false alarms from bot blocks: 401, 403, 429, 999 and Cloudflare/AWS WAF challenge pages are reported as blocked with a reason, separate from real broken links.
  • Optional extras: check <img> sources for broken images, check #anchor links against the ids on your own pages, or output every working link too for a full inventory.
  • A run summary in the key-value store (SUMMARY): pages crawled, links found and checked, and counts of broken, blocked, working and skipped links.
  • Pay per unique link checked. Pages crawled, skipped links and links over your limits are free.

How it works

  1. Crawls your site from the start URLs, staying on the same site (example.com and www.example.com count as one; turn on Include subdomains to add blog.example.com and the like). robots.txt is honored for crawling.
  2. Collects every link on each page. mailto:, tel:, javascript: and same-page # links are skipped and never charged.
  3. Checks each unique URL once. Pages the crawler already opened are not requested again. Other links get a HEAD request, and any HEAD failure is confirmed with a GET before the link counts as broken, because many servers answer HEAD with 404, 405 or 501 for pages that work.
  4. External sites are only checked, never crawled, with at most 2 requests at a time per site.

Input

FieldTypeDefaultDescription
startUrlsarray of URLsrequiredWhere to start, usually your home page.
maxPagesinteger100Pages of your site to open and read links from.
maxLinksinteger1000Unique links to check (and charge) at most.
checkExternalLinksbooleantrueAlso check links to other websites.
includeSubdomainsbooleanfalseTreat subdomains of the start site as internal and crawl them.
includeImagesbooleanfalseAlso check <img> sources.
checkAnchorsbooleanfalseReport /page#section links whose page has no element with that id.
reportWorkingLinksbooleanfalseOutput a row for every link, not only broken and blocked ones.
maxCostUsdnumbernoneSpending cap for this run; links beyond it are not checked or charged.

Example input:

{
"startUrls": [{ "url": "https://the-internet.herokuapp.com/" }],
"maxPages": 25,
"maxLinks": 300
}

Output example

One row per page and broken (or blocked) link. These are real rows from a run of the input above:

{
"sourceUrl": "https://the-internet.herokuapp.com/disappearing_elements",
"targetUrl": "https://the-internet.herokuapp.com/portfolio/",
"anchorText": "Portfolio",
"element": "a",
"linkType": "internal",
"status": "broken",
"statusCode": 404,
"errorType": "http-4xx",
"errorMessage": "HTTP 404.",
"redirectChain": [],
"finalUrl": "https://the-internet.herokuapp.com/portfolio/",
"checkedWith": "GET",
"checkedAt": "2026-11-20T15:06:10.106Z"
}

A link behind a login is reported, but as blocked, not broken:

{
"sourceUrl": "https://the-internet.herokuapp.com/",
"targetUrl": "https://the-internet.herokuapp.com/basic_auth",
"anchorText": "Basic Auth",
"linkType": "internal",
"status": "blocked",
"statusCode": 401,
"errorType": "auth-required",
"errorMessage": "HTTP 401: the page needs a login."
}

Download the rows as JSON, CSV or Excel, or read them through the Apify API. The run summary is in the default key-value store under SUMMARY.

Status and error types

statuserrorTypeMeaning
brokenhttp-4xxThe server answered 400-499 (other than the blocked codes below), for example 404 Not Found or 410 Gone.
brokenhttp-5xxThe server answered with an error, 500-599.
brokendns-errorThe domain does not resolve: a typo, or an expired domain.
brokentimeoutNo complete answer within 20 seconds.
brokentls-errorThe HTTPS certificate is expired, self-signed, or for another domain.
brokenconnection-errorThe server refused or dropped the connection.
brokenredirect-loop / too-many-redirectsRedirects go in a circle, or there are more than 10.
brokeninvalid-redirectA redirect with no Location header, or to a URL that cannot be followed.
brokenmissing-anchorWith checkAnchors: the page loads but the #section is not on it.
blockedbot-blocked403 or LinkedIn's 999: the site refuses automated requests.
blockedrate-limited429: the site is limiting requests.
blockedauth-required401 or 407: the page needs a login.
blockedchallenge-pageA Cloudflare, AWS WAF or similar bot check.
skippedprivate-addressThe link points at a private or internal network address (localhost, 192.168.x.x and so on), which is never fetched. Not charged.

A blocked link usually works for a human visitor. Open it in a browser before deciding it is broken.

Pricing

This Actor uses pay-per-event pricing. You pay for one event, link-checked, once per unique link that was checked. The exact price is shown on the Actor's Store page before you run it.

EventWhen it's charged
link-checkedOnce per unique URL checked, however many pages link to it, before its rows are saved.
  • Crawling pages is free. You pay for links checked, not pages visited.
  • Skipped links are free: mailto:, tel:, javascript:, same-page # links, private network addresses, external links when checkExternalLinks is off, and anything past maxLinks or maxCostUsd.
  • Your spending limit is respected. Set maxCostUsd, maxLinks, or the run's maximum cost, and the Actor stops checking before it goes over.

Good to know

  • Static HTML only. Links are read from the HTML the server sends. Links that only appear after JavaScript runs (some single-page apps) are not seen. The same goes for #anchors added by JavaScript, which is why checkAnchors is off by default.
  • robots.txt is honored for crawling. A page your robots.txt disallows is still checked when another page links to it (one request, like a visitor clicking), but it is not crawled for more links. If robots.txt disallows the start URL itself, nothing is crawled.
  • Only <a href> links by default, plus <area href>. Turn on includeImages for <img src>. Stylesheets and scripts are not checked.
  • Same page, different query string = different link. /page?a=1 and /page?a=2 are checked separately. Trailing slashes are kept as written, since /docs and /docs/ can be different pages.
  • Private network addresses are never fetched, including links that redirect to one, so the Actor cannot be pointed at internal services.
  • Requests use a normal browser User-Agent. Some sites still block automated checks; those links show up as blocked, not broken.

Why this Actor

  • Bot blocks are labeled separately, so the broken-link list is one you can act on.
  • Each broken link comes with the page it is on and its anchor text, so fixing it is a find-and-replace, not a hunt.
  • HEAD failures are confirmed with GET before anything is reported.
  • Each unique link is checked and charged once, however many pages it appears on.

Notes