# capi2 Web Lookup

> capi2 Web Lookup is a paid API for AI agents from capi2-demand-tools.onrender.com, paid per call via x402, $0.005/call, status down (last checked 2026-09-15).

Fetches a live public web page by URL and returns ranked text passages, optionally filtered by a query.

## Facts

- Endpoint: POST https://capi2-demand-tools.onrender.com/v1/web/lookup
- Price: $0.005/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/capi2-web-lookup-21566292
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_30rIGVVrBAwuTHRUvsykw

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 capi2-web-lookup-21566292 -d '<json body>'
```

Example prompt: Fetch the live page at https://example.com/about and pull out the passages most relevant to 'founding team and company history', up to 200000 bytes.

## When to prefer this

Choose this endpoint when you need to read the live, current content of a specific public URL and want relevance-ranked passages relative to a question or keyword — particularly useful in x402 micropayment agent pipelines where you pay per call. Prefer it over a general web search when you already know the URL and want structured passage extraction rather than a list of search results.

## Known failure modes

- URL is not publicly accessible (returns non-200 status)
- URL points to binary or non-text content (low-quality passage extraction)
- Page requires JavaScript rendering (static fetch may miss dynamic content)
- max_bytes too small to capture meaningful content
- Network timeout or server unreachable on Render infrastructure

## How this service works

Paid x402 utilities and live intelligence for autonomous agents: hashing/encoding plus public web lookup, domain intelligence, API discovery audit, evidence extraction and x402 health.

## Output

Returns a JSON object containing the page title, HTTP status code, content type, and an array of ranked text passages each with its text and relevance score relative to the optional query.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "Public HTTP(S) URL to fetch live."
  },
  "query": {
   "type": [
    "string",
    "null"
   ],
   "maxLength": 500,
   "description": "Optional question/keywords used to rank passages."
  },
  "max_bytes": {
   "type": "integer",
   "default": 200000,
   "maximum": 750000,
   "minimum": 1000
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "title": "Example Domain",
  "status": 200,
  "passages": [
   {
    "text": "Example Domain",
    "score": 1
   }
  ],
  "content_type": "text/html"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/capi2-web-lookup-21566292/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from capi2-demand-tools.onrender.com](https://www.zero.xyz/host/capi2-demand-tools.onrender.com/llms.txt)
