# Broken Link Checker

> Broken Link Checker is a paid API for AI agents from apexfaucet.xyz, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-12).

Checks up to 12 URLs in a single call, returning HTTP status, final URL, redirect chain, and latency for each, plus aggregate counts of ok/redirected/broken/refused links.

## Facts

- Endpoint: GET https://apexfaucet.xyz/api/x402/link-check?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/broken-link-checker-34e3c31e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RW5xQ284yeKgrP3Wlv9V7

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-34e3c31e
```

Example prompt: Can you check whether these links are still working and tell me which ones are broken or redirecting: https://example.com/page1, https://example.com/page2, https://old-site.com/post?

## When to prefer this

Use this endpoint when you need to batch-check 1–12 URLs for liveness, redirect chains, and HTTP status in a single call. It is well-suited for pre-publication link audits, affiliate/partner link monitoring, and SEO health checks. It is preferable to a full site crawler when you have a specific known list of URLs rather than needing to discover links by crawling a page.

## Known failure modes

- More than 12 URLs passed returns HTTP 400
- Malformed or private-IP URLs are returned as 'refused' entries without failing the batch
- Sites blocking bots may return 401, 403, or 429 — not a service error but a site-side restriction
- Commas inside URLs must be percent-encoded as %2C or they will be misinterpreted as delimiters
- Slow sites may time out at 9 seconds per URL
- No urls query parameter returns a validation error

## How this service works

APEX. Check up to 12 links in one call. Pass ?urls= comma separated (a comma inside a URL must be sent as %2C) and get, per URL, the final HTTP status, final URL, redirect count and milliseconds, plus counts of ok, redirected, broken and refused. One GET per URL and redirect hop, 4 URLs at a time, 9 seconds per URL; sites that block bots may answer 401, 403 or 429. A URL that is malformed, private or our own site gets its own refused entry and does not fail the others.

## Output

A JSON object per URL containing: final HTTP status code, final resolved URL (after any redirects), number of redirect hops, response time in milliseconds, and an overall boolean ok flag. The top-level response also includes aggregate counts: how many URLs were ok, redirected, broken, or refused (malformed, private, or blocked).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "urls"
     ],
     "properties": {
      "urls": {
       "type": "string",
       "pattern": "^https?://",
       "description": "Comma separated http(s) URLs, 1 to 12."
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "properties": {
   "ok": {
    "type": "boolean"
   },
   "data": {
    "type": "object"
   },
   "paid": {
    "type": "number"
   }
  }
 },
 "example": {
  "ok": true,
  "data": {
   "ok": true,
   "note": "ms is the wall time for the URL including redirects; statuses lists the status of each hop. One check from our server at…",
   "total": 3,
   "counts": {
    "ok": 3,
    "broken": 0,
    "refused": 0,
    "redirected": 0
   },
   "results": [
    {
     "ms": 81,
     "url": "https://example.com/",
     "status": 200,
     "category": "ok",
     "finalUrl": "https://example.com/",
     "statuses": [
      200
     ],
     "redirects": 0
    },
    {
     "ms": 64,
     "url": "https://en.wikipedia.org/wiki/HTTP",
     "status": 200,
     "category": "ok",
     "finalUrl": "https://en.wikipedia.org/wiki/HTTP",
     "statuses": [
      200
     ],
     "redirects": 0
    }
   ]
  },
  "paid": 0.003
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/broken-link-checker-34e3c31e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apexfaucet.xyz](https://www.zero.xyz/host/apexfaucet.xyz/llms.txt)
