Broken Link Checker – 404s with Source Pages & Anchor Text avatar

Broken Link Checker – 404s with Source Pages & Anchor Text

Pricing

from $2.00 / 1,000 crawled pages

Go to Apify Store
Broken Link Checker – 404s with Source Pages & Anchor Text

Broken Link Checker – 404s with Source Pages & Anchor Text

Crawl a website and check every internal and external link (optionally images, scripts, CSS): status code, error type (DNS, timeout, SSL, 4xx, 5xx), redirect target and all source pages with anchor text. One row per broken link, priced per crawled page.

Pricing

from $2.00 / 1,000 crawled pages

Rating

0.0

(0)

Developer

Adam Plänitz

Adam Plänitz

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Categories

Features

Limited permissions

Share

Crawl your website and check every internal and external link – and optionally images, scripts and stylesheets. You get one row per broken link with the status code, the error type (DNS, timeout, SSL, 4xx, 5xx …), the redirect target and every page that contains the link, with its anchor text – so you know exactly where to fix it. Export as CSV/Excel/JSON or send the results to Google Sheets, Slack, Make, Zapier, n8n or a webhook.

What does it do?

  • Crawls your site from one or more start URLs: internal pages only (same domain incl. subdomains, or same hostname), with maximum pages, maximum depth, include / exclude patterns and an option to respect robots.txt.
  • Checks every link it finds – internal and external, plus images, scripts, stylesheets and icons if you want. Internal pages that were crawled anyway are not requested twice.
  • Polite and robust link checks: HEAD request first, GET as fallback for servers that refuse HEAD, redirects followed one by one (up to 10), one retry for timeouts, connection errors, 5xx and 429 (honouring Retry-After), and a limit of parallel requests per external host.
  • Clear results: one row per unique broken link with statusCode, errorType, redirectTarget, finalStatusCode, sourceCount and a sources list (page URL, anchor text, tag, nofollow). Links that bot protection refuses (401, 403, 429, LinkedIn's 999) are labelled blocked instead of broken, so you can check them manually rather than chase false alarms.
  • Output modes: broken links only (default), broken links plus redirects (great for cleaning up internal redirects after a migration), or every link with its status (full link inventory).
  • Run summary in RUN-SUMMARY: pages crawled, unique links, internal/external counts, counts per status and error type.

Who is it for?

  • Website owners and SEO agencies running regular site audits.
  • Developers and content teams checking a site before and after a relaunch or migration.
  • Agencies reporting broken links to clients – the source page and anchor text make every finding actionable.

Input

FieldExample
Start URLshttps://example.com
Maximum pages to crawl500
Maximum link depth20 (0 = start URLs only)
Which pages count as internalSame domain incl. subdomains / Same hostname
Check external linkson
Check images, scripts and stylesheetsoff
OutputBroken links only / Broken links and redirects / All links
Report links blocked for botson
Respect robots.txton
Crawl only pages matching/blog/*
Do not crawl pages matching*?replytocom=*, /tag/*
Ignore links matchinghttps://www.linkedin.com/*
Parallel requests / per external host10 / 3
Request timeout (seconds)15

Pattern syntax: * matches any characters. Patterns starting with / are matched against the path, other patterns against the full URL; regular expressions go between slashes, e.g. /(tag|author)/.

Output example (shortened)

{
"url": "https://example.com/old-pricing",
"linkStatus": "broken",
"statusCode": 301,
"errorType": "4xx",
"redirectTarget": "https://example.com/pricing-2024",
"finalStatusCode": 404,
"redirectCount": 1,
"isInternal": true,
"resourceType": "link",
"sourceCount": 2,
"firstSourcePage": "https://example.com/",
"firstAnchorText": "Pricing",
"sources": [
{ "pageUrl": "https://example.com/", "anchorText": "Pricing", "tag": "a", "nofollow": false },
{ "pageUrl": "https://example.com/blog/launch", "anchorText": "see our prices", "tag": "a", "nofollow": false }
],
"checkedWith": "HEAD",
"responseTimeMs": 412
}
  • linkStatus: broken, blocked, redirect, ok or not-checked (e.g. disallowed by robots.txt; only in the "all links" mode).
  • errorType: 4xx, 5xx, dns, timeout, ssl, connection, redirect-loop, too-many-redirects, invalid-url (malformed href) or blocked.
  • statusCode is the first response, finalStatusCode the response at the end of the redirect chain.
  • Up to 100 source pages are listed per link; sourceCount is the full number.
  • If no broken link is found, the dataset contains a single row with linkStatus: "no-broken-links-found" and a short message, so scheduled runs and integrations always get a result.

Pricing and speed

See the Pricing tab. You pay per crawled page – all links on that page (internal, external and resources) are checked at no extra cost, and the result rows are free. Maximum pages to crawl therefore also caps your cost; when your maximum cost per run is reached, the crawl stops and the links found so far are still checked and reported.

Speed in our tests: the prefilled example (3 pages, 421 unique links) takes about 35 seconds; 30 pages of a small shop demo site with 453 unique links take about 10 seconds. Run time depends mostly on the number of unique external links per host, because each external host gets at most 3 parallel requests by default: 100 pages of a documentation site with 3,355 unique links (2,139 external, mostly GitHub source links) took about 14 minutes. Raise "Parallel requests per external host" or exclude such links with "Ignore links matching" if you want it faster.

Robots.txt, permissions and privacy

  • Only check websites you own or are allowed to crawl. The crawler identifies itself with the User-Agent broken-link-checker/0.1 (Apify Actor) and respects robots.txt by default (pages disallowed for it are not crawled). External links are checked with a single request each, like a visitor clicking the link; robots.txt of external sites is not consulted for these single checks.
  • Keep the number of parallel requests low for small servers.
  • No personal data is extracted: the output contains URLs, status codes and the anchor texts of links on the crawled pages.

Limits

  • Pages are fetched without a browser: links that only appear after JavaScript runs (single-page apps) are not found. Links in PDFs or other documents are not followed.
  • Some sites answer automated requests with 403/429/999 or block cloud IP addresses – such links are reported as blocked. You can use a proxy in the input for your own site.
  • Only internal HTML pages are crawled; files (PDF, images, ZIP …) are status-checked but not parsed.
  • At most 100 source pages are listed per link (the count is complete).

Questions or feature requests? Please open an issue in the Issues tab.