# WebLens Answer API

> WebLens Answer 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-01).

Answers natural language questions by searching and synthesizing information from the web, returning an AI-generated answer with cited sources

## Facts

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

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-answer-api-99833cba -d '<json body>'
```

Example prompt: Can you look up and explain what the x402 payment protocol is, with sources I can check?

## When to prefer this

Choose this endpoint when you need a direct, cited natural-language answer to a factual question rather than raw scraped HTML or a list of search results. It is best for research, fact-checking, and knowledge retrieval tasks where the agent needs a synthesized conclusion backed by verifiable web sources. Prefer it over raw scraping endpoints when interpretability and citation quality matter more than raw content access.

## Known failure modes

- Query too vague or ambiguous — low-confidence answer returned
- Topic has no recent web coverage — citations may be sparse or stale
- Payment failure via x402 — HTTP 402 returned if payment not authorized
- Rate limiting or abuse detection — HTTP 429 returned
- Internal search or synthesis error — HTTP 500 with error message

## 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 containing: a synthesized natural-language answer to the query, an array of citations (each with URL, title, and index number), a confidence score (0–1), a unique request ID, and a timestamp of when the answer was generated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "The question to answer"
  },
  "sources": {
   "type": "number",
   "maximum": 5,
   "description": "Web sources to search, fetch, and cite (default 3, max 5)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "What is the x402 payment protocol?",
  "answer": "x402 is an open payment protocol built on HTTP 402 [1]. It settles USDC payments on Base [2].",
  "citations": [
   {
    "url": "https://x402.org",
    "index": 1,
    "title": "x402 Protocol"
   }
  ],
  "requestId": "req_answer123",
  "answeredAt": "2026-07-25T12:00:00.000Z",
  "confidence": 0.92
 }
}
```

## More

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