Broken link checker
broken_linksCrawl a site from start URLs and check every link, image and script for errors. Returns only broken links and problems by default, with HTTP status and the pages where each was found.
Instructions
Crawl a website from start URLs and check every link, image and script it finds. Each item: link URL, HTTP status, result (ok / broken / blocked, where blocked means the site refused automated checks), error, final URL after redirects, response time, internal or external, anchor text and the pages it was found on. By default only problems are returned. Cost: $1.00 per 1,000 result rows on the user's Apify account (with only_broken, working links are not charged). Latency: usually 20-120 s depending on site size.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"start_urls": "<start_urls>"
},
"name": "broken_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | How many links deep to follow. 0 = start pages only. | |
| max_links | No | Upper limit of distinct links checked. | |
| max_pages | No | How many pages of the site to open and read for links. | |
| start_urls | Yes | Pages to start crawling from. | |
| only_broken | No | Return only broken links and problems, not working links. | |
| check_external | No | Also check links to other websites (checked, not crawled). | |
| check_images_and_scripts | No | Also check images, scripts, stylesheets and icons. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||