Broken Link Checker - 404 & Redirect Chain Audit avatar

Broken Link Checker - 404 & Redirect Chain Audit

Pricing

from $0.50 / 1,000 link checkeds

Go to Apify Store
Broken Link Checker - 404 & Redirect Chain Audit

Broken Link Checker - 404 & Redirect Chain Audit

Bulk broken link checker and redirect chain audit for your website: finds 404, 410, 5xx, redirect chains, redirect loops, timeouts and mixed content. Each row lists every hop and the pages where the link appears. Broken link checker API, robots.txt-aware. $0.50 per 1,000 links.

Pricing

from $0.50 / 1,000 link checkeds

Rating

0.0

(0)

Developer

Grace M. Hartwell

Grace M. Hartwell

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

19 days ago

Last modified

Features

Limited permissions

Share

Hartwell Toolworks

Broken Link Checker & Redirect Chain Checker crawls your website and finds broken links (404, 410, other 4xx, 5xx), redirect chains, redirect loops, timeouts and insecure http / mixed-content links. Enter a start URL and click Start. Each problem comes back as one row that lists every redirect hop and the pages where the link appears, so you know exactly what to fix. robots.txt is respected, and it costs $0.50 per 1,000 links checked.

  • 🔎 Technical SEO audits: 404s and long redirect chains that waste crawl budget.
  • 🚚 Website migrations: check that old URLs redirect in one hop, with no loops and no https → http downgrades.
  • 🚀 QA before a launch: dead internal links, missing images, broken scripts.
  • 📅 Scheduled link monitoring: weekly on a blog, help center or docs site with an Apify schedule.
  • 🔒 HTTPS clean-up: remaining http:// links and mixed content on https pages.
  • 🌍 Outbound link hygiene: external links that now 404 or redirect somewhere else.

Example output: a redirect chain and a redirect loop

Real rows from our test site (local test server, so the host is 127.0.0.1):

{
"url": "http://127.0.0.1:8799/r/three-1",
"status": "redirect",
"httpStatus": 301,
"finalUrl": "http://127.0.0.1:8799/ok-target",
"finalStatus": 200,
"redirectCount": 3,
"redirectChain": [
{ "url": "http://127.0.0.1:8799/r/three-1", "status": 301, "location": "http://127.0.0.1:8799/r/three-2" },
{ "url": "http://127.0.0.1:8799/r/three-2", "status": 301, "location": "http://127.0.0.1:8799/r/three-3" },
{ "url": "http://127.0.0.1:8799/r/three-3", "status": 301, "location": "http://127.0.0.1:8799/ok-target" }
],
"internal": true,
"kind": "anchor",
"issues": ["REDIRECT", "REDIRECT_CHAIN"],
"foundOn": [{ "page": "http://127.0.0.1:8799/docs/23", "text": "see also", "tag": "a" }],
"foundOnCount": 1,
"method": "HEAD",
"error": null
}
{
"url": "http://127.0.0.1:8799/loop-a",
"status": "redirect-loop",
"redirectCount": 3,
"issues": ["REDIRECT_LOOP", "REDIRECT_CHAIN"],
"foundOn": [{ "page": "http://127.0.0.1:8799/docs/27", "text": "see also", "tag": "a" }],
"error": "Redirect loop: http://127.0.0.1:8799/loop-a → http://127.0.0.1:8799/loop-b → http://127.0.0.1:8799/loop-c → http://127.0.0.1:8799/loop-a"
}

We built a 32-page local test site with 15 planted problems: 7× 404 (including a missing image), 1× 410, 1× 500, redirects with 1, 2, 3 and 4 hops, a 3-URL redirect loop, and one page that answers after 10 s (timeout set to 4 s).

Result
Planted problems found with the expected status15 of 15
False positives0 (all 33 "ok" links really were fine)
Unique links checked48
Wall-clock time20.2 s (whole run, including CLI start-up and the deliberately slow page)
Public demo site (books.toscrape.com, ≤ 60 requests/min)150 links checked (cap), 0 issues, 70.8 s

This was one test site that we built ourselves, so we knew the answers. It does not prove the checker catches every problem on every site.

Measured by Hartwell Toolworks, Oct 2026. Your results will vary.

What does it find?

Findingstatus / issue code
404, 410, other 4xx, 5xxbroken / BROKEN
Redirects; chains of 2+ hops (every hop listed)redirect / REDIRECT, REDIRECT_CHAIN
Redirect loopsredirect-loop / REDIRECT_LOOP
More hops than maxRedirectstoo-many-redirects
No answer within the timeouttimeout / TIMEOUT
DNS, TLS, connection errorserror / ERROR
https page linking to http://INSECURE_HTTP_LINK
https page loading http images, scripts, CSS, iframes, mediaMIXED_CONTENT (needs checkResources)
https → http redirect / http link upgraded by redirectHTTPS_TO_HTTP_REDIRECT / HTTP_UPGRADED_BY_REDIRECT
Internal URL disallowed by robots.txtskipped-robots (not requested, not charged)

