Broken Link Checker: 404s, Redirect Chains & Soft 404s avatar

Broken Link Checker: 404s, Redirect Chains & Soft 404s

Pricing

$0.50 / 1,000 link checkeds

Go to Apify Store
Broken Link Checker: 404s, Redirect Chains & Soft 404s

Broken Link Checker: 404s, Redirect Chains & Soft 404s

Crawl your website and find broken links, images, scripts and CSS. Get status codes, full redirect chains, soft 404 hints, the page and anchor text for every link, and a run summary.

Pricing

$0.50 / 1,000 link checkeds

Rating

0.0

(0)

Developer

Kayorama

Kayorama

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

Point it at your website and it tells you which links are dead. The Actor crawls your pages, collects every link, image, script and stylesheet on them, and checks each unique URL once. You get the status code, the page it was found on, the anchor text, and the full redirect chain when a link bounces through one or more redirects.

It also flags soft 404s: pages that answer 200 OK but say "Page not found" in the title or heading, and old URLs that quietly redirect to your home page. Most link checkers report those as fine.

At the end of every run there's a summary in the key-value store with pages crawled, links checked, broken links by status code, the worst offenders, and the pages with the most problems.

No login, no proxy, no browser. Plain HTTP, a declared user agent, and a polite pace.

Good for

  • Site maintenance: find the 404s in your menus, footers and old blog posts before your visitors do.
  • SEO audits: broken internal links waste crawl budget and leak link equity. Redirect chains slow everything down. Both show up here with the exact page to fix.
  • After a migration or relaunch: run it on the new site and see every old URL that still points nowhere.
  • Agencies: schedule a weekly check per client and send them the list of problems, sorted by how often each broken link appears.
  • Dead images and scripts: a missing image or a script on a dead CDN also counts, and those are easy to miss by eye.

How it works

  1. It opens your start URLs and follows links on the same host (www and non-www count as one site), up to maxPages pages and maxDepth clicks deep. It respects your robots.txt and any Crawl-delay.
  2. It extracts every <a href>, <img src>, <link href> and <script src>. Comments, mailto:, tel: and javascript: links are skipped.
  3. Each unique URL is checked once. External links get a HEAD request first; if the server refuses HEAD or answers with an error, it retries with GET before calling the link broken. That cuts most of the false alarms you get from servers that handle HEAD badly. Internal pages are fetched with GET so the soft 404 check can read them.
  4. Redirects are followed one hop at a time (up to 8), so you see every step and its status code, not only where it ended.
  5. External links are checked, never crawled. Every host gets at least 0.8 seconds between requests, 429 and 503 answers are respected (Retry-After first, then a backoff), and your own site gets 200 ms between requests by default.

What you get

By default you get one row per unique link. Turn on Only output problem links to get just the broken ones.

FieldExample
linkUrlhttps://example.com/old-pricing
sourcePage, anchorTextthe first page it was found on and the link text there
sourcePages, occurrencesevery page it was found on (up to 50) and how many times
linkTypea, img, script, css or link (icons, canonical, alternates, preload)
scopeinternal or external
issueTypebroken, soft-404, blocked, rate-limited, redirect, not-checked or ok
isBrokentrue for 4xx, 5xx, DNS errors, refused connections, TLS errors and timeouts
statusCode, finalStatusCode301, 404
errorENOTFOUND: getaddrinfo ENOTFOUND old-cdn.example.net, TIMEOUT: no response within the time limit
isRedirect, redirectCount, redirectChain, finalUrlevery hop with its status
soft404HintPage title says "Page not found", Redirects to the home page
nofollow, relfrom the link's rel attribute
mixedContentan http image, script or stylesheet on an https page
method, contentType, responseMshow the check was done

Example row:

{
"sourcePage": "https://example.com/blog/2021-roundup",
"linkUrl": "https://example.com/tools/old-calculator",
"anchorText": "our ROI calculator",
"linkType": "a",
"scope": "internal",
"issueType": "broken",
"isBroken": true,
"statusCode": 301,
"finalStatusCode": 404,
"error": null,
"isRedirect": true,
"redirectCount": 2,
"redirectChain": [
{ "from": "https://example.com/tools/old-calculator", "status": 301, "to": "https://example.com/tools/old-calculator/" },
{ "from": "https://example.com/tools/old-calculator/", "status": 301, "to": "https://example.com/calculators/roi" }
],
"finalUrl": "https://example.com/calculators/roi",
"soft404Hint": null,
"nofollow": false,
"occurrences": 6,
"sourcePages": ["https://example.com/blog/2021-roundup", "https://example.com/pricing"]
}

