# Swerver Web Search API

> Swerver Web Search API is a paid API for AI agents from websearch--gw.swerver.net, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Search the web by query and return ranked results as clean text, HTML, Markdown, or links via pay-per-request x402 protocol

## Facts

- Endpoint: POST https://websearch--gw.swerver.net/scrape
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swerver-web-search-api-14295f01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wLm0Ld88Wq8GrjCQaCvQF

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 swerver-web-search-api-14295f01 -d '<json body>'
```

Example prompt: Search the web for the top 5 results about quantum computing breakthroughs in 2024 and give me the content in markdown format.

## When to prefer this

Use Swerver Web Search when you need real-time web search results without setting up an API key, want clean markdown or HTML output directly, need JavaScript-rendered content, or want pay-as-you-go pricing via USDC on Base with no subscription commitment.

## Known failure modes

- Query timeout if target pages are slow to respond (configurable up to 120s)
- Payment failure if insufficient USDC balance for x402 protocol
- Empty or low-quality results for very niche or obscure queries
- Content truncation for very long pages (indicated in metadata.truncated)
- Rate limiting or blocking by target sites in non-stealth mode

## How this service works

Web search and scraping API. Search the web or fetch any URL and get back clean HTML, Markdown, plain text, or extracted links. Supports JavaScript evaluation, CSS selector targeting, stealth mode, and batch operations. Pay-per-request via x402 protocol (USDC on Base). No API key required.

## Output

A JSON object containing the URL, content in the requested format (markdown by default), and metadata including content length, elapsed time in milliseconds, and whether the content was truncated.

## Request schema (JSON Schema)

```json
{
 "tags": [
  "web",
  "scraping",
  "headless-browser"
 ],
 "description": "Scrape a URL and return the page content as markdown, HTML, or plain text"
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "format": "markdown",
  "content": "# Example Domain\nThis domain is for use in illustrative examples.",
  "metadata": {
   "truncated": false,
   "elapsed_ms": 450,
   "content_length": 1234
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swerver-web-search-api-14295f01/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from websearch--gw.swerver.net](https://www.zero.xyz/host/websearch--gw.swerver.net/llms.txt)