Key features

  • 🔗 Internal and external links; external sites get one HEAD/GET check per unique URL and are never crawled.
  • ↪️ Full redirect chains: each hop with URL, status and Location.
  • 📍 foundOn: up to 10 pages with anchor text and tag, plus foundOnCount.
  • 🔁 Retries 429, 5xx and network errors with exponential backoff; timeouts are not retried.
  • 🤝 Polite: robots.txt for your site, 2 parallel requests per host by default, a clear user agent (BrokenLinkRedirectAuditor/1.0).
  • 🧾 onlyIssues keeps healthy links out of the dataset.
  • 🧩 Apify platform: schedules, API, webhooks, exports to CSV, Excel, JSON and Google Sheets via integrations.
EventPriceWhen
link-checked$0.0005 per unique URL ($0.50 per 1,000)after a link is checked (crawling pages is included)
apify-actor-start$0.00005 per runat run start

Each URL is charged once per run, no matter how many pages link to it. robots.txt skips are free. Links hidden by onlyIssues are still checked, so they are still charged. Example: a site with 1,500 unique links costs about $0.75. Our 48-link test run would have cost $0.024 at list price (simulated locally; nothing was billed).

  1. Click Try for free and enter your Website (start URL).
  2. Set Max pages to crawl and Max crawl depth (0 = start page only).
  3. Choose: external links, resources (images, scripts, CSS, iframes, needed for mixed content), issues only.
  4. Optional: Max links to check or a Max total charge.
  5. Click Start. Export the report as CSV, Excel or JSON; the summary is in the OUTPUT record.

Input example

{
"startUrl": "https://www.example.org/",
"maxPages": 200,
"maxDepth": 3,
"checkExternalLinks": true,
"checkResources": true,
"onlyIssues": true,
"requestTimeoutSecs": 15,
"maxRedirects": 10,
"maxRetries": 2,
"perHostConcurrency": 2,
"maxRequestsPerMinute": 120
}
FieldDefaultDescription
startUrlhttps://example.com/Only this host is crawled (replace with your site).
maxPages / maxDepth50 / 3Crawl limits (1–10,000 / 0–20).
includeSubdomainsfalseTreat subdomains as internal.
checkExternalLinkstrueCheck (never crawl) other sites.
checkResourcesfalseImages, scripts, CSS, iframes, media; needed for mixed content.
onlyIssuesfalseHide healthy links from the dataset.
maxLinksToCheck0 (no limit)Also capped by Max total charge.
requestTimeoutSecs / maxRedirects / maxRetries15 / 10 / 2Per-request limits.
maxConcurrency / perHostConcurrency / maxRequestsPerMinute5 / 2 / 120Politeness limits.

Output fields

url, status, httpStatus, finalUrl, finalStatus, redirectCount, redirectChain, internal, kind (anchor/resource), issues, mixedContentOn, insecureLinkOn, foundOn, foundOnCount, method, responseTimeMs, error, checkedAt. Run summary (OUTPUT): pagesCrawled, uniqueLinksFound, linksChecked, robotsSkipped, byStatus, byIssue, stoppedEarly.

curl -X POST "https://api.apify.com/v2/acts/grace_hartwell~broken-link-redirect-auditor/run-sync-get-dataset-items?token=[YOUR_APIFY_TOKEN]" \
-H "Content-Type: application/json" \
-d '{"startUrl":"https://www.example.org/","maxPages":50,"onlyIssues":true}'
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('grace_hartwell/broken-link-redirect-auditor').call({ startUrl: 'https://www.example.org/', onlyIssues: true });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const broken = items.filter((i) => i.status === 'broken');

FAQ

Some sites block non-browser clients or need a login. The row says HTTP 403 (access denied – may be login/bot protection). Check those links manually.

How is a redirect chain counted?

redirectCount is the number of hops. One hop = REDIRECT; two or more also raise REDIRECT_CHAIN.

Are external websites crawled?

No. Each external URL gets one check (HEAD, GET fallback).

Is www.example.com the same site as example.com?

Yes, a leading www. is ignored.

Limitations: what this Actor does not do

  • No JavaScript rendering: links injected by client-side scripts are missed.
  • No logins or bot-protection bypass; protected pages may show as 401/403 broken.
  • #fragments are not checked; only http(s) links.
  • No sitemap import: pages are found by following links within maxDepth/maxPages.
  • robots.txt is read for your start host only; external links are checked without reading their robots.txt.
  • Timeouts can take up to about twice requestTimeoutSecs (HEAD, then GET).
  • maxRequestsPerMinute limits crawling; link checks are limited by perHostConcurrency.

Other Actors by Hartwell Toolworks

ActorWhat it does
Bulk PageSpeed Insights & Core Web Vitals CheckThe other half of a technical SEO check: LCP, INP, CLS with alerts
HTML to Markdown Converter for LLM & RAGTitles, meta descriptions, heading outlines and clean Markdown for a URL list
Deduplicate & Merge Apify DatasetsCombine several audit runs and keep only new issues

Found a bug or an edge case? Open an issue on the Issues tab.