The SUMMARY record

Open the key-value store of the run and look for SUMMARY:

{
"pagesCrawled": 20,
"uniqueLinksFound": 650,
"linksChecked": 650,
"internalLinksChecked": 640,
"externalLinksChecked": 10,
"brokenLinks": 3,
"brokenByStatus": { "404": 2, "ENOTFOUND": 1 },
"soft404Links": 1,
"blockedLinks": 0,
"redirectedLinks": 12,
"byStatusCode": { "200": 634, "404": 2, "no response": 1 },
"topBrokenLinks": [{ "linkUrl": "https://example.com/old", "status": 404, "occurrences": 14 }],
"pagesWithMostProblems": [{ "page": "https://example.com/resources", "problems": 3 }],
"stopReason": null
}

Input

FieldDefaultWhat it does
startUrlscrawlee.devWhere the crawl starts. Usually your home page.
maxPages5Pages to open and read links from. Raise it for a full site check.
maxDepth3Clicks away from the start URL. 0 checks only the links on the start pages.
maxLinksToCheck200Cap on unique links checked (and paid for) per run.
checkExternalLinkstrueCheck links to other sites too.
checkResourcestrueCheck images, scripts and stylesheets, not only <a> links.
onlyBrokenfalseOnly write problem links to the dataset.
includeRedirectsfalseWith onlyBroken, also report links that work but redirect.
includeBlockedtrueWith onlyBroken, also report 401, 403, 429 and 999 answers.
rowPerSourcePagefalseOne row per page and link instead of one per unique link.
ignoreUrlPatternsnoneSkip links containing this text, or matching /regex/.
timeoutSecs10No answer in this time means a TIMEOUT error.
requestDelayMs200Pause between requests to your own site.

The defaults are small on purpose so a first try costs about 10 cents. For a real site check, something like this works well:

{
"startUrls": ["https://www.example.com"],
"maxPages": 500,
"maxDepth": 10,
"maxLinksToCheck": 5000,
"onlyBroken": true,
"includeRedirects": true,
"ignoreUrlPatterns": ["/wp-admin/", "?replytocom=", "/cart"]
}

Pricing

Pay per event, no start fee:

EventPrice
Link checked (one unique URL requested, crawled pages included)$0.0005

You pay once per unique URL, no matter how many pages link to it. A link on every page of your site is one event. Links skipped by your ignore patterns, links blocked by your robots.txt and links left over when a cap is hit are not charged. Rows in the dataset are free, so onlyBroken on or off costs the same.

Some examples: the default run (200 links) costs $0.10. A 300-page site with 2,000 unique links costs $1.00. If you set a maximum cost per run, the Actor stops checking when it gets there and still writes the results and the summary.

FAQ

Why is a link marked blocked and not broken? 401, 403, 429 and 999 usually mean the other site doesn't let automated checks in (LinkedIn answers 999, many shops sit behind bot protection). The link might work fine in a browser. They're listed separately so you can check them by hand. Turn off includeBlocked to hide them.

Does it crawl external sites? No. External links get a status check and nothing more. Only pages on the start URL's host are crawled.

Does it respect robots.txt? Yes for your own site: pages and internal links your robots.txt disallows for our crawler are not requested and show up as not-checked. External links get a single status check, like a visitor clicking the link, at a slow pace per host.

Can it check pages that need JavaScript? It reads the HTML the server sends. Links that only appear after JavaScript runs are not seen. Most sites (WordPress, Shopify, Webflow, Next.js and Docusaurus with server rendering) send their links in the HTML.

How reliable is the soft 404 hint? It's a hint. It fires when a 200 page has "404", "not found" or a similar phrase (also in Dutch, German, French, Spanish, Italian, Polish and Portuguese) in the title or main heading, or when a deep URL redirects to the home page. Look at those rows before you change anything.

How fast is it? Your site gets about 5 requests per second by default; external hosts are checked in parallel at a slower pace each. Expect roughly 250 to 300 links per minute on a normal site. Raise requestDelayMs if your server is small.

What user agent does it send? Mozilla/5.0 (compatible; KayoramaLinkChecker/0.1; +https://apify.com/kayorama/broken-link-checker). You can target KayoramaLinkChecker in robots.txt.

Support

Found a bug or want another check? Open an issue on the Actor's Issues tab and I'll take a look. Made by Kayorama.