Broken Link Checker - 404, Dead Link & Redirect Checker avatar

Broken Link Checker - 404, Dead Link & Redirect Checker

Pricing

from $2.00 / 1,000 page crawleds

Go to Apify Store
Broken Link Checker - 404, Dead Link & Redirect Checker

Broken Link Checker - 404, Dead Link & Redirect Checker

Crawl a whole website and find every broken link: 404s, server errors, dead images, scripts and stylesheets, redirect chains and loops, plus mixed content. Each issue shows the page it is on and its anchor text. Checks external links too, respects robots.txt.

Pricing

from $2.00 / 1,000 page crawleds

Rating

0.0

(0)

Developer

Adam Abdou-Gustavson

Adam Abdou-Gustavson

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Features

Limited permissions

Share

Crawl an entire website and get a clean list of every broken link, broken image, dead script or stylesheet, server error and long redirect chain, with the page it appears on and its anchor text.

What it does

Give it one or more start URLs. The Actor crawls each website (it stays on the same host and treats www. and the bare domain as one site), reads every page's links and resources, and checks each unique URL once. For each problem it reports:

  • Broken links (404/410), server errors (5xx), other 4xx errors and unreachable URLs (DNS failure, SSL error, timeout, connection refused).
  • Broken images, scripts, stylesheets, icons, <source> and iframes, not just <a> links (turn off with checkImages: false).
  • Redirect chains and loops. It reports links that go through more than redirectChainThreshold redirects (default 1), with the full chain and the final URL. Internal links that redirect once are listed as low-severity "link to the final URL instead" (turn off with reportRedirects: false).
  • Mixed content: http:// resources on https:// pages.
  • Sitemap audit (optional, useSitemap). Seeds the crawl with every URL in your sitemap.xml (found through robots.txt or /sitemap.xml; sitemap indexes and .gz files are read) and flags sitemap URLs that are broken, redirect, are noindex or are blocked by robots.txt. When the crawl finishes without hitting a limit, it also lists orphan pages: sitemap URLs that no crawled page links to.
  • External links (optional, on by default). Sites that block bots (401, 403, 429, 999) are listed as info "verify manually" instead of being called broken.

Every result includes the page it was found on, the anchor text, how many times it appears, and up to 25 source pages, so you know exactly where to fix it. It does a HEAD request first and confirms with a GET before reporting a failure, which cuts false positives from servers that mishandle HEAD. It respects robots.txt by default and runs without a browser, so it is fast and cheap.

