# Pre-Deploy Link Audit API (hustler-extract /deploycheck)

> Pre-Deploy Link Audit API (hustler-extract /deploycheck) is a paid API for AI agents from x402-extract-service.onrender.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-19).

Scans a list of staging or production URLs for broken links before deployment, returning pass/fail status with details on each broken link found.

## Facts

- Endpoint: POST https://x402-extract-service.onrender.com/deploycheck
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pre-deploy-link-audit-api-hustler-extract-deploycheck-6b6e0f75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yxtuuE3JOCTdt3tqD_q2u

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 pre-deploy-link-audit-api-hustler-extract-deploycheck-6b6e0f75 -d '<json body>'
```

Example prompt: Before I push to production, scan https://staging.example.com/ and https://staging.example.com/about for broken links — include images and scripts, check up to 200 links per page, and fail the build if anything is broken.

## When to prefer this

Use this endpoint when you need an automated, pre-deployment broken-link gate that integrates with CI/CD pipelines and supports pay-per-call USDC micropayments via x402 on Base. Prefer it over general crawlers when you want a fast, targeted audit of specific staging or production pages (up to 25 at a time) with pass/fail semantics suitable for blocking deployments.

## Known failure modes

- More than 25 URLs submitted — request rejected
- Target site is unreachable or times out — failedPages populated
- Invalid URL format in input array — validation error
- maxLinksPerPage exceeds cap of 500 — capped or rejected
- Payment in USDC via x402 fails — request not processed

## How this service works

URL-to-clean-markdown extraction API, on-demand broken-link scan API, pre-deploy link audit API, DNS health audit API, llms.txt / AI-crawler audit API, spec-linted llms.txt audit API, email-deliverability (SPF/DKIM/DMARC) audit API, PDF-to-markdown conversion API, technology-stack fingerprinting API, security-headers audit API, and PDF metadata-intel API for coding agents. Paid per call in USDC via x402 on Base.

## Output

Returns a JSON object with a boolean 'ok' field, a 'pass' field indicating build health, an array of broken links (each with URL, kind, source page, HTTP error, status code, and link text), a human-readable summary, timestamp, duration in milliseconds, counts of pages and links checked, and the USDC amount paid.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "urls": {
   "type": "array",
   "items": {
    "type": "string",
    "format": "uri"
   },
   "description": "Page URLs to audit (staging or production). Max 25 per run."
  },
  "failOnBroken": {
   "type": "boolean",
   "description": "Return pass:false when anything is broken (default true)."
  },
  "includeAssets": {
   "type": "boolean",
   "description": "Also check images/scripts (default true)."
  },
  "maxLinksPerPage": {
   "type": "number",
   "description": "Max links checked per page (default 200, cap 500)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "pass": false,
  "broken": [
   {
    "url": "https://staging.example.com/old-page",
    "kind": "a",
    "page": "https://staging.example.com/",
    "error": "HTTP 404",
    "status": 404,
    "linkText": "Old page"
   }
  ],
  "summary": "FAIL: 1 broken link(s) across 1 page(s). Fix before deploying.",
  "checkedAt": "2026-09-10T00:00:00.000Z",
  "durationMs": 4210,
  "failedPages": [],
  "linksChecked": 84,
  "pagesChecked": 2,
  "pricePaidAtomic": "20000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pre-deploy-link-audit-api-hustler-extract-deploycheck-6b6e0f75/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-extract-service.onrender.com](https://www.zero.xyz/host/x402-extract-service.onrender.com/llms.txt)
