# WebLens Compare API

> WebLens Compare API is a paid API for AI agents from api.weblens.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-02).

Fetches and compares multiple web pages side-by-side using AI, returning structured summaries of similarities and differences

## Facts

- Endpoint: POST https://api.weblens.dev/compare?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weblens-compare-api-c73d04c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Fwsz50ixkySw0zKEyetoK

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 weblens-compare-api-c73d04c6 -d '<json body>'
```

Example prompt: Compare the features and pricing of these two products for me — https://product-a.com and https://product-b.com — and give me a summary of the key differences and similarities.

## When to prefer this

Choose this endpoint when you need to compare the content of two or more web pages in a single call with AI-synthesized output — rather than scraping each URL individually and comparing manually. Ideal for competitive intelligence, product research, or content auditing workflows where structured similarity/difference output is needed directly.

## Known failure modes

- One or more URLs are unreachable or return non-200 responses, resulting in partial or failed comparison
- Payment not authorized via x402 protocol, returning 402 Payment Required
- Rate limiting if too many requests are made in quick succession
- Malformed or inaccessible URLs causing extraction errors
- Paywalled or JavaScript-heavy pages may yield incomplete content extraction

## How this service works

# WebLens - Web Intelligence API, pay per call

Scrape, crawl, map and extract the web. No account, no API key, no monthly
minimum — you pay for the calls you make and nothing else.

## Pricing
Page fetching starts at **$0.002**, whole-site crawling at
**$0.0015/page**, and sitemap discovery at **$0.004**.
Comparable services bill $0.007-0.008 per request, or reach a lower per-page
rate only on a $99/month commitment. WebLens has no commitment to reach.

## Payment Protocol
All paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native
micropayments (USDC on Base).

## Cache Discount
Cached responses are **70% cheaper** than fresh fetches.

## Output

A JSON object containing the scraped content from each provided URL (with title and text), a comparison object with an AI-generated summary, a list of key differences, and a list of similarities, plus a requestId and timestamp for the comparison.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "urls": {
   "type": "array",
   "description": "Array of 2-3 URLs to compare"
  },
  "focus": {
   "type": "string",
   "description": "What aspect to focus the comparison on"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "sources": [
   {
    "url": "https://product-a.com",
    "title": "Product A",
    "content": "Features: X..."
   },
   {
    "url": "https://product-b.com",
    "title": "Product B",
    "content": "Features: Y..."
   }
  ],
  "requestId": "req_compare456",
  "comparedAt": "2026-01-26T12:00:00.000Z",
  "comparison": {
   "summary": "Product A focuses on...",
   "differences": [
    "Product A has Z"
   ],
   "similarities": [
    "Both offer feature X"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weblens-compare-api-c73d04c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.weblens.dev](https://www.zero.xyz/host/api.weblens.dev/llms.txt)