Quick start

  1. Click Try for free (or Start) on this page.
  2. Enter your website in Start URLs (the form is pre-filled with a test site, https://crawler-test.com/).
  3. Set Max pages (the form is pre-filled with 50; the default is 200).
  4. Click Start. Open the Output tab, or export the issues to CSV, Excel or JSON. A SUMMARY record in the key-value store has the totals.

Input examples

1. Quick broken link check of a small site:

{
"startUrls": [{ "url": "https://www.example.com/" }],
"maxPages": 50
}

2. Internal links only, skip images, ignore some sections, larger crawl:

{
"startUrls": [{ "url": "https://www.example.com/" }],
"maxPages": 2000,
"checkExternalLinks": false,
"checkImages": false,
"excludeUrlPatterns": ["/tag/", "/search", "\\?page="]
}

3. Sitemap audit: check every URL in sitemap.xml only (no link crawl):

{
"startUrls": [{ "url": "https://www.example.com/" }],
"useSitemap": true,
"maxDepth": 0,
"maxPages": 1000
}

With maxDepth: 0 only the start URL and the sitemap URLs are crawled, and the links on those pages are still checked. Leave maxDepth at its default to crawl the site as well; the orphan-page check needs that full crawl.

4. Crawl only the blog section, using glob patterns:

{
"startUrls": [{ "url": "https://www.example.com/blog/" }],
"urlPatternSyntax": "glob",
"includeUrlPatterns": ["https://www.example.com/blog/*"],
"excludeUrlPatterns": ["*/tag/*", "*?replytocom=*"]
}

Only pages that match an include pattern are crawled. Links from those pages to the rest of the site are still checked once, so you still see when one is broken.

5. Redirect audit: flag every chain of 2+ hops and list internal redirects:

{
"startUrls": [{ "url": "https://www.example.com/" }],
"maxPages": 500,
"redirectChainThreshold": 1,
"reportRedirects": true,
"maxDepth": 5
}
FieldDefaultWhat it does
startUrls–One or more sites to crawl. Each is crawled separately and stays on its own host.
maxPages200Maximum HTML pages fetched per run (1–50,000). This also caps the cost.
maxDepth10How many clicks deep from the start URL to crawl.
checkExternalLinkstrueAlso check links to other domains (each unique URL once).
checkImagestrueAlso check images, scripts, stylesheets, icons, <source> and iframes.
redirectChainThreshold1Report links with more redirects than this.
reportRedirectstrueList internal links that redirect once (low severity).
includeOkLinksfalseOutput every checked link, not just problems.
useSitemapfalseSitemap mode: also crawl every same-host URL in the site's sitemap and flag sitemap problems.
sitemapUrls[]Your own sitemap or sitemap index URLs instead of auto-discovery (turns on sitemap mode).
includeUrlPatterns[]If set, only internal pages matching a pattern are crawled (start URLs always are).
excludeUrlPatterns[]Patterns for URLs that are neither crawled nor checked.
urlPatternSyntaxregexregex or glob (*, ?, [abc], matched against the full URL) for both pattern lists.
maxConcurrency8Parallel requests (1–32).
respectRobotsTxttrueSkip pages disallowed by robots.txt.

Sample output

Real results. The first two come from a local run on 2026-11-02 against the public test site https://crawler-test.com/. The third comes from an earlier run on https://the-internet.herokuapp.com/.

[
{
"url": "https://crawler-test.com/status_codes/status_404",
"severity": "high",
"issue": "broken (not found)",
"statusCode": 404,
"error": null,
"linkType": "internal",
"elementType": "a",
"foundOn": "https://crawler-test.com/",
"anchorText": "404 HTTP Status",
"occurrences": 1,
"allSources": [{ "page": "https://crawler-test.com/", "anchorText": "404 HTTP Status" }],
"redirectCount": 0,
"redirectChain": [],
"finalUrl": "https://crawler-test.com/status_codes/status_404"
},
{
"url": "https://crawler-test.com/redirects/redirect_3_302",
"severity": "medium",
"issue": "redirect chain (3 hops)",
"statusCode": 200,
"error": null,
"linkType": "internal",
"elementType": "a",
"foundOn": "https://crawler-test.com/",
"anchorText": "Redirect 302",
"occurrences": 1,
"allSources": [{ "page": "https://crawler-test.com/", "anchorText": "Redirect 302" }],
"redirectCount": 3,
"redirectChain": [
"https://crawler-test.com/redirects/redirect_3_302",
"https://crawler-test.com/redirects/redirect_2",
"https://crawler-test.com/redirects/redirect_1"
],
"finalUrl": "https://crawler-test.com/redirects/redirect_target"
},
{
"url": "https://the-internet.herokuapp.com/asdf.jpg",
"severity": "high",
"issue": "broken (not found)",
"statusCode": 404,
"error": null,
"linkType": "internal",
"elementType": "img",
"foundOn": "https://the-internet.herokuapp.com/broken_images",
"anchorText": "",
"occurrences": 1,
"allSources": [{ "page": "https://the-internet.herokuapp.com/broken_images", "anchorText": "" }],
"redirectCount": 0,
"redirectChain": [],
"finalUrl": "https://the-internet.herokuapp.com/asdf.jpg"
}
]

The SUMMARY record from the same crawler-test.com run (15 pages crawled, so it cost $0.03):

{
"startUrls": ["https://crawler-test.com/"],
"pagesCrawled": 15,
"pagesFetched": 15,
"uniqueLinksChecked": 423,
"pagesSkippedByRobotsTxt": 0,
"issuesBySeverity": { "high": 81, "medium": 4, "low": 7 },
"stoppedByCostLimit": false
}

Every item also has flat copies of the nested fields: allSourcePages (pages joined with |) and redirectChainText (the chain joined with ->). There is also inSitemap (true or false). For spreadsheets, use the Flat table dataset view, or export with ?view=flat&format=csv. The run's Output tab links to the CSV directly.

In sitemap mode, the SUMMARY record also gets a sitemap block: the sitemap files read, URLs found, and whether the orphan check ran.

Severity levels: high = broken (404/410, 5xx, unreachable, internal 4xx); medium = redirect chains, external 4xx and mixed content; low = internal links that redirect once; info = external sites that block bots (check by hand).

Use cases

  • SEO maintenance: find 404s and redirect chains that waste crawl budget and link equity, then fix them at the source page.
  • Website migrations and redesigns: run before and after a launch to catch links and images that broke.
  • Agencies: schedule weekly broken link reports for client sites and export to Google Sheets or Slack.
  • Content teams: find outbound links in old blog posts that now go to dead pages.
  • QA and CI: call it from the API after a deploy and fail the pipeline if issuesBySeverity.high is above zero.

Pricing

This Actor uses pay-per-event pricing. These are the current prices:

EventPriceWhen it is charged
Page crawled (page-crawled)$0.002 per page ($2 per 1,000 pages)Once for each on-site HTML page fetched successfully (HTTP 200)
Actor start (apify-actor-start)$0.00005Once per run, per GB of memory (the default memory needs one)

Links themselves are free. Checking external links, images, scripts and redirects does not cost extra, and neither do pages that error or are skipped.

Website sizeCost
50 pages$0.10
500 pages$1.00
5,000 pages$10.00
50,000 pages$100.00

maxPages caps how many pages are fetched, so it also caps the cost. There is no rental fee and no separate compute charge. Set a maximum cost per run in the run options (or maxTotalChargeUsd in the API) and the Actor stops cleanly when it reaches it (stoppedByCostLimit in the SUMMARY).

Use it via API, code or AI agents

Everything in the Console also works over the API, so you can run it from code, a scheduler or an AI agent. Replace <YOUR_APIFY_TOKEN> with your token from Apify Console → Settings → API & Integrations.

REST: run and get the results in one call (waits up to 5 minutes; maxTotalChargeUsd caps what the run can cost):

curl -X POST "https://api.apify.com/v2/acts/batreek~broken-link-checker/run-sync-get-dataset-items?maxTotalChargeUsd=1" \
-H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"startUrls": [{"url": "https://www.example.com/"}], "maxPages": 50}'

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("batreek/broken-link-checker").call(run_input={
"startUrls": [
{
"url": "https://www.example.com/"
}
],
"maxPages": 50
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

JavaScript / Node.js (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('batreek/broken-link-checker').call({"startUrls": [{"url": "https://www.example.com/"}], "maxPages": 50});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

AI agents (MCP): add this Actor as a tool in Claude, ChatGPT, Cursor or any MCP client through Apify's hosted MCP server at https://mcp.apify.com?tools=batreek/broken-link-checker. The agent can then audit a website for broken links and read the structured results. Runs are billed to your Apify account like any other run.

No-code: use Apify's integrations (Zapier, Make, n8n, Google Sheets, Slack, webhooks) or put it on an Apify Schedule.

FAQ

Does it check external links? Yes, by default. Each unique external URL is checked once (it is not crawled further). Turn it off with checkExternalLinks: false for a faster, internal-only audit.

Why are some links marked info instead of broken? Sites such as LinkedIn and some CDNs answer automated requests with 401, 403, 429 or 999 even when the page works in a browser. Those are listed as "restricted or bot-blocked (verify manually)" so they do not inflate your broken count.

Does it find broken images? Yes. With checkImages on (the default) it checks <img>, <script>, stylesheets and icons, <source> and <iframe> URLs, and tells you which page they are on.

Does it render JavaScript? No. It reads the HTML the server returns. Links that only appear after JavaScript runs (some single-page apps) are not found.

Does it check my sitemap? Yes, if you turn on useSitemap (or give sitemapUrls). It reads the sitemap (including sitemap indexes and .gz files), crawls the URLs listed there and reports sitemap URLs that are broken, redirect, are noindex or are blocked by robots.txt. Sitemap URLs are charged like any other page crawled ($0.002 each when they load); reading the sitemap files is free. Without sitemap mode it only follows links, so pages nothing links to are not crawled.

Can I limit the crawl to one section? Yes. Use includeUrlPatterns, for example /blog/ with the default regex syntax, or https://www.example.com/blog/* with urlPatternSyntax: "glob".

Can I get a CSV without nested columns? Yes. Pick the Flat table view when you export, or add ?view=flat&format=csv to the dataset items URL.

Can I crawl several websites in one run? Yes. Add several start URLs; each is crawled on its own host, and maxPages is shared across the run.

Does it respect robots.txt? Yes, by default. Pages your robots.txt disallows are skipped and counted in pagesSkippedByRobotsTxt. You can turn this off for your own sites.

Can I check a site I don't own? Yes, for public pages. Please keep maxConcurrency low on other people's sites; the Actor respects robots.txt by default. To run it regularly on your own site, save a task and add a weekly schedule in Apify Console.

Limitations

  • No JavaScript rendering: links added only by client-side JavaScript are not discovered.
  • Orphan pages need sitemap mode and a full crawl: without useSitemap the Actor only follows links. The orphan check is skipped when maxPages, maxDepth or a cost limit stops the crawl early, and it counts only links on crawled pages. Sitemap mode reads up to 50 sitemap files and 50,000 URLs per site.
  • One host per start URL: subdomains (for example blog.example.com) are treated as external links. Add them as separate start URLs to crawl them.
  • Up to 25 source pages per issue are listed in allSources; occurrences gives the full count.
  • Timeouts: each request times out after 20 seconds (10 seconds to connect); very slow URLs are reported as unreachable.
  • Bot protection: sites behind aggressive bot protection may block the crawler or return 403/429. External cases are reported as info; for your own site, allow-list the crawler or lower maxConcurrency.
  • Not a full SEO audit: it does not check titles, meta descriptions, page speed or structured data.