# WebLens Batch Fetch API

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

Fetches and extracts content from multiple URLs in a single batch request using AI-powered web scraping

## Facts

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

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-batch-fetch-api-bed2e7a1 -d '<json body>'
```

Example prompt: Can you fetch and extract the content from these three URLs all at once: https://example.com/article1, https://example.com/article2, and https://example.com/article3? I need the full page text from each.

## When to prefer this

Choose this endpoint when you need to scrape or extract content from multiple URLs in a single API call rather than making individual fetch requests. It is more efficient than calling a single-URL endpoint repeatedly, and the $0.006 flat rate per batch call (with 70% discount for cached responses) makes it cost-effective for bulk research, competitive analysis, or content aggregation workflows.

## Known failure modes

- Individual URLs in the batch may fail (status: failed) while others succeed — partial success is possible
- Payment failure via x402 protocol if insufficient USDC balance
- Rate limiting or timeout on very large batches
- URLs behind authentication walls or bot-detection may return incomplete or blocked content
- Invalid or malformed URLs in the batch will result in failed status for those entries

## 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, page title, content text, and status (success or failure). Also includes a summary with total/successful/failed counts, a requestId for tracking, and the totalPrice charged for the batch.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tier": {
   "type": "string",
   "description": "Fetch tier: basic or pro (default: basic)"
  },
  "urls": {
   "type": "array",
   "description": "Array of URLs to fetch (2-20)"
  },
  "timeout": {
   "type": "number",
   "description": "Per-URL timeout in ms (default: 10000)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "results": [
   {
    "url": "https://example.com/1",
    "title": "Page 1",
    "status": "success",
    "content": "Content 1..."
   },
   {
    "url": "https://example.com/2",
    "title": "Page 2",
    "status": "success",
    "content": "Content 2..."
   }
  ],
  "summary": {
   "total": 2,
   "failed": 0,
   "successful": 2
  },
  "requestId": "req_batch123",
  "totalPrice": "$0.006"
 }
}
```

## More

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