# WebLens Resilient Fetch

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

Fetches and extracts the full content of a web page using resilient, AI-powered scraping with automatic retry and fallback providers

## Facts

- Endpoint: POST https://api.weblens.dev/fetch/resilient?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weblens-resilient-fetch-dcc006b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4EdxsrKrn5QKaEdbHCOws

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-resilient-fetch-dcc006b3 -d '<json body>'
```

Example prompt: Can you fetch and extract the full content of https://techcrunch.com/2025/01/15/openai-latest-news/ — I need the readable text, not raw HTML, and it needs to work even if the page is JavaScript-heavy or has scraping protections.

## When to prefer this

Choose the resilient tier when the target URL is known to be difficult to scrape — e.g. JavaScript-heavy single-page apps, pages with anti-bot protections, or URLs that have failed with simpler fetch methods. Prefer this over a basic fetch endpoint when reliability matters more than speed or cost, and when you need automatic fallback across multiple providers.

## Known failure modes

- URL is unreachable or returns a non-200 status — error response with details
- Page blocks all known scraping methods exhausting all fallback providers — returns error or empty content
- Invalid or malformed URL input — validation error
- Payment failure via x402 protocol — 402 response before fetch begins
- Timeout if page takes too long to render

## 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 page title, full page content in markdown format, the provider used (including whether it was proxied and how many attempts were made), the URL fetched, the fetch timestamp, and a unique request ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "URL of the webpage to fetch"
  },
  "timeout": {
   "type": "number",
   "description": "Request timeout in ms (default: 10000)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "tier": "resilient",
  "title": "Example Page",
  "content": "# Page Content...",
  "provider": {
   "id": "weblens-native",
   "name": "WebLens Native",
   "isProxied": false,
   "attemptsUsed": 1
  },
  "fetchedAt": "2026-02-16T12:00:00.000Z",
  "requestId": "req_resilient_123"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weblens-resilient-fetch-dcc006b3/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)
