# WebLens Screenshot API

> WebLens Screenshot API 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).

Captures a full-page screenshot of any URL and returns it as a base64-encoded PNG image

## Facts

- Endpoint: POST https://api.weblens.dev/screenshot?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-screenshot-api-b7499d16
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TlIWQU8sAaKVcLySx_NPv

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-screenshot-api-b7499d16 -d '<json body>'
```

Example prompt: Can you take a screenshot of https://stripe.com and show me what it looks like right now?

## When to prefer this

Choose this endpoint when you need a visual, pixel-accurate rendering of a webpage rather than raw HTML or text content. Ideal for visual regression testing, competitive monitoring, social preview checks, or any use case where the rendered appearance of a page matters. The 70% cache discount makes it cost-effective for repeated captures of the same URL.

## Known failure modes

- Invalid or unreachable URL returns an error response
- Timeout if the target page takes too long to load
- Private or authentication-gated pages may render login screens instead of content
- Malformed URL input causes request rejection
- Rate limiting or payment failure via x402 protocol blocks the request

## 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 original URL, a base64-encoded PNG image of the rendered webpage, a unique requestId for tracking, and a capturedAt ISO 8601 timestamp indicating when the screenshot was taken. The image can be decoded and displayed or stored as a PNG file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "URL of the webpage to screenshot"
  },
  "timeout": {
   "type": "number",
   "description": "Timeout in ms (default: 10000)"
  },
  "fullPage": {
   "type": "boolean",
   "description": "Capture entire scrollable page (default: false)"
  },
  "selector": {
   "type": "string",
   "description": "CSS selector to capture specific element"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "image": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",
  "requestId": "req_screen123",
  "capturedAt": "2026-01-26T12:00:00.000Z"
 }
}
```

## More

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