爬取任意网站或 URL 列表以检测坏链及确切失败模式。返回 HTTP 状态码、错误类别(4xx、5xx、DNS、超时、SSL、重定向环)、响应时间、来源页面、链接锚文本和完整重定向链。可配置爬取深度、链接类型过滤(内部/外部/资源)和并发。为批量而生:输入 10 万 URL,或用起始域名种子让其发现一切。适用于 SEO 维护、迁移 QA、内容审计和链接卫生监控。
# 通过 Apify API 启动运行 curl -X POST "https://api.apify.com/v2/acts/santamaria-automations~broken-link-checker/runs?token=YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "startUrls": [ "https://example.com", "https://docs.example.com" ], "maxDepth": 3, "followExternal": true, "includeAssets": false, "maxLinksPerPage": 200 }' # 或通过 MCP 与 AI 代理配合使用: # https://mcp.apify.com?tools=santamaria-automations/broken-link-checker
| 字段 | 类型 | 示例 |
|---|---|---|
| url | string | https://example.com/old-page |
| source_page | string | https://example.com/blog/2024-review |
| anchor_text | string | 我们的 2024 路线图 |
| status_code | integer | 404 |
| error_category | string | client_error |
| is_broken | boolean | true |
| response_time_ms | integer | 142 |
| link_type | string | internal |
| redirect_count | integer | 0 |
| checked_at | string | 2026-06-13T10:15:42Z |