Broken Link Checker — find dead links on your website
Crawl your website and find every broken internal and external link (404, 500, DNS errors, timeouts), with the page it appears on and its anchor text. Polite crawler: robots.txt respected, delay between requests, no proxy.
Run it on Apify →Give the address of your website. The Actor crawls its pages, tests every link it finds (internal pages, external sites and optionally images) and tells you which links are broken, on which page, with which anchor text, so you can fix them in minutes.
Broken means: HTTP 4xx or 5xx, DNS failure, refused connection or timeout. Redirects are followed and reported, not counted as broken.
A polite crawler, by design
- robots.txt is always respected, for your site and for every external host it tests (RFC 9309, including
Crawl-delay). A link that robots.txt forbids is reported asblocked_by_robots, never requested. - One request at a time per host, with a configurable pause (500 ms by default, 200 ms minimum).
- Honest identity: requests carry the User-Agent
OpenRegistryLinkChecker/0.1with a link to this page. No browser imitation, no proxy rotation, no CAPTCHA tricks. If a site blocks the checker, the link is reported as it was answered. - Each link is tested once per run, even if it appears on hundreds of pages:
HEADfirst, thenGETwhen the server refusesHEADor answers with an error, to avoid false alarms. - Only the site you enter is crawled. External sites are tested link by link, never crawled.
Use it on websites you own or manage.
Typical uses
- SEO maintenance: broken links waste crawl budget and hurt user experience. Run it monthly on a schedule.
- Website migrations: check that no internal link points to an old URL after a redesign.
- Content audits: find outbound links to sites that disappeared (
linkType: "external"). - Agencies: deliver a broken link report to a client in one run, as a table or JSON.
Input example
{
"startUrls": [{ "url": "https://www.example.com/" }],
"maxPages": 500,
"maxDepth": 4,
"checkExternalLinks": true,
"checkImages": false,
"delayMs": 500
}
Output
One row per crawled page (Output tab, view Pages):
| Field | Meaning |
|---|---|
url, finalUrl, statusCode, title | the page and how it answered |
depth, foundOn | clicks from the start page, and the page where it was found |
linksFound, linksChecked | distinct links on the page, links tested |
brokenCount, brokenLinks | broken links with url, statusCode, error, anchorText, linkType (internal, external, image), redirectedTo |
redirectedLinks, blockedByRobots, linksNotChecked | links that redirect, links robots.txt forbids, links over your limit |
allLinks | every link with its status, when includeAllLinks is on |
error | why a page could not be fetched |
A flat list of all broken links (one entry per link and page, with foundOn) is also saved in the key-value store record BROKEN_LINKS, linked from the run's Output tab: handy for a spreadsheet.
Sample page row:
{
"url": "https://www.example.com/blog/", "statusCode": 200, "title": "Blog", "depth": 1,
"linksFound": 84, "linksChecked": 84, "brokenCount": 2,
"brokenLinks": [
{ "url": "https://www.example.com/old-post", "statusCode": 404, "error": null, "anchorText": "Our 2019 guide", "linkType": "internal", "redirectedTo": null },
{ "url": "https://gone.example.org/", "statusCode": null, "error": "network error (ENOTFOUND)", "anchorText": "partner", "linkType": "external", "redirectedTo": null }
]
}
Limits to know
- The crawler reads the HTML sent by the server. Links created only by JavaScript in the browser are not seen.
- Some sites answer automated requests with 403 or 429 even when the link works for people. A 429 is not counted as broken; a 403 is reported as returned, check those by hand.
- If your robots.txt cannot be reached (server error), nothing is crawled, as the standard requires. Fix robots.txt or the server first.
- Very large sites: raise
maxPagesandmaxLinksChecked; at 500 ms per request, expect about 5,000 requests per hour per host.
Pricing
Pay per page crawled: $0.001 per page ($1 per 1,000 pages). Link tests are included, whatever their number. Pages that never answered are not charged. Cap any run with maxPages or Apify's maximum charge per run.