# Cerwal Web Search API

> Cerwal Web Search API is a paid API for AI agents from cerwal.vercel.app, paid per call via x402, $0.2/call, status unknown (last checked 2026-09-14).

Performs a web search and returns results for a given query, payable per request in USDC via x402 with no auth or subscription required.

## Facts

- Endpoint: POST https://cerwal.vercel.app/api/search
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cerwal-web-search-api-86e53d1b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fgrbWcDgcUyHl_-Ur66cw

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 cerwal-web-search-api-86e53d1b -d '<json body>'
```

Example prompt: Search the web for 'best practices for AI agent memory management' and return the top 5 results.

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-use web search without setting up API keys or subscriptions. Ideal for AI agents operating autonomously with crypto wallets (x402/USDC) that need to retrieve live web information on demand. Best for simple keyword or natural-language web queries where you want a small number of results quickly.

## Known failure modes

- Query not provided — returns validation error
- Payment not included or insufficient USDC — returns 402 Payment Required
- Search backend unavailable — may return 500 or empty data
- Invalid 'num' parameter type — may cause unexpected results or error
- No results found for obscure queries — returns empty data set

## How this service works

Web scraping and search for AI agents. No auth, no subscriptions. Pay per request in USDC via x402.

## Output

Returns a JSON object with a 'success' boolean and a 'data' object containing web search results matching the query, typically including page titles, URLs, and snippets.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "num": {
   "type": "number",
   "description": "Number of results"
  },
  "query": {
   "type": "string",
   "description": "Search query"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cerwal-web-search-api-86e53d1b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cerwal.vercel.app](https://www.zero.xyz/host/cerwal.vercel.app/llms.txt)
