# URL Content Diff Comparator

> URL Content Diff Comparator is a paid API for AI agents from x402-zadenworks.zaden-gaming.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Compares the text content of two URLs and reports paragraphs unique to each side, word count delta, and whether the pages are identical.

## Facts

- Endpoint: POST https://x402-zadenworks.zaden-gaming.workers.dev/compare
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-content-diff-comparator-1b3993cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EtVfAhH4j0y3PJS7gi0Ui

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 url-content-diff-comparator-1b3993cd -d '<json body>'
```

Example prompt: Compare the content of https://example.com/page-v1 and https://example.com/page-v2 — show me which paragraphs are unique to each side, the word count difference, and whether they're identical.

## When to prefer this

Choose this endpoint when you need a structured, paragraph-level textual diff between two live web pages — especially when you care about which specific passages are unique to each side and want a word count delta. Prefer it over manual scraping + diffing when you need a single API call that handles fetching and comparison atomically. It's well-suited for editorial audits, syndication checks, and A/B content comparisons.

## Known failure modes

- One or both URLs are unreachable or return non-200 status — error returned with which URL failed
- Pages are behind authentication/paywalls — content may be incomplete or empty
- JavaScript-heavy pages may not render fully if JS execution is limited
- Very large pages may time out or be truncated
- URLs pointing to non-text content (images, PDFs, binaries) will yield no meaningful diff

## How this service works

Fourteen pay-per-call web tools for AI agents, billed in USDC on Base with no account or API key. START WITH /audit -- one call returns a complete page health check (SEO + structured data + accessibility, optionally plus links and sitemap) with a single score and one worst-first findings list. The parts are also sold individually. SITE AUDIT: /seo (on-page SEO and meta tags), /links (broken links), /sitemap (robots.txt and XML sitemap crawlability), /structured (JSON-LD and social preview tags), /a11y (WCAG accessibility) -- each scored 0-100 with a prioritised issue list. READING: /read (clean markdown), /snap (screenshot, PDF or rendered HTML), /tables (every HTML table as structured JSON), /verify (does a claim actually appear on this page). MONITORING: /watch (has this page changed), /compare (what differs between two pages). Plus /rank (best x402 service for a task) and /batch (several operations behind one payment).

## Output

Returns a structured diff with: a boolean indicating whether the two pages are identical, a word count delta (numeric difference), and arrays of paragraphs that appear exclusively in URL A versus exclusively in URL B, allowing the caller to understand exactly how the two pages diverge textually.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "urlA",
      "urlB"
     ],
     "properties": {
      "urlA": {
       "type": "string",
       "description": "First public http/https URL"
      },
      "urlB": {
       "type": "string",
       "description": "Second public http/https URL"
      },
      "waitMs": {
       "type": "integer",
       "maximum": 5000,
       "minimum": 0
      },
      "selector": {
       "type": "string",
       "description": "Optional CSS selector applied to both pages before comparing"
      },
      "maxDiffItems": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "onlyInA": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "onlyInB": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "identical": {
       "type": "boolean"
      },
      "wordCountDelta": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "urlA": "https://example.com",
  "urlB": "https://example.org",
  "onlyInA": [],
  "onlyInB": [],
  "identical": true,
  "wordCountA": 20,
  "wordCountB": 20,
  "wordCountDelta": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-content-diff-comparator-1b3993cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zadenworks.zaden-gaming.workers.dev](https://www.zero.xyz/host/x402-zadenworks.zaden-gaming.workers.dev/llms.txt)
