Broken Link Checker: Crawl a Website for 404s & Dead Links
Pricing
$1.00 / 1,000 link checkeds
Broken Link Checker: Crawl a Website for 404s & Dead Links
Crawl your whole website and check every internal and external link. Get each broken link with the page it is on, anchor text, status code and redirect chain. Bot blocks (403, 429, Cloudflare) are labeled, not called broken. Pay per link checked. Works from AI agents via MCP.
Pricing
$1.00 / 1,000 link checkeds
Rating
0.0
(0)
Developer
Adam Schepis
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Features
Share
Crawl your whole website and check every link on it. Give it your home page URL and it follows internal links page by page, collects every <a href>, and checks each unique link once: internal pages and outbound links to other sites. You get one row per broken link per page, with the page it is on, the anchor text, the HTTP status code, the error type and the full redirect chain, so you know exactly what to fix and where.
Links that bot protection refuses (403, 429, LinkedIn's 999, Cloudflare challenges) are labeled blocked, never broken, so your report is not padded with links that work fine in a browser.
Works from AI agents too: call it as a tool through Apify's MCP server when an agent is asked to "find and fix the dead links in our docs".
What you get
- Every broken link, with where it is: source page, target URL, anchor text, status code, and whether it is internal or external. A link that is broken on 40 pages gives 40 rows, so each page can be fixed.
- Clear error types:
http-4xx,http-5xx,dns-error,timeout,tls-error,connection-error,redirect-loop,too-many-redirectsand more, not just "failed". - Redirect chains: every hop with its status code, plus the final URL, so a link that 301s to a 404 is caught and you can see where it went wrong.
- No false alarms from bot blocks: 401, 403, 429, 999 and Cloudflare/AWS WAF challenge pages are reported as
blockedwith a reason, separate from real broken links. - Optional extras: check
<img>sources for broken images, check#anchorlinks against the ids on your own pages, or output every working link too for a full inventory. - A run summary in the key-value store (
SUMMARY): pages crawled, links found and checked, and counts of broken, blocked, working and skipped links. - Pay per unique link checked. Pages crawled, skipped links and links over your limits are free.
How it works
- Crawls your site from the start URLs, staying on the same site (
example.comandwww.example.comcount as one; turn on Include subdomains to addblog.example.comand the like). robots.txt is honored for crawling. - Collects every link on each page.
mailto:,tel:,javascript:and same-page#links are skipped and never charged. - Checks each unique URL once. Pages the crawler already opened are not requested again. Other links get a
HEADrequest, and anyHEADfailure is confirmed with aGETbefore the link counts as broken, because many servers answerHEADwith 404, 405 or 501 for pages that work. - External sites are only checked, never crawled, with at most 2 requests at a time per site.
Input
| Field | Type | Default | Description |
|---|---|---|---|
startUrls | array of URLs | required | Where to start, usually your home page. |
maxPages | integer | 100 | Pages of your site to open and read links from. |
maxLinks | integer | 1000 | Unique links to check (and charge) at most. |
checkExternalLinks | boolean | true | Also check links to other websites. |
includeSubdomains | boolean | false | Treat subdomains of the start site as internal and crawl them. |
includeImages | boolean | false | Also check <img> sources. |
checkAnchors | boolean | false | Report /page#section links whose page has no element with that id. |
reportWorkingLinks | boolean | false | Output a row for every link, not only broken and blocked ones. |
maxCostUsd | number | none | Spending cap for this run; links beyond it are not checked or charged. |
Example input:
{"startUrls": [{ "url": "https://the-internet.herokuapp.com/" }],"maxPages": 25,"maxLinks": 300}
Output example
One row per page and broken (or blocked) link. These are real rows from a run of the input above:
{"sourceUrl": "https://the-internet.herokuapp.com/disappearing_elements","targetUrl": "https://the-internet.herokuapp.com/portfolio/","anchorText": "Portfolio","element": "a","linkType": "internal","status": "broken","statusCode": 404,"errorType": "http-4xx","errorMessage": "HTTP 404.","redirectChain": [],"finalUrl": "https://the-internet.herokuapp.com/portfolio/","checkedWith": "GET","checkedAt": "2026-11-20T15:06:10.106Z"}
A link behind a login is reported, but as blocked, not broken:
{"sourceUrl": "https://the-internet.herokuapp.com/","targetUrl": "https://the-internet.herokuapp.com/basic_auth","anchorText": "Basic Auth","linkType": "internal","status": "blocked","statusCode": 401,"errorType": "auth-required","errorMessage": "HTTP 401: the page needs a login."}
Download the rows as JSON, CSV or Excel, or read them through the Apify API. The run summary is in the default key-value store under SUMMARY.
Status and error types
status | errorType | Meaning |
|---|---|---|
broken | http-4xx | The server answered 400-499 (other than the blocked codes below), for example 404 Not Found or 410 Gone. |
broken | http-5xx | The server answered with an error, 500-599. |
broken | dns-error | The domain does not resolve: a typo, or an expired domain. |
broken | timeout | No complete answer within 20 seconds. |
broken | tls-error | The HTTPS certificate is expired, self-signed, or for another domain. |
broken | connection-error | The server refused or dropped the connection. |
broken | redirect-loop / too-many-redirects | Redirects go in a circle, or there are more than 10. |
broken | invalid-redirect | A redirect with no Location header, or to a URL that cannot be followed. |
broken | missing-anchor | With checkAnchors: the page loads but the #section is not on it. |
blocked | bot-blocked | 403 or LinkedIn's 999: the site refuses automated requests. |
blocked | rate-limited | 429: the site is limiting requests. |
blocked | auth-required | 401 or 407: the page needs a login. |
blocked | challenge-page | A Cloudflare, AWS WAF or similar bot check. |
skipped | private-address | The link points at a private or internal network address (localhost, 192.168.x.x and so on), which is never fetched. Not charged. |
A blocked link usually works for a human visitor. Open it in a browser before deciding it is broken.
Pricing
This Actor uses pay-per-event pricing. You pay for one event, link-checked, once per unique link that was checked. The exact price is shown on the Actor's Store page before you run it.
| Event | When it's charged |
|---|---|
link-checked | Once per unique URL checked, however many pages link to it, before its rows are saved. |
- Crawling pages is free. You pay for links checked, not pages visited.
- Skipped links are free:
mailto:,tel:,javascript:, same-page#links, private network addresses, external links whencheckExternalLinksis off, and anything pastmaxLinksormaxCostUsd. - Your spending limit is respected. Set
maxCostUsd,maxLinks, or the run's maximum cost, and the Actor stops checking before it goes over.
Good to know
- Static HTML only. Links are read from the HTML the server sends. Links that only appear after JavaScript runs (some single-page apps) are not seen. The same goes for
#anchorsadded by JavaScript, which is whycheckAnchorsis off by default. - robots.txt is honored for crawling. A page your robots.txt disallows is still checked when another page links to it (one request, like a visitor clicking), but it is not crawled for more links. If robots.txt disallows the start URL itself, nothing is crawled.
- Only
<a href>links by default, plus<area href>. Turn onincludeImagesfor<img src>. Stylesheets and scripts are not checked. - Same page, different query string = different link.
/page?a=1and/page?a=2are checked separately. Trailing slashes are kept as written, since/docsand/docs/can be different pages. - Private network addresses are never fetched, including links that redirect to one, so the Actor cannot be pointed at internal services.
- Requests use a normal browser User-Agent. Some sites still block automated checks; those links show up as
blocked, notbroken.
Why this Actor
- Bot blocks are labeled separately, so the broken-link list is one you can act on.
- Each broken link comes with the page it is on and its anchor text, so fixing it is a find-and-replace, not a hunt.
HEADfailures are confirmed withGETbefore anything is reported.- Each unique link is checked and charged once, however many pages it appears on.
Notes
- Built with Crawlee and the Apify SDK for JavaScript. HTML parsing by cheerio.
- The example input uses The Internet, a public practice site for test automation that has broken links on purpose.