# WebLens Search Autocomplete

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

Returns AI-powered search query suggestions/completions given a partial query string

## Facts

- Endpoint: POST https://api.weblens.dev/search/autocomplete?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weblens-search-autocomplete-96cd74c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CfKyMN5AKEeCJgTjAAT7c

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-search-autocomplete-96cd74c1 -d '<json body>'
```

Example prompt: Can you autocomplete this partial search query for me — 'how to deploy cloudf' — and give me the top suggestions for what people are actually searching for?

## When to prefer this

Choose this endpoint when you need real-time, AI-powered query completion for a partial search string — especially useful for building typeahead/autocomplete UI components, expanding research queries, or discovering how users phrase searches. Prefer this over a full web search endpoint when you only need suggestion strings, not full page results, and want a lightweight, low-cost call.

## Known failure modes

- Empty or too-short query string returns no suggestions or an error
- Network timeout if the upstream search intelligence layer is slow
- Invalid or malformed POST body returns a 400 error
- x402 payment failure or insufficient USDC balance results in a 402 payment required response
- Rate limiting if too many requests are made in a short window

## 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 partial query, a unique request ID, the timestamp of the search, and an array of suggested full query strings that complete the input prefix.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "number",
   "maximum": 20,
   "description": "Max results (default 10, max 20)"
  },
  "query": {
   "type": "string",
   "description": "Search query"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "how to deploy cloudf",
  "requestId": "req_auto123",
  "searchedAt": "2026-07-25T12:00:00.000Z",
  "suggestions": [
   "how to deploy cloudflare workers",
   "how to deploy cloudflare pages"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weblens-search-autocomplete-96cd74c1/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)
