# WebLens Content Fetch API

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

Fetches and extracts web page content from one or more URLs, returning clean text and metadata via AI-powered scraping

## Facts

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

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-content-fetch-api-9632f572 -d '<json body>'
```

Example prompt: Can you fetch the full text content from https://techcrunch.com/2024/01/15/openai-raises-funding/ and return it as clean readable text?

## When to prefer this

Choose this endpoint when you need to fetch and read raw web page content from arbitrary URLs without setting up a browser environment. It is especially useful for AI agents that need to ingest, summarize, or analyze content from specific web pages, and offers a cache discount (70% cheaper) when the same URL has been recently fetched by another user.

## Known failure modes

- URL is unreachable or returns HTTP error — status field will reflect failure
- Page requires JavaScript rendering and content is not available in static HTML
- Website blocks scraping via robots.txt or anti-bot measures — returns failed status
- URL is malformed or missing — request validation error
- Rate limiting or server timeout on the target domain

## 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

Returns a JSON object with a results array where each entry contains the URL, title, full extracted content as markdown, success status, and a truncated flag. Also includes a summary with total/successful/failed counts, a fetchedAt timestamp, and a unique requestId.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "urls": {
   "type": "array",
   "description": "1-20 URLs to fetch"
  },
  "timeout": {
   "type": "number",
   "description": "Per-URL timeout in ms"
  },
  "maxChars": {
   "type": "number",
   "description": "Per-page content character cap (default 20000)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "results": [
   {
    "url": "https://example.com/article",
    "title": "Example Article",
    "status": "success",
    "content": "# Article...",
    "truncated": false
   }
  ],
  "summary": {
   "total": 1,
   "failed": 0,
   "successful": 1
  },
  "fetchedAt": "2026-07-25T12:00:00.000Z",
  "requestId": "req_contents123"
 }
}
```

## More

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