# Broken Link Checker

> Broken Link Checker is a paid API for AI agents from agent-data.centorprat.workers.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-29).

Crawls given URLs, extracts all links from each page, tests each link via HTTP, and reports broken links (4xx/5xx/unreachable) with anchor text, redirects, and internal vs external link counts.

## Facts

- Endpoint: POST https://agent-data.centorprat.workers.dev/tools/broken-link-checker?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/broken-link-checker-b01e97f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PiuLNR-YLAleLZ9sU_ZA_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability broken-link-checker-b01e97f8 -d '<json body>'
```

Example prompt: Check https://myblog.com/about and https://myblog.com/resources for broken links — include external links too and only show me pages that actually have problems.

## When to prefer this

Choose this endpoint when you need automated, per-page broken link detection with HTTP status reporting, anchor text context, and the ability to distinguish internal from external links — especially when you want to schedule recurring checks or receive webhook alerts for newly broken links. It handles up to 3 URLs per call and is keyless, making it easy to integrate without credential management.

## Known failure modes

- URL is unreachable or returns an error before any links can be extracted
- Page has no extractable links (empty or JavaScript-rendered only)
- maxLinks cap reached before all links are tested, producing partial results
- External link checks blocked by bot-protection on target domains
- Rate limiting or timeout on very large pages with many links

## How this service works

Pay-per-call data and tools for AI agents, $0.002-0.01 per call in USDC via x402 (Base, Polygon or Solana), no account or API key; MAX tiers ($0.05-0.25) run deeper jobs. Agent toolkit: web search, search + read top pages, any page as clean markdown with a prompt-injection check, which-x402-API-to-call recommender, seller check. Data: Google Maps places with contacts, YouTube video data and transcripts, job listings (Indeed, LinkedIn, 13 boards), Google Ads Transparency, TikTok comments, Pinterest, Airbnb, Redfin, AliExpress, app stores, live sports, website and SEO checks, Shopify store tech stacks, and onchain token / address risk checks.

## Output

Returns one report per submitted URL containing: a list of broken links (URL, HTTP status, anchor text), any redirects detected, and counts of internal vs external links tested. If onlyProblems is true, pages with no issues are omitted.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "urls": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 3,
   "description": "Pages whose links to test, e.g. [\"https://your-site.com\"]. One report per URL."
  },
  "maxLinks": {
   "type": "integer",
   "description": "Cap how many links to test."
  },
  "onlyProblems": {
   "type": "boolean",
   "description": "On: return only pages that have broken links."
  },
  "checkExternal": {
   "type": "boolean",
   "description": "Test links to other domains too (off = internal links only)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "url": "https://www.python.org/",
    "note": "Read-only HEAD/GET of each link. Some servers rate-limit or block bots, which can look like a broken link - spot-check before acting.",
    "signal": "all-links-ok",
    "fetched": true,
    "finalUrl": "https://www.python.org/",
    "checkedAt": "2026-10-24T13:48:55+00:00",
    "redirects": [
     {
      "to": "https://www.python.org/psf-landing/",
      "url": "https://www.python.org/psf/",
      "status": 200
     },
     {
      "to": "https://docs.python.org/3/",
      "url": "https://docs.python.org",
      "status": 200
     },
     {
      "to": "https://www.python.org/psf/donations/",
      "url": "https://donate.python.org/",
      "status": 200
     },
     {
      "to": "https://www.linkedin.com/company/thepsf",
      "url": "https://www.linkedin.com/company/python-software-foundation/",
      "status": 200
     },
     {
      "to": "https://www.python.org/download/alternatives/",
      "url": "https://www.python.org/download/alternatives",
      "status": 200
     },
     {
      "to": "https://www.python.org/doc/av/",
      "url": "https://www.python.org/doc/av",
      "status": 200
     },
     {
      "to": "https://policies.python.org/python.org/code-of-conduct/",
      "url": "https://www.python.org/psf/conduct/",
      "status": 200
     },
     {
      "to": "https://www.python.org/community/awards/",
      "url": "https://www.python.org/community/awards",
      "status": 200
     },
     {
      "to": "https://www.python.org/jobs/",
      "url": "https://jobs.python.org",
      "status": 200
     },
     {
      "to": "https://www.python.org/about/apps/",
      "url": "https://www.python.org/about/apps",
      "status": 200
     },
     {
      "to": "https://bottlepy.org/docs/dev/",
      "url": "https://bottlepy.org",
      "status": 200
     },
     {
      "to": "https://www.tornadoweb.org/en/stable/",
      "url": "https://www.tornadoweb.org/",
      "status": 200
     },
     {
      "to": "https://flask.palletsprojects.com/en/stable/",
      "url": "https://flask.palletsprojects.com/",
      "status": 200
     }
    ],
    "brokenCount": 0,
    "brokenLinks": [],
    "linksChecked": 100,
    "externalLinks": 43,
    "internalLinks": 57,
    "redirectCount": 13
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/broken-link-checker-b01e97f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data.centorprat.workers.dev](https://www.zero.xyz/host/agent-data.centorprat.workers.dev/llms.txt)
