Broken Link Checker: Dead Links, Missing Images, Bad Redirects
Pricing
from $4.00 / 1,000 page scanneds
Broken Link Checker: Dead Links, Missing Images, Bad Redirects
Crawl a website and check every link, image, script and stylesheet. Each broken link comes back with the page it sits on, its link text and the HTTP status. Errors from sites that block checkers, such as Facebook, are marked blocked for a hand check.
Pricing
from $4.00 / 1,000 page scanneds
Rating
0.0
(0)
Developer
Evenwork
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Give it a website. It scans the pages, checks every link, image, script, stylesheet and iframe it finds, and returns one row for each problem: the broken link, the page it sits on, the link text and the HTTP status.
Run it after a site migration, or before you send a client the list of dead links on their site.
What it checks
- Links (
<a>and image-map<area>), images, scripts, stylesheets, iframes, video and audio sources, favicons and canonical tags. - Links to pages on the same site and links to other websites. www and non-www count as the same site; a subdomain such as blog.example.com counts as another site, so its links are checked but its pages aren't scanned.
- Redirects are followed (up to 10), and the final answer decides the verdict. A redirect loop counts as broken.
Each unique link is checked once per run, however many pages it appears on. The check is a HEAD request. When a server answers HEAD with anything other than 2xx (many answer 405 or 403), the link is requested again with GET, and the GET answer counts.
Verdicts
| Verdict | Meaning |
|---|---|
broken | 404, 410, any other 4xx, 5xx, a redirect loop, a domain that doesn't resolve, a refused connection or a TLS certificate error |
blocked | The site refused to answer an automated check: 401, 403, 407, 429, 451 or 999. Facebook, Instagram, X, LinkedIn, TikTok, Etsy, Amazon and other large sites often send errors to every checker, so any error from those is blocked rather than broken (a 404 from them still counts as broken). Check these by hand. |
timeout | No answer within the timeout. Check by hand. |
ok | 2xx. Only output when "Output working links too" is on. |
skipped | Not checked: robots.txt disallows it, it is an IP address or on a private network, or the link check cap was reached. Only output when "Output working links too" is on. |
Input
{"startUrls": ["example.com", "https://www.example.co.uk/blog/"],"maxPagesPerSite": 100,"maxDepth": 5,"onlyUnderStartPath": false,"checkExternalLinks": true,"checkResources": true,"reportBlocked": true,"includeOkLinks": false,"respectRobotsTxt": true}
Only startUrls is required. A bare domain starts at its https:// homepage. If the start page redirects to another domain (example.co.uk to example.com), the checker scans the domain it lands on.
maxPagesPerSite: pages scanned per site, 1 to 10,000 (default 100). Each scanned page is one charged event.maxDepth: clicks from the start page, 0 to 20 (default 5). 0 scans the start page only.onlyUnderStartPath: start at example.com/blog/ and only /blog/ pages are scanned. Links to the rest of the site are still checked.checkExternalLinks,checkResources: turn off to skip links to other websites, or images, scripts and stylesheets.reportBlocked: turn off to hideblockedrows.includeOkLinks: output every link found, one row per page it appears on.respectRobotsTxt: on by default. Turn off to check pages your own robots.txt hides.maxLinkChecksPerSite: a safety cap on unique links checked per site (default 5,000).concurrency(default 10, never more than 5 at once to the site being scanned),timeoutSecs(default 15),userAgent.
Output
One row per problem link per page. This row is from a test run against a page we set up with a missing link:
{"site": "evenwork.co.uk","sourcePage": "https://evenwork.co.uk/rook/blc-7e41c09a2f/","linkUrl": "https://evenwork.co.uk/rook/blc-7e41c09a2f/missing-page.html","finalUrl": null,"element": "a","kind": "link","anchorText": "A page that does not exist","linkType": "internal","status": 404,"verdict": "broken","reason": "HTTP 404: page not found"}
sourcePage: the page the link was found on. For a start URL that fails, this is null andkindisstart-url.finalUrl: where the link ended up after redirects, when different fromlinkUrl.element,kind: the HTML tag and what it is (link,image,script,stylesheet,iframe,media,icon,canonical, orlink-tagfor other<link>tags such as hreflang alternates).anchorText: the link text, or the alt text for an image.status: the final HTTP status, or null when there was no HTTP answer (DNS, connection or TLS failure).
A summary for each site (pages scanned, links checked, broken, blocked and timed-out counts, any start-page error) is saved in the run's key-value store under SUMMARY.
Pricing
$0.004 for each page scanned. A page is charged only when it loads as HTML on the site being scanned. Checking links costs nothing, and neither do pages that fail to load, non-HTML files or a second address for a page already scanned (such as /folder/ and /folder/index.html). A 100-page site costs $0.40. Set a maximum charge for the run and the checker stops scanning new pages when it is reached; links already found are still checked. Apify also charges $0.00005 each time a run starts (once per GB of memory; this actor's default is under 1 GB).
Limits
- Pages are read as delivered by the server. Links that only appear after JavaScript runs aren't found.
- Links written as an IP address (public or private) are skipped, and so is any domain that resolves to a private, loopback or reserved address, or a redirect to one.
- Pages are scanned only when they are HTML. Only the first 3 MB of each page is read.
- Some servers treat a run of fast requests as an attack and start sending 403 or 429. Those links come back as
blocked. Lowerconcurrencyand run again if many links on one site come back that way. mailto:,tel:,javascript:and#fragmentlinks aren't checked. A fragment is removed before the page is checked, so a missing anchor on a working page is not reported